Hi there,

----- Original Message -----
From: yvain <[EMAIL PROTECTED]>
To: Emiliano Heyns <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

> Emiliano Heyns wrote:
>
> >
> > > Suggestions for varrying layout across a site?
> >
> > Inherit the style for different parts of your site and replace
> > the elements you want changed in the new style. Then set the
> > page for the subsections to the various substyles.
>
> It strikes me as being nicer if one could query where one is in the
> midgard page tree with a piece of php. This would mean that one could
> write a piece of code for the navbar that could work out where the user
> currently is, and show links to subpages under that section.
>
> This way one would be able to have one style element that would work
> regardless of how the structure of the site changes (rather than having
> to produce hundreds different substyles.
>
> What I am thinking of is that a variable (say something like $page) be
> defined by midgard for each page, that points to an object that contains
> all of the information about that page.
>
> peace
> Chris

Well, I just done that last week.
Here is how it work:

first I defined a static home page, and 3 active subpages (client, staff,
admin)
I also defined a top-level topic with 3 subtopic tree (one for each active
page)
and each subtopic is in fact a page displayed by one of the 3 actives pages.
I added some articles which work like sub-element of a page.
example:

if I want to go to the page /staff/prefs/user.html
it gets the active page staff, then that page will get the staff topic, then
go to prefs topic, displays the content of 'prefs' topic and displays in a
table the content of the 'user' article.

I separated the site in three parts cause I wanted the clients to see only
the topic subtree under /client/name/
and the staff people cannot see the /admin/ subtree.

If you want to see it, I could open a temporary account for those who ask
me.

With the same principle, I made an automatic site map starting from the
user's own root.

Regards

[EMAIL PROTECTED]

PS: send demands for an account to [EMAIL PROTECTED]





--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to