Forum
Perch Every Tag Question
Perch 3.0.9
<perch:before>
<div class=“row”>
</perch:before>
Your code here
<perch:every count="3">
</div>
<div class=“row”>
</perch:every>
<perch:after>
</div>
</perch:after>
Watched the video confused. With the every tag, you basically have the </div> tag in there twice is that correct?
What are you trying to accomplish?
I want a row of 3 items to fill itself with items I type in. Connected with this will have to be the ability to put perch code within perch code. I need to be able to have <perch:if exists="address<perch:content id="number" type="text" label="Item number"> This id="number" would be put in for every instance in that entry of a numbered area i.e. image1, link1 and others. Will that work? Then I want to put that statement in the every statement so I can have multiple google maps connected to information on the page without having to hardcode number the items. Is that possible?
No, that won't work.
Is there any workaround that would work. Or does it have to be hard coded.
You shouldn't need to manage Perch IDs in that way - I think you might be overcomplicating things. If you have a multiple item region then it should just work.
If you need specific IDs for your front end code, that's a completely different issue.