[Zope] Newbie Zope Question
M. Adam Kendall
mak@kha0s.org
30 Mar 2001 00:42:24 -0500
What you might want to try is something like this:
<dtml-if "PARENTS[-1].absolute_url() == URL1">
Hey, I'm at the site root
<dtml-else>
I'm somewhere other than root
</dtml-if>
On 29 Mar 2001 21:17:01 -0800, Ixokai wrote:
> I've been looking over the Zope website, and basically like the idea that
> each page should have its own folder, with a single 'index_html' in the root
> directory that handles a uniform design for the rest of the site.
>
> But, its not perfect. For instance, I want my first page to be a splash page
> that doesn't conform to this uniform pattern, and I don't nessecarily want
> the rest of the site to be based off of a sub-directory.
>
> For instance, http://mydomain.org/ is a splash-screen, and I wish
> http://mydomain.org/Topic1 through Topic9 to all conform to my Sitewide
> Style.
>
> I suspose I could have a http://mydomain.org/Main that is the true 'main
> index' page, and put everything off of it, e.g.
> http://mydomain.org/Main/Topic1 ... but that is not optimal.
>
> Anyways, what's the best way to do this? I tried to do a minimal bit of
> DTML, for instance, checking for the existance of a property (<dtml-if
> OverrideIndex> <dtml-var override_html> <dtml-else> <dtml-var header>
> ...etc... </dtml-if>), but properties are inherited down the line, and I
> would rather not have to specifically set 'OverrideIndex:0' on all of the
> sub-folders.... If thats the only or best way, though, I'll deal. :)
>
> Thanks for any help.
>
> --Ixokai
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>