I am creating a navigation list but I want classes applied to the first and last items in the list ('first' and 'last' will do) as they will be styled slightly differently.
Is there an easy way to do that?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I am creating a navigation list but I want classes applied to the first and last items in the list ('first' and 'last' will do) as they will be styled slightly differently.
Is there an easy way to do that?
These are all page controls...
$First
$Last
$FirstLast
(for more info... http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls)
Ahh.... missed those completely. Thanks!!