I have a setup fairly similar to Uncle Cheese’s example in the Lesson videos for displaying a DataObject in a Template.
I am using Elemental content blocks in my DataObject, but I can’t get $ElementalArea to display in my Template. If I use $ElementalAreaID in the template to test it, it displays the content block ID in the correct place, and all the other variables display properly.
Thanks, but it was definitely published. I have admitted defeat on this one and changed the DataObject to a Page type, and everything works.
Would still be interested to hear if anyone else has had this issue though
I had the same problem. ElementalArea was there but did not render the elements. I traced it back to the fact that ElementalArea tests canView on each element which tests CanView on the DataObject. So this solves it:
public function CanView($member=null) {
return true;
}