details pane customization

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1162
Joined: 2005 Oct 16, 19:09

details pane customization

Post by FrizzleFry » 2020 May 08, 18:23

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.

User avatar
nikos
Site Admin
Site Admin
Posts: 14607
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: details pane customization

Post by nikos » 2020 May 09, 08:49

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

User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1162
Joined: 2005 Oct 16, 19:09

Re: details pane customization

Post by FrizzleFry » 2020 May 09, 20:45

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.

User avatar
nikos
Site Admin
Site Admin
Posts: 14607
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: details pane customization

Post by nikos » 2020 May 10, 09:12

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)

User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1162
Joined: 2005 Oct 16, 19:09

Re: details pane customization

Post by FrizzleFry » 2020 May 10, 19:16

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

User avatar
nikos
Site Admin
Site Admin
Posts: 14607
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: details pane customization

Post by nikos » 2020 May 10, 19:26

:thumbup:

User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1162
Joined: 2005 Oct 16, 19:09

Re: details pane customization

Post by FrizzleFry » 2020 May 11, 21:49

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.

User avatar
nikos
Site Admin
Site Admin
Posts: 14607
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: details pane customization

Post by nikos » 2020 May 12, 09:01

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

User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1162
Joined: 2005 Oct 16, 19:09

Re: details pane customization

Post by FrizzleFry » 2020 May 12, 17:42

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.

Post Reply