[thelist] PHP -Self-finding navigational includes

Hershel Robinson hershelr at netvision.net.il
Thu Jul 28 08:14:56 CDT 2005

>>A very slick little script. I wish I had thought of such a thing instead
>>of using id's for <body> tags and CSS to highlight the current page.
> Which is visually sensible but not really helpful for a visitor
> without eyesight. The current page just should not link to itself.
> Navigation is a content issue first and then design.

Interesting. I suppose you are right. I also suppose, in the same vein, 
that it would behoove you to include titles for the links in your 
demo--that's also a content issue.

>>This script would work also if the navigation itself is generated by a
>>PHP include file?
> This script is an include file, and needs the template, so, no. You
> can use the template as a PHP variable in the script though, but the
> idea was to allow someone to maintain the navigation without knowing
> PHP.

OK. The concept of this script is the main thing. It could be adapted to 
other situations without great difficulty.

Thanks for the idea.


More information about the thelist mailing list