This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Is it possible to use a repeater for a Custom Page Field? if so how do you define the fields that would be inside the repeater?
example: {variable name="test" label="Test" tab="Test" type="repeater"}{/variable}
Thanks!
The repeater field works in the Campaign plugin using the {repeater}{/repeater} tags, but the Static Pages plugin does not support array values yet. We might implement this at a later time.
Hey daftspunk, could you offer up any estimated timeframes at all?
If there isn't too much involved, I may be able to help out but I will need to purchase Campaign Plugin to find out how it's currently setup there I think.
pxpx said:
Hey daftspunk, could you offer up any estimated timeframes at all?
If there isn't too much involved, I may be able to help out but I will need to purchase Campaign Plugin to find out how it's currently setup there I think.
+1
Fibonacci,
There is a pull request pending, but it comes with caveats. https://github.com/rainlab/pages-plugin/pull/95
Cheers, Jon
pxpx said:
Fibonacci,
There is a pull request pending, but it comes with caveats. https://github.com/rainlab/pages-plugin/pull/95
Cheers, Jon
Wow, the repeater now appears!
But, when I save the page, I got the following error,
Last updated
I just try like in documentation,
here's my code,
{repeater name="content_sections" prompt="Add another content section"}
<h2>{text name="title" label="Title"}Title{/text}</h2>
<p>{textarea name="content" label="Content"}Content{/textarea}</p>
{/repeater}
Off the top of my head you will need to be on 300 due to the parser. Please give that a go and let me know if you still have problems.
pxpx said:
What build are you on?
I have updated to the latest build (For now 304) and it works!
Thank you so much, Jon.
You save my days!
(I'm very glad)
Last updated
Please let me know if you or this issues have been fixed by the author.
Thanks, :)
Last updated
pxpx said:
Off the top of my head you will need to be on 300 due to the parser. Please give that a go and let me know if you still have problems.
I've got new problem.
I can't use more than one repater in layout. Have you try this? When I click another tab, it's not happened.
For example, I have two tabs like below: content and image
When I click the image's tab, it still on the content's tab or another tab I've clicked. I tried to remove the content repeater and now the image's tab work.
This was the problem I raised in my previous posts. There is an issue with the tabs and this needs to be modified in the core.
https://github.com/rainlab/pages-plugin/pull/95#issuecomment-146738354
Yea, exactly that. It basically means that for every tab within a repeater it sets those ID's against the repeater tabs and then sets different id's against the main tabs, they then dont match and can't open the panels.
Looking into a solution but at the moment my time is very limited.
1-20 of 20