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.

Template Questions

Syntax problem in IF control


12 Posts   2032 Views


20 October 2010 at 11:41pm Community Member, 51 Posts

I see your point. However, it still does not work with the quotes excluded.

The workaround is fine for now.

Thanks all for you help!



21 October 2010 at 12:12am Community Member, 94 Posts

In my templates the quotes do work, but i see the SS documentation tells not to use them.

Interesting issue for the Silverstripe devs?


21 October 2010 at 12:17am Community Member, 94 Posts

Maybe best practice is to use a method in your controller always when things are getting 'more complicated' and you don't want this logic inside your view.


21 October 2010 at 12:20am Community Member, 51 Posts

I think you are correct. My understanding is that templates should be keep as simple as possible with as much logic as possible in the controller.

I am sure this is what they would say if they joined this thread. Be good if this could be confirmed, elborated on ....SS guys?