Hi,
I have a Projectholder which has projectpages (and photopages) underneath. Each projectpage (and photopage) has a hasmany relation with a dataobject containing an image. When i loop the children and then loop the dataobject, using $Up doesn't display the childpages propertie (adres). If I use $Top.MenuTitle for example it displays the title of the projectholder correctly, but using $Up.MenuTitle (the child's name) doesn't display anything.
Can anybody help me? Here's the code. (i'm trying to add markers to a google map).
$("#map").goMap({
markers: [
<% loop Children %>
{
address: '$Adres',
draggable: false,
html: {
<% if ClassName = ProjectPage %>
<% loop SliderBeelden.limit(1).sort(Sort) %>
content: "<p>$Up.Adres<br/><img src='$Beeld.URL' alt='$Beeld.Name' width='200'></p>",
<% end_loop %>
<% else_if ClassName = FotoPage %>
<% loop FotoPageBeelden.limit(1).sort(Sort) %>
content: "<p>$Up.Adres<br/><img src='$Beeld.URL' alt='$Beeld.Name' width='200'></p>",
<% end_loop %>
<% end_if %>
popup:false
},
id:"$ID"
},
<% end_loop %>
],
maptype: 'ROADMAP' ,
zoom:4,
streetViewControl:true,
icon: 'themes/taxandria/images/taxandria_marker.png'
});
$.goMap.fitBounds()