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.

All other Modules /

Discuss all other Modules here.

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

Latest news on every page


Reply


672 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 %>