forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Koberg" <...@koberg.com>
Subject RE: extending site.xml -> was -> RE: directory/menu structure
Date Thu, 03 Apr 2003 15:46:18 GMT
Hi,

> -----Original Message-----
> From: Schlierf, Stephan [mailto:Stephan.Schlierf@VSA.de]
> Sent: Thursday, April 03, 2003 6:18 AM
> 
> To give an answer to your last question:
> 
> Yes, I think this would be a very good improvement of site.xml
> (escpecially
> things like "should a pdf-file be created for this site or not" and so on)
> Yes and no: I'm not quite sure whether your suggestion reflects all the
> things a site.xml should do for me, escpecially concerning the building of
> the menus.
> Let me give an example:
> ThisIsMyTab
> 1_MenuEntry
>    1_1_SubMenuEntry
>           1_1_1_SubSubMenuEntry
>                      ...and so on
> So if you click on 1_MenuEntry, the 1_1_SubMenuEntries should be
> displayed.
> If you click on 1_1_SubMenuEntry the 1_1_1_SubSubMenuEntries should be
> displayed and so on.

Yes, I think it will do what you want. So an XSL (say you are at the site
index page) build a menu item with an:

a href="1_MenuEntry/1_1_SubMenuEntry/"

1_1_SubMenuEntry is a folder, and at the folder level you specify what
@index_page you want to use. That page identified, in the @index_page, is
copied to /1_MenuEntry/1_1_SubMenuEntry/index.html at generate-site time. Is
that what you were thinking?

> It should be possible that every menu entry (even the 1_MenuEntry) should
> point to a file but not necessarily to a html-file (think of pdfs, images
> or
> so). 

One way to handle this would be adding elements at the same level as 'page'
to correspond to things you want to link to, e.g. <img
id="menu-linked-img"/>. And then the nav.xsl would gather all those to
display in the menu.

But I would rather link to a page that included the (image | link to a PDF
with an explanation) or some such thing.

> For a html-file, it should be possible that a menu entry points to an
> anchor of this file.

I think this would be better handled by a table of contents on the page. Or
you could put the page TOC in a narrow (right | left) column. Perhaps this
could be triggered in the nav.xsl when it sees @expand=1.

These things could be made optional in a core set of XSL or they could be
edited uniquely for an individual site's needs. The first way would require
more complex XSL (but doable) and would satisfy those who don't want to
touch XSL. The second would lead to much simpler XSL, but would fork away
from a standard set.

> 
> Probably your suggestion already allow all of my ideas - I just wanted to
> emphasize them once more.
> 
> Anyway, I think your suggestion is really a good idea - I cheer for you :-
> )

Thanks!

Best,
-Rob

> 
> Stephan


Mime
View raw message