Jump to:

3447 Posts in 1032 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » Newbie question - can I realize this template with SilverStripe?

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

Page: 1
Go to End
Author Topic: 1452 Views
  • yeticomes
    Avatar
    Community Member
    2 Posts

    Newbie question - can I realize this template with SilverStripe? Link to this post

    Hello,

    I want to build my website with a new, simple cms (I am using Joomla until now) and would like to know if I can realize the theme I have attached with SilverStripe.

    Can you please give me your opinion if it is possible for a beginner?

    Thanx a lot in advance!

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Newbie question - can I realize this template with SilverStripe? Link to this post

    You have 100% control over the templates so yes something like that is possible. The trickest part is that menu on the right. For that you have a couple options - you could hard code the paths / styles in the templates for the menu for example instead of

    <ul>
    <% control Menu(1) %>
    <li>
    ...

    You would just hard code the menu with the a classname for styling like

    <ul>
    <li><a href="home/" class="home">Home</a></li>
    ...

    This has the benefit of if the user creates another menu item it won't break the menu (as you can't really have that dynamic length without some really fancy stuff. I would lent towards this method just because thats such a delicate menu. The other option is to use the $URLSegment on each <li> in the control loop and then you can apply styles to those css classes in your css file

    <ul>
    <% control Menu(1) %>
    <li class="$URLSegment">...</li>
    ..

    Then you would style classes .home, .services etc. This method works but if the cms user creates another page it will break the menu, if they change the page url it will break the menu. Which is why I reckon hardcoding the menu is probably the most straightforward approach.

  • yeticomes
    Avatar
    Community Member
    2 Posts

    Re: Newbie question - can I realize this template with SilverStripe? Link to this post

    Thank you very much for your support - sounds a little bit tricky

    I will install a demo of SilverStripe & dive in the docu to see if it is not to complicated for me (sorry, I do no longer want Joomla, but it's out-of-the box Templates were really easy - but it is not the same look like this template)

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