details pane customization
Moderators: fgagnon, nikos, Site Mods
- FrizzleFry
- Platinum Member
- Posts: 1241
- Joined: 2005 Oct 16, 19:09
details pane customization
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.
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
the necessary information is here: www.zabkat.com/blog/customize-details-pane.htm
the stock columns are counted one by one negative, as such
as for the groupings in the x2details.HTM file, they are arbitrary. They bunch columns that usually appear together
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
- FrizzleFry
- Platinum Member
- Posts: 1241
- Joined: 2005 Oct 16, 19:09
Re: details pane customization
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
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)
- FrizzleFry
- Platinum Member
- Posts: 1241
- Joined: 2005 Oct 16, 19:09
Re: details pane customization
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
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
- FrizzleFry
- Platinum Member
- Posts: 1241
- Joined: 2005 Oct 16, 19:09
Re: details pane customization
I added links to the x2details.htm file
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:
Also triedbut again no effect.
Ahh. Seems like it uses the color set for the inactive pane.
Code: Select all
<div class="pane" id="file">
<A id="s_12" href="@">Links</a>: <span>value</span>
</div>
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;
}
Code: Select all
<body bgcolor="white">
Ahh. Seems like it uses the color set for the inactive pane.
Re: details pane customization
I have the links showing next to attributes as such (not in its own pane)
as for the color, it matches the inactive pane
Code: Select all
<A id="s_5" href="@">Attributes</a>: <span>val</span>
<b id="s_12">Links</b>: <span>val</span>
- FrizzleFry
- Platinum Member
- Posts: 1241
- Joined: 2005 Oct 16, 19:09
Re: details pane customization
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.
<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.