Forum
Scope-Parent [Repeater] within a repeating region
I have a repeating region with a Fancybox gallery in the region which I have setup using a repeater.
I need to pull in some information from the template which sits outside the repeater but I can seep to get it to work. This is an example of my code:
<strong class="colour1">Room Ref: </strong><perch:content id="roomref" type="text" label="Room Reference" required="true" title="true"/>
<perch:if exists="gallery" >
<h4>Gallery</h4>
<perch:repeater id="gallery" label="Gallery" scope-parent="true" >
<a class="fancybox" rel="<perch:content id="roomref" type="text" label="Room Reference" />" href="<perch:content type="image" id="fancy-img" label="Photo" width="800" height="800" />" title="<perch:content id="galDesc" type="text" label="Image description" size="xl" />"><img src="<perch:content type="image" id="fancy-img" label="Photo" width="100" height="100" crop="true"/>" alt="Thumb" /></a>
</perch:repeater>
I ned the rel= to be the same text as the 'room ref' name. Currently the above code asks for new a 'Room Reference' for each gallery image. However I don't want the user to have to type this. I want it to be taken from the initial id="roomref"
id="parent.roomref"
Top man - Thanks :-)