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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Latest news on every page


Go to End


1089 Views

Avatar
Rcls

Community Member, 2 Posts

27 January 2011 at 9:30pm

Hi!

I'm not the most skilled coder, but I created a website for a client. I wanted to test out SilverStripe and though it has some annoying little things, like having to upload files on the FTP to get pages or styles to update, or flushing cache every 5 minuets, it works great.

I downloaded and installed an extension named News. Basically it's NewsHolder (ArticleHolder) and NewsPage (ArticlePage) without having to create the files yourself. It works great, you can view results here: http://www.ossipesonen.fi/www/ss_cms/uutiset/
But I have a problem. I can't get the "Tiedotteet" or Latest News to show on every page. It only shows on the News page. How can I change this? Should I change something on Layouts/Page.ss ?

Page.ss

<% include Menu2 %>

Menu2.ss

<% control Menu(2) %>
  	<% if Children %>
	    <li><p style="padding-top: 10px;"><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela">$MenuTitle.XML</a></p>
	<% else %>
		<li><p style="padding-top: 10px;"><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela">$MenuTitle.XML</a></p>
	<% end_if %>	  
</li> 
<% end_control %>