I wonder if it is possible to have a startpage without the navigation menu, what I want is a flashintro.
Regards
Joakim
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 wonder if it is possible to have a startpage without the navigation menu, what I want is a flashintro.
Regards
Joakim
Yes this is your homepage so you could do
<% if Page(home) %>
// show something on the home
<% else %>
// show the usual thing
<% end_if %>
Hi will, I wonder about that code, becaus I want one page with different background color than the other pages, i tried to implenet it on themes/wines/templates/layout/page.ss So what i did was
<% if Page(Hem) %>
<div id="Content-Container2">
<% else %>
<div id="Content-Container">
<% end_if %>
But that made all the pages have the different backgr color.
Is if page(Hem) is the the Hem the name of the page in the cms?
Joakim
I think the issue is Page() says If one of these pages exists... To get the current page you could use the URLSegment
<% if URLSegment = Hem %>.... <% else %> <% end_if %>