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

Fibonacci
Fibonacci

Hi, I have some case about repeater. I have tried to create variable in repeater but it doesn't work.

Here's my code,

             {repeater name="banner_sections" tab="Table" prompt="Add more item"} 
              <tr>
                <td>{text name="kind" label="Title" tab="Table"}Weekdays{/text}</td>
                <td>{text name="item" label="Item" tab="Table"}Eclair{/text}</td>
                {variable type="textarea"  name="price" label="Price" tab="Table"}$0.87{/variable}
               <td>{{ price|nl2br }}</td>
              </tr>
             {/repeater}

When I access the page in fron end, the price section is not appear. But, it works in backend. When I using variable outside repeater, it working correctly. Is impossible to create a variable in repeater?

Thanks

chris10207
chris10207

i tried in a component but does not seems to be working

hmmm where do you put this code ?

Surahman
Surahman

chris10207 said:

i tried in a component but does not seems to be working

hmmm where do you put this code ?

You should put in layout.

1-3 of 3

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