I am new to silverstripe trying to evaluate it as our future cms. I really like the admin interface and the MVC concept of sapphire/silverstripe. I think it will fit all my needs, hopefully ;-)
I have a question regarding my first website with a client portfolio page - like the StaffHolder/StaffPage in the SS tutorial - but with a thumbail navigation on the left side.
Can someone please explain how to iterate through my ProjectPages (or the StaffPages) using a thumbnail navigation with a class="current" for the active state?
I have tried to replace the Link "$MenuTitle" with "$Photo.SetWidth(50)" which i have created in ProjectPage.php but this ends in a Fatal error: Call to a member function XML_val() on a non-object in Layout.ProjectPage.ss
<% control Menu(2) %>
<li class="$LinkingMode"><a href="$Link" title="Go to the $Title page">$Photo.SetWidth(50)</a></li>
<% end_control %>
Can someone give me a tip how to solve this?
Thanks much in advance!