Hi
I have a gallery page that has_many gallery images as below
GalleryPage.php
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
GalleryPage.ss
<% if GalleryImages %>
<div>
say hi
</div>
<% 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,
-<!doctype html>
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
Cheers