Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Adding new pages as tabs


Go to End


2 Posts   1294 Views

Avatar
ipv89

Community Member, 6 Posts

30 April 2015 at 6:28pm

Hi

I am new to Silverstripe and I am wanting to know how I can add tabs to the top of some pages i.e. you could have a contacts page with a row of tabs for each letter in the alphabet.

Any help or even pointing me in the right direction will be much appreciated.

Avatar
Pyromanik

Community Member, 419 Posts

11 May 2015 at 10:18pm

Have a function that outputs a list (of tabnames or something).
<% loop ThatList %><li>$Name ... etc

See the tutorials for more information.

http://doc.silverstripe.org/en/tutorials/
Like this: http://doc.silverstripe.org/en/tutorials/extending_a_basic_site/#showing-the-latest-news-on-the-homepage