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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

NoHTML equivelent for other content?


Go to End


2 Posts   1510 Views

Avatar
Johan

Community Member, 49 Posts

21 January 2011 at 1:28am

Edited: 21/01/2011 1:50am

Hi

If there is what is the equivalent for other types of content for example how would I do NoImage

<% if groupImg1.No???? %><a class="fancybox" rel="group1" href="$groupImg1.URL"></a><% else %><% end_if %>

Many thanks

Avatar
Johan

Community Member, 49 Posts

21 January 2011 at 2:36am

doh! Sorted it

<% if groupImg1 %><a class="fancybox" rel="group1" href="$groupImg1.URL"></a><% else %><% end_if %>