Jump to:

23377 Posts in 18296 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » One Page Website.

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: 437 Views
  • vsergiu
    Avatar
    Community Member
    3 Posts

    One Page Website. Link to this post

    Hi all.

    I have a question for all of you.

    Which is the best solution to develop a one page website in Silverstripe ?

    For example:
    I thought, to make use of '<% include %>'
    something like this: <% include Page_Type(Class Name)_content %>
    so basically I have a .ss inlude file for each page type, where I will have different layout structure.
    This is my third project in silverstripe and first one with design (One Page).

  • haugen
    Avatar
    Community Member
    12 Posts

    Re: One Page Website. Link to this post

    I made an own class for my home, which I called home. Then I created children of this with all the content.

    In my Home.ss I have this:

    <% loop Children %>
    <div id="$URLSegment" class="span12">
    $renderWith($ClassName)
    </div>
    <% end_loop%>

    Worked out great for me. Good luck with your project

  • vsergiu
    Avatar
    Community Member
    3 Posts

    Re: One Page Website. Link to this post

    Thanks for the suggestion,
    I think that your solution is much better than mine, I will give it a try.

  • HollyO
    Avatar
    Community Member
    1 Post

    Re: One Page Website. Link to this post

    How do you add an anchor tag to the children that are displayed on the one page website and then reference those anchors in the primary navigation menu?

    437 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.