Jump to:

1369 Posts in 487 Topics by 520 members

Themes

SilverStripe Forums » Themes » Customize a template - Question

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1499 Views
  • Foulensois
    Avatar
    Community Member
    13 Posts

    Customize a template - Question Link to this post

    Hello,

    This afternoon, I tried to make a new version of my design with 2.3.1.

    In my website, I have this kind of tree :

    - Home...
    - Blog
    - Contact....
    ...

    In my Blog, I ve got the widget and I have the last 10 last posts.

    Now I would like to have these 10 last posts in Home, Contact.... How can I do ?

    I tried to modify the template in themes/mytheme/ but nothing appears with this code. (page.ss, layout/page.ss,layout/sidebar.ss in blackcandy)

    <ul>
       <% control FeedItems %>
          <li>
             <a href="$Link">$Title</a>
          </li>
       <% end_control %>
    </ul>
    [/i}

    If you could help me ;)

  • cnyaviary
    Avatar
    Community Member
    12 Posts

    Re: Customize a template - Question Link to this post

    I also wanted to do the same and the following thread showed me what to do - at least it will tell you what has to be done.

    http://silverstripe.org/blog-module-forum/show/254124#post254124

    Hope that helps,

    George

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