I would like to have a navigation menu with two level. But there is no content on the top level pages, they are only sections for the structure. I would like to jump from the first level directly in each section to the first child item. How is it possible to realize it?
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.
- Page 11(current)
- 2
- Next 10 entries
I try to explain my problem again, please someone my help me.
I need to build a menu with this structure
Home
Products
-Product 1
-Product 2
Projects
-Project 1
-Project 2
Contact
The Products an Projects items have no content. I would like to reach directly the Product 1 page when I klick on the Projects section.
Is there any possibility to build this model?
You could try making the Products and Project pages "Redirect Pages".
Ok - good idea! But how woud you realize it concretely?
Redirector pages linking to the first child would be the way to do it, as grilldan said.
So you'd change the page type in the CMS (using the behaviour tab) for the Products and Projects pages to a "Redirector page".
Then, you'd choose the first child from the dropdown once the page is changed to a redirector. This means that if anyone hits that given page, it'll redirect them to the page chosen in the dropdown.
Thanx to all of you! Great, it works!
I haven't found the easy way to use just an other page type! Thats the possibility for my project.
And it's good to know php function for an other project!
Great community! :-)
- Page 11(current)
- 2
- Next 10 entries