X2Details.htm

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Michaelm
Member
Member
Posts: 27
Joined: 2006 Feb 27, 19:14
Location: Netherlands

X2Details.htm

Post by Michaelm »

I would love to get more info about the x2details.htm file.

Like what id I need to give for folders.
And also what kinda id's I can give for all other filetypes.
And any other things that might be helpful.
I've noticed I can break the thing where it just shows everything for all filetypes  instead of just what's given up for the filetype.

Thanks in advance !
Michaelm
Member
Member
Posts: 27
Joined: 2006 Feb 27, 19:14
Location: Netherlands

Re: X2Details.htm

Post by Michaelm »

Michaelm wrote:Like what id I need to give for folders.
Ok, apparently that's "file" :)
Kilmatead
Platinum Member
Platinum Member
Posts: 4879
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

If you download and open this x2details file in a text editor and look at the comments from line 94 down, you will get a better idea of how to add different columns manually.

Strangely enough, I'm supposed to be writing a GUI utility to make editing this file for x2 easier, but I keep getting side-tracked.  I'll finish it one of these days when Nikos stops throwing sharp objects at me for being such a procrastinating git. :D
User avatar
gufus
Bronze Member
Bronze Member
Posts: 81
Joined: 2011 Aug 21, 21:18
Location: CA

Post by gufus »

Kilmatead wrote:If you download and open this x2details file in a
Thx for the file.  :D
3.1.0.1 ULT [Unicode] x64 11/12/15
Michaelm
Member
Member
Posts: 27
Joined: 2006 Feb 27, 19:14
Location: Netherlands

Post by Michaelm »

