17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1296 Views |
-
Navigation Variables - is this is all there is?

1 May 2008 at 12:45pm Last edited: 1 May 2008 12:48pm
According to Tutorial: Making a Navigation System when I'm in the navigation loop I have the following variables to work with
* $Link
* $Title
* $MenuTitle
* $LinkingModeAre there any other variables?
I'd really like to know the type of page and be able to use the CSS to format the link accordingly.
thanks
-
Re: Navigation Variables - is this is all there is?

1 May 2008 at 8:04pm
you have access to every field on that pages object. See the lists at the right down the bottom of the page - http://doc.silverstripe.com/doku.php?id=built-in-page-controls for a complete list
-
Re: Navigation Variables - is this is all there is?

1 May 2008 at 11:01pm
Thanks Will
$ClassName is what I was looking for.
Seems I'll need to create an extension of the contact page as I have 2 on the nav and only one needs to be highlighted. In the CMS you have userdefinedform in a pagetypes folder. If I'm going to "extend" that type does it go in my code folder or do I need to copy the folder structure from cms?
-
Re: Navigation Variables - is this is all there is?

1 May 2008 at 11:04pm
Seems I'll need to create an extension of the contact page as I have 2 on the nav and only one needs to be highlighted. In the CMS you have userdefinedform in a pagetypes folder. If I'm going to "extend" that type does it go in my code folder or do I need to copy the folder structure from cms?
You should be able to do the former - put it into your code folder.
| 1296 Views | ||
|
Page:
1
|
Go to Top |



