Page 1 of 1

details pane customization

Posted: 2020 May 08, 18:23
by FrizzleFry
I've been messing with the details pane the last couple of days. I like that I can display different info for different file types. I have questions about the id tags for file types you use in the provided x2details.htm file. Some ids seem to be file extensions but you also use others: docs, media, pic. Where are these ids defined? What other ids are available?

Another question is about the xplorer2 stock column ids. Is there a way to generate a list of the current ones? Kilmatead's script generates the Windows columns but has the x2 stock ones hard coded. I noticed you have added a few x2 columns since Kil released that script.

Re: details pane customization

Posted: 2020 May 09, 08:49
by nikos
the necessary information is here: www.zabkat.com/blog/customize-details-pane.htm
the stock columns are counted one by one negative, as such

Code: Select all

#define FISTOCKPROP_TITLE      -1 /* display name, could lack extension */
#define FISTOCKPROP_NAME       -2 /* proper name with extension */
#define FISTOCKPROP_EXTENSION  -3
#define FISTOCKPROP_SIZE       -4
#define FISTOCKPROP_ATTRIBUTES -5 /* dos attribs, eg. hidden, system, etc */
#define FISTOCKPROP_MODIFIED   -6
#define FISTOCKPROP_CREATED    -7
#define FISTOCKPROP_ACCESSED   -8
#define FISTOCKPROP_TYPE       -9 /* type string for punters who find extensions insufficient */
#define FISTOCKPROP_FULLPATH   -10 /* useful for mixed folder views (path of PARENT) */
#define FISTOCKPROP_VERSION    -11
#define FISTOCKPROP_NUMHLINK   -12
#define FISTOCKPROP_CHECKSUM   -13
#define FISTOCKPROP_VOLINFO    -14 /* interesting for future off-line cd browsing */
#define FISTOCKPROP_COMPACTNOM -15 /* 8.3 version of name */
#define FISTOCKPROP_COMPRESSED -16 /* size for compressed or sparse files */
#define FISTOCKPROP_COMMENT    -17
#define FISTOCKPROP_SUBITEMS   -18 /* # of direct contents for a folder */
#define FISTOCKPROP_KEYWORDS   -19
#define FISTOCKPROP_ADSTREAMS  -20
#define FISTOCKPROP_VERFIRMA   -21 /* module company name */
#define FISTOCKPROP_VERCORIGHT -22 /* module copyright */
#define FISTOCKPROP_LINKTARGET -23 /* shortcut target path */
#define FISTOCKPROP_AUTHENTICO -24 /* digital signature */
#define FISTOCKPROP_INFOTIP    -25 /* infotip as a column */
#define FISTOCKPROP_MD5        -26
#define FISTOCKPROP_PATHLEN    -27 /* ~v3.0: overall character length of filename */
#define FISTOCKPROP_ADSNAMES   -28 /* ~v3.3: names of any alt streams */
#define FISTOCKPROP_GROUPID    -29 /* pseudo column for group identifiers (or duplicates) */
#define FISTOCKPROP_COLORTAG   -30 /* exposes m_nColorTag as number for searching */
#define FISTOCKPROP_EXIFCX     -31
#define FISTOCKPROP_EXIFCY     -32
#define FISTOCKPROP_EXIFDATE   -33
as for the groupings in the x2details.HTM file, they are arbitrary. They bunch columns that usually appear together

Re: details pane customization

Posted: 2020 May 09, 20:45
by FrizzleFry
so docs, media, pic are not defined anywhere... I could use any group name and if any column in that group is active/populated all those columns are displayed? I had already done a video group with Frame width, Frame height, Data rate and they show when a video file is selected.

Re: details pane customization

Posted: 2020 May 10, 09:12
by nikos
you can group things and name them as you like! Keep in mind that once an item in the group has a value, then all the other properties will show too (even if empty)

Re: details pane customization

Posted: 2020 May 10, 19:16
by FrizzleFry
so groups without id are always displayed

groups with an id are hidden if none of the properties have a value but if any property has a value all the props in the group are displayed

Re: details pane customization

Posted: 2020 May 10, 19:26
by nikos
:thumbup:

Re: details pane customization

Posted: 2020 May 11, 21:49
by FrizzleFry
I added links to the x2details.htm file

Code: Select all

<div class="pane" id="file">
<A id="s_12" href="@">Links</a>: <span>value</span>
</div>
for some reason I had to add it as an A (Changeable) property, when I make a b property is does not display, It seems it should be similar to the subitems property for folders.

How do you change the background color of the details pane? Tried this but it had no effect:

Code: Select all

body { 
	/* background-color: #E2E0DC; */
	background-color: #F6ECFD;
	font-family: Verdana, sans-serif;
	font-size: 70%;
	margin: 2px;
}
Also tried

Code: Select all

<body bgcolor="white">
but again no effect.

Ahh. Seems like it uses the color set for the inactive pane.

Re: details pane customization

Posted: 2020 May 12, 09:01
by nikos
I have the links showing next to attributes as such (not in its own pane)

Code: Select all

<A id="s_5" href="@">Attributes</a>: <span>val</span>
&nbsp; <b id="s_12">Links</b>: <span>val</span>
as for the color, it matches the inactive pane

Re: details pane customization

Posted: 2020 May 12, 17:42
by FrizzleFry
I see what I did wrong...

<A id="s_12" href="@">Links</a>: <span>value</span>

I was changing the opening <A to <b but not the closing </a> to </b>... brain fart...

I started to add Links to the Attributes pane so I copied the code from Attributes but then decided to move it to its own pane since Links is blank for folders.

You might consider using a separate background color setting for the details pane (or just allowing the HTML to set it). It really is not inactive since it is showing info for the focused file in the active pane.