Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes

Discuss SilverStripe Themes.

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

Customize a template - Question


Reply

2 Posts   1523 Views

Avatar
Foulensois

21 March 2009 at 7:06am Community Member, 13 Posts

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 ;)

Avatar
cnyaviary

23 March 2009 at 1:47pm Community Member, 12 Posts

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