22402 Posts in 6882 Topics by 2748 members
|Go to End|
8 September 2011 at 10:16pm
I have a gallery page that has_many gallery images as below
static $has_many = array(
'GalleryImages' => 'GalleryImage'
And on the gallery page I making a check that if there are GalleryPages existing then use the control gallery to render into a unordered list.
However when SS interprets the logic below (Code for rendering image stripped for testing) in GalleryPage.ss
<% if GalleryImages %>
<% end_if %>
I get an this unexplained hyphen appearing at the start of the HTML output which means the page gets no styling in IE,
I have tried other conditional checks for in the if and the HTML renders as expected.
But at loss as to whether I am doing something wrong or if this is a bug. But also have the same problem when using
<% control GalleyImages %>
Any help would be much appreciated.
I am also using dataobject_manager if that helps
|Go to Top|