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

GalleryHolder just in Navigation Panel


Go to End


2 Posts   1221 Views

Avatar
Holoch

Community Member, 17 Posts

18 December 2014 at 12:41pm

Edited: 18/12/2014 12:43pm

Hi
I Try create GalleryHolder for GalleryPage, but i but dont want GalleryHolder like a page, i want to GalleryHolder will be only navigation item without real page.

Something like that:

<nav>
<li><a href="#">home</a></li>
<li><a href="#">about</a></li>
<li>Gallery Holder <!-- this is GalleryHolder. it can be created in CMS but without conntent and page it is just item in nav -->
<ul>
<li><a href="#">Gallerz 1</a></li>
<li><a href="#">Gallery 2</a></li>
<li><a href="#">Gallery 3</a></li>
</ul>
</li>
</nav>

How can i make this Gallery Holder?

thnx

Avatar
Devlin

Community Member, 344 Posts

18 December 2014 at 11:15pm

I'm not sure what you mean.

If you want to have an empty page which does nothing except being an item in the navigation, you can try the RedirectorPage class as the GalleryHolder and set it to link to the first GalleryPage.

For example:

- about	<-- Link == "mysite.com/about/"
- Gallery Holder	<-- RedirectorPage links to Gallery 1 (Link == "mysite.com/gallery-holder/gallery-1/")
	- Gallery 1	<-- Link == "mysite.com/gallery-holder/gallery-1/"
	- Gallery 2	<-- Link == "mysite.com/gallery-holder/gallery-2/"