[thelist] PHP -Self-finding navigational includes
Christian Heilmann
codepo8 at gmail.com
Thu Jul 28 07:37:46 CDT 2005
On 7/28/05, Fred D Yocum <fdy at mcc.org> wrote:
> Using PHP to create a repeating object like a navigational sidebar with an
> include file seems like a good idea. This is trivial to accomplish If all
> the paths are either absolute
> (http://somewhere.com/thisdirectory/thatfile.html) or everything is at the
> same directory level, the links can be hard coded. If they're not, you
> need a function/routine that figures out where the page (with the
> included navigational side bar) is within the directory structure and
> writes the paths accordingly. This is a problem I am sure which has been
> solved on numerous occassions -- just not by me. A couple of quick
> searches has brought up numbers of articles extolling the virtues of
> putting repeated navigational items that don't address this issue. Can
> anyone point me in the direction of an efficient way of doing this?
I do it the other way around, take an HTML template and just compare
the current page to all links:
http://onlinetools.org/tools/easynav/
I did this mainly to allow clients to edit the navigation in Contribute.
HTH
Chris
--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/
More information about the thelist
mailing list