17452 Posts in 4473 Topics by 1971 members
|Go to End|
20 August 2008 at 2:12pm Last edited: 20 August 2008 2:13pm
I have maybe a very simple problem but I have no Idea for the moment. I have created a action in my news page controller which shall render a template in my sidebar. I just want to populate text data in the sidebar.
Any ideas how to do that ?
20 August 2008 at 2:51pm
Just call the $ActionName in the sidebar.ss
20 August 2008 at 3:00pm
after another 30 minutes I have done the following and I came to the same conclusion than you
<% if GetArchive %>
<% control GetArchive %>
<% end_control %>
<% end_if %>
this is an include file to encapsulate it a little bit.
But is it possible to render the template from the controller level. Before this SilverStripe I have done mostly everything with Zend Framework and Silverstipes architecture is completely different to the Zend approach, thats why I am often a little bit confused how to do things in Silverstripe.
But anyway Silverstripe has some nice functions
|Go to Top|