This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
p1nkPixie
Hi All, Was hoping someone could help and/or point me in the right direction to find a solution. I am new to coding and to october but love it so far. I am trying to create a repeatable card with a button that collapses to display more content. My code is below however only the content via the button on the first card shows and when you press the buttons on other cards it shows the content from the first card. I believe the offending item maybe
. I believe I need to make the id unique for each card but not sure how to do this while still being able to add new cards via the cms?
Thanks in advance for any help.
{repeater tab="tab1" name="tab1" prompt="Add another card"}
{variable name="cardImg2" label="Image" tab="tab1" type="mediafinder" mode="image"}{/variable}
{variable name="cardTitle2" label="Title" tab="tab1" type="text"}{/variable}
{variable name="btn2Text" label="URL Button Text" tab="tab1" type="text"}{/variable}
{variable name="btn2Link" label="URL Link" tab="tab1" type="text"}{/variable}
{variable name="cardText2" label="Text" tab="tab1" type="richeditor"}{/variable}
{/repeater}
1-1 of 1