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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Themes /

Discuss SilverStripe Themes.

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

Customize a template - Question


Go to End


2 Posts   1922 Views

Avatar
Foulensois

Community Member, 13 Posts

21 March 2009 at 7:06am

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

Community Member, 12 Posts

23 March 2009 at 1:47pm

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