Sorry to ask a lame question but after trying I've failed to work out the code I need to do something that I am sure must be easy to do with PW but my newb status and PHP/jQ weakness have foiled me :/
I'm using pages to make a 'select' as described here.
I'm using a repeater to add two fields to the editor, one a select and the other a textarea.
For my template, in my awful pseudo code I want to do this:
if segment_width is set {
if segment_width = half then output "grid_6" (to fill in a CSS class)
if segment_width = third then output grid_4 - - - " - - -
if segment_width = quarter then output grid_3 - - - " - - -
output the segment field that follows on from the segment_width/is within the same repeater as the segment_width
}
I assume I will want a foreach or other loop as these repeater panels will be added in pairs or threes or fours and there may be more than one set, e.g.:
segment_width (half)
segment_width (half)
segment_width (third)
segment_width (third)
segment_width (third)
THANK YOU if you're able to point me in the right direction. Cheers, -Alan
EDIT: My other post explains what I am trying to do a bit better