Jump to:

23355 Posts in 17702 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Startpage without navigation

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1056 Views
  • HanSolo
    Avatar
    Community Member
    83 Posts

    Startpage without navigation Link to this post

    I wonder if it is possible to have a startpage without the navigation menu, what I want is a flashintro.

    Regards
    Joakim

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Startpage without navigation Link to this post

    Yes this is your homepage so you could do

    <% if Page(home) %>
    // show something on the home
    <% else %>
    // show the usual thing
    <% end_if %>

  • HanSolo
    Avatar
    Community Member
    83 Posts

    Re: Startpage without navigation Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Startpage without navigation Link to this post

    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 %>

    1056 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.