disabling link on current page in nav structure

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

disabling link on current page in nav structure

mail
What property of nav object returns the currently requested page? Also, are there any built-in flags to conditionally check for the currently requested page and then display the nav item as enabled?  For example, if I want the output to be as follows:

<a href="home.lasso" class="disabled">Home<a>&nbsp;
<a href="blah1.lasso">Blah 1<a>&nbsp;
<a href="blah2.lasso">Blah 2<a>&nbsp;
<a href="blah3.lasso">Blah 3<a>&nbsp;

(one is on the home page so cannot select that again, the others are then shown as enabled)

-- 

#############################################################

This message is sent to you because you are subscribed to

the mailing list <[hidden email]>.

To unsubscribe, E-mail to: <[hidden email]>

Send administrative queries to  <[hidden email]>

List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html

Project homepage http://montania.se/projects/knop/

Google Code has the latest downloads at http://code.google.com/p/knop/


	
	
	
	
Reply | Threaded
Open this post in threaded view
|

Re: disabling link on current page in nav structure

stevepiercy
On 3/6/11 at 5:34 PM, [hidden email] pronounced:

>What property of nav object returns the currently requested page?

Do you have the help.lasso file?

knop_nav -> url
Returns full url for current path or specified path. Path
parameters can be provided and overridden by passing them to
this tag.

>Also, are there any built-in flags to conditionally check for the
>currently requested page and then display the nav item as enabled? 
>For example, if I want the output to be as follows:
>
><a href="home.lasso" class="disabled">Home<a>&nbsp;
><a href="blah1.lasso">Blah 1<a>&nbsp;
><a href="blah2.lasso">Blah 2<a>&nbsp;
><a href="blah3.lasso">Blah 3<a>&nbsp;

No, nothing builtin.  However, you could use a technique that I
picked up.  Not sure whether it would actually disable the
clickability, though, but its appearance could be modified.
http://lasso.2283332.n4.nabble.com/Content-Management-System-with-Custom-Web-Applications-tp3159215p3159227.html

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: disabling link on current page in nav structure

Johan Solve-2
In reply to this post by mail
At 17.34 -0700 2011-03-06, <[hidden email]> wrote:
>What property of nav object returns the currently requested page?

nav -> path; // returns the name of the current page as Knop path


>Also, are there any built-in flags to conditionally check for the currently requested page and then display the nav item as enabled?  For example, if I want the output to be as follows:
>
><a href="home.lasso" class="disabled">Home<a>&nbsp;
><a href="blah1.lasso">Blah 1<a>&nbsp;
><a href="blah2.lasso">Blah 2<a>&nbsp;
><a href="blah3.lasso">Blah 3<a>&nbsp;
>
>(one is on the home page so cannot select that again, the others are then shown as enabled)

The current nav item's anchor tag has class="crnt" (or whatever you specify as -currentclass when creating the nav object).

http://montania.se/projects/knop/help.lasso


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: disabling link on current page in nav structure

Johan Solve-2
In reply to this post by stevepiercy
At 18.54 -0800 2011-03-06, Steve Piercy - Web Site Builder wrote:
>knop_nav -> url
>Returns full url for current path or specified path. Path parameters can be provided and overridden by passing them to this tag.

I don't think this is what Michael asks for. ->url returns the full path that is used in nav links instead of the internal Knop path so if your Knop site runs in a sub directory, you will get the full path including the sub directory. Also, if -url is specified for a nav item, ->url will return that instead of the internal Knop path.


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/