Kilmatead wrote:If you download and open this x2details file in a text editor and look at the comments from line 94 down, you will get a better idea of how to add different columns manually.
I already downloaded that file from the other thread :)
Thanks for that tough !
But it didn't have a stub for folders.
And the comments show the individual options you can show not the grouping id for the divs.
Kilmatead
Platinum Member
Platinum Member
Posts: 4879
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Ah, yes - all is not what it seems (it's simpler, in fact).

In essence, the Div names are meaningless - they are there for your own sense of organisation into groups.  In other words you can call them anything you like and they will act the same - "Exe" means the same as "Mescaline Elephants".

x2 effectively extracts all the columns that you define and if all of them are empty for any given group, then that entire Div group is hidden.  Certain groups (such as filenames or comments) don't have ID's, which means those elements will be shown all the time whether there's information in them or not.

As such as you can make groups as large or as small as you want - keep in mind that the more columns defined for any given type means more chances of them containing empty information... for instance just because there are 8 million columns in Win7 related to photographs it doesn't mean they'll all have real information in them, but that's up to you to keep track of.  If it shows as a blank column in x2, it'll be blank in the details pane too.

Basically, for a "folder" group you just define a Div that contains the columns indicative of folders ("Contents [S]" ~ s_018, for example).  As that column contains no information for regular files, it won't show up unless the object is actually a folder.

Keep in mind that the display labels themselves are actually hard-coded, so in:

Code: Select all

<A id="s_5" href="@">Attributes</a>: <span>val</span>
...the word "Attributes" will still be displayed as "Attributes" whether you retype it as "My Mum Likes Puff" or "Peanut Butter".  It's there for your own reference - it's the "id=" part that defines it, and I printed those more technical bits in the comments as a manual reference for people to use until I get that utility thing written properly.   (Please keep in mind that list is for Windows 7 - if you need a complete one for XP send me a PM and I'll rig up something so you can print one out yourself from an XP machine.)

Of course, how you organise the layout is up to you - a little knowledge of HTML and a lot of experimentation will help - probably using a dedicated HTML editor would make such nonsense much easier to handle if you really wish to personalise these things. :D

(It should be noted that as of the final release for x2 2.1.0.0 Nikos decided that the background colour (though defined in the CSS) will be ignored - so unfortunately you can't have truly pink-elephant folders if you wanted them. :cry:  Nikos said it was for "continuity with the other panes", which is why his personal ID is "The Boring Old Spoilsport".  :wink:)
Michaelm
Member
Member
Posts: 27
Joined: 2006 Feb 27, 19:14
Location: Netherlands

Post by Michaelm »

Ok, thanks very much !
That explains a lot.
Kilmatead
Platinum Member
Platinum Member
Posts: 4879
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Michaelm wrote:I already downloaded that file from the other thread [...] But it didn't have a stub for folders.
Actually, I just updated that link - the old one was from one of the x2 Betas at the time - the download now is the most current one extracted from the resources themselves, so unmodified it will reflect what you would see in the Details Pane for 2.1.0.0.

There weren't many changes, but Nikos was still playing with margins and stuff at the time.  (And there is now a Div for folders: <div class="pane" id="dir"> which contains the s_18 ID as I suggested before.)
Michaelm
Member
Member
Posts: 27
Joined: 2006 Feb 27, 19:14
Location: Netherlands

Post by Michaelm »

Cool, I've downloaded it again and go from there. Thanks !
User avatar
kunkel321
Gold Member
Gold Member
Posts: 535
Joined: 2008 Jan 05, 18:58

Post by kunkel321 »

Kilmatead wrote:....which is why his personal ID is "The Boring Old Spoilsport".  :wink:)
"T-BOSS?"   Hee hee.

Glad to read you're doing a utility...  I was kindof hoping you would.
Being an illiterate, I'm using Komposer to play with the file.

I though I'd be clever and put href="@" with the "Target" code
<b id="s_23" href="@">Target</b>: <span>val</span>
And make it into a link, but apparently that doesn't work.

Anyway, launching the target is not really what I want to do, but if you could click it and cause x2 to "browse to target" it would be pretty groovy.
Kilmatead
Platinum Member
Platinum Member
Posts: 4879
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Linkable references to x2 functions are, obviously, up to Nikos to implement - while not a bad idea, somehow the thought strikes me that he'd tetchily ask you "Isn't it easier to just hit <Ctrl-L> instead?"

"Well yeah," you'd bashfully reply, "but it'd be way cool to just click on it..."

"Bah," he snorts (iced-coffee streaming from his nostrils), "Damn mouse-junkies, always with the clicking, the endless clicking, stop with the damn clicking!"

Curiously enough, this was a common affliction in Greece after Silence of the Lambs was released there, though it didn't really make the international news for fear of starting a widespread pogrom against baklava and chianti (or iced-coffee) in the West. :shrug:

Quite possibly Nikos still harbours that genetic psychological instability.  Are you willing to risk that for a superficial convenience?

(Obviously, the Display Pane itself being nothing more than a superficial convenience, the answer might as well be "Yes!"  But I wouldn't hold my breath - so, for the moment, learn to live with <Ctrl-L> and stay away from iced-coffee - that rubbish'll kill ya.)
User avatar
nikos
Site Admin
Site Admin
Posts: 16402
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

clickable target? what a good idea!
Kilmatead
Platinum Member
Platinum Member
Posts: 4879
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

nikos wrote:clickable target? what a good idea!
Amidst all the usual psychological terms such as "Reverse Psychology", "Paradoxical Intervention", and Reactance, what's it called when the intended target is brighter than he should be and plays along just to take the piss?  Reverse-reverse psychology?  I never should have mothballed that private army I mustered to fight the Prussians years ago - could come in handy from time to time.
User avatar
kunkel321
Gold Member
Gold Member
Posts: 535
Joined: 2008 Jan 05, 18:58

Post by kunkel321 »

Love it.
ikkentobi
Member
Member
Posts: 37
Joined: 2006 May 20, 12:08

Post by ikkentobi »

I was just reading this thread but to be honest... I have no clue what this all is about.
Are there info's about this x2details.htm? What is it for?

thx, Tobias