[thelist] PHP - good ways to indicate current page in navigation?

Ben Glassman bglassman at gmail.com
Tue Jul 25 14:38:35 CDT 2006


So I need that installed on the web server.. gotcha

Thanks

Ben

On 7/25/06, Christian Heilmann <codepo8 at gmail.com> wrote:
> You don't have the right PHP extension enabled. The script needs the
> DOMXML extension of PHP.
>
> On 7/25/06, Ben Glassman <bglassman at gmail.com> wrote:
> > I'm actually trying to get this easy nav php script to work right now.
> > I've got everything working except that the file seems to terminate
> > prematurely right after the easy nav include. It does highlight the
> > nav, but it stops reading the file right after that.
> >
> > http://www.vtdesignworks.com/clients/kathymarmor/statement.php
> >
> > Here is a copy of the file as an shtml file so you can see the whole src
> >
> > http://www.vtdesignworks.com/clients/kathymarmor/statement_src.shtml
> >
> > And the navigation file is at
> >
> > http://www.vtdesignworks.com/clients/kathymarmor/includes/navigation.html
> >
> > Any help is appreciated
> >
> > Ben
> >
> >
> > On 7/25/06, Christian Heilmann <codepo8 at gmail.com> wrote:
> > > > > 1) Keep all the navigation in one HTML include that is a nested list
> > > > > 2) Include this list in each document and compare the current location
> > > > > (PHP_SELF) with the links in the include.
> > > > > 3) When there is a match, replace the link with a STRONG element and
> > > > > add a "parent" CSS class to each LI above the one that has a replaced
> > > > > link
> > > > >
> > > > > All wrapped up: http://www.onlinetools.org/tools/easynav/
> > > > >
> > > > > ...Even styling it is easy as you can style li strong{} as the current
> > > > > element.
> > > > >
> > > > > CSS is there to host the look and feel, don't use it to take over the
> > > > > job of HTML or JavaScript, it is just not reliable.
> > > >
> > > > Not reliable when JavaScript is turned off - rare, but still a possible
> > > > setback; and possibly more common than CSS turned off?  It's a tough call -
> > > > rely on JavaScript, or CSS?
> > > >
> > > > I've looked over the article you referenced before, looks promising.
> > >
> > > What are you talking about?
> > >
> > > http://www.onlinetools.org/tools/easynav/cno/index.php
> > >
> > > works without JavaScript and even makes sense without CSS... As it is
> > > a PHP script.
> > >
> > > --
> > > Chris Heilmann
> > > Book: http://www.beginningjavascript.com
> > > Blog: http://www.wait-till-i.com
> > > Writing: http://icant.co.uk/
> > > --
> > >
> > > * * Please support the community that supports you.  * *
> > > http://evolt.org/help_support_evolt/
> > >
> > > For unsubscribe and other options, including the Tip Harvester
> > > and archives of thelist go to: http://lists.evolt.org
> > > Workers of the Web, evolt !
> > >
> > --
> >
> > * * Please support the community that supports you.  * *
> > http://evolt.org/help_support_evolt/
> >
> > For unsubscribe and other options, including the Tip Harvester
> > and archives of thelist go to: http://lists.evolt.org
> > Workers of the Web, evolt !
> >
>
>
> --
> Chris Heilmann
> Book: http://www.beginningjavascript.com
> Blog: http://www.wait-till-i.com
> Writing: http://icant.co.uk/
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list