We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Repeaters and Select value
I have a content type select option within a repeater. I am unsure how to filter the selected option within the page. In the template I have:
<perch:repeater id="sports" label="Sports" scope-parent="true"> <perch:content label="Sport" type="select" id="repSport" options="Rugby,Football,Cricket,Hockey,Tennis,Real Tennis,Athletics,Boat Club,Clay Shooting,Rifle Shooting,Sailing,Squash,Golf,Ladies Sports" /> </perch:repeater>
And in my page I have:
<?php perch_content_custom('Representatives', array( 'template'=>'_rep-details-main.html', 'filter'=>'repSport', 'value'=>'sports.repSport.Tennis' )); ?>
So it is the value part that is puzzling me. I have tried 'sports.repSport.Tennis' and 'sports.repSport' and 'sports.Tennis' but not getting anywhere.
Want to reply to this thread?Login with Perch