This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

saman32c7010594
saman32c7010594

How can I not display a field in the repeater when it does not receive data on the output.

Please check the example below, I want to get a h2 tag and it is empty. Do not show in the output.

{repeater name="panels" prompt="Add another panel" tab="Panels"}

h2 {text name="panel_title_h2" label="Title"}Title{/text} /h2 <-- this code between h2 tag

h3 {text name="panel_name" label="Name"}Name{/text} /h3

{/repeater} Can I do this with {if}?

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.