Repeater field bug?
#1
Posted 27 May 2012 - 09:35 PM
I have a page template that has a repeater fieldtype (with two fields in it). For some reason (that I can't see) those repeater fields only display when I'm logged in as the admin and not as a guest. I don't have any access restrictions on the template and any other fields show up.
I'm using the latest 2.2.2.
Regards
Marty
#3
Posted 28 May 2012 - 03:22 AM
<?php
foreach($page->videos as $videoitem) {
echo "<dt><a href=''>{$videoitem->title}</a></dt>";
echo "<dd><iframe width='{$vidx}' height='{$vidy}' src='http://www.youtube.com/embed/{$videoitem->video_link}?rel=0' frameborder='0' allowfullscreen></iframe></dd>";
}
Regards
Marty
#5
Posted 28 May 2012 - 04:17 AM
#6
Posted 28 May 2012 - 05:27 AM
#7
Posted 28 May 2012 - 05:35 AM
Just then I created a new template and added the fields manually and it all works now.
Regards
Marty
#9
Posted 28 May 2012 - 05:51 AM
#11
Posted 29 May 2012 - 10:44 AM
#12
Posted 30 May 2012 - 06:03 PM
When I create and preview the page, it shows up great. When I publish it, it doesn't show up. I'm also using repeater fields. There must be a bug with it or something.
Here is my code:
<?php $counter = 1;
foreach($page->step as $item) {
$step_title = $item->single_line_text;
$step_desc = $item->message;
echo '<div class="hire-number"><p>' . $counter . '</p></div><div class="hire-main">';
echo '<h2>' . $step_title . '</h2> <p>' . $step_desc . '</p></div>';
$counter++;
} ?>
I will try creating a new template using the fields and see how it goes.
Tina // TinaciousDesign.com // @tinaciousdesign
#13
Posted 30 May 2012 - 06:10 PM
Recreating the page is a work-around to this until it is fixed.
Tina // TinaciousDesign.com // @tinaciousdesign
#14
Posted 30 May 2012 - 06:15 PM
Tina // TinaciousDesign.com // @tinaciousdesign
#15
Posted 30 May 2012 - 06:19 PM
So basically: do not "Save without Publishing" on repeater fields otherwise you won't be able to publish those fields.
Tina // TinaciousDesign.com // @tinaciousdesign
#16
Posted 31 May 2012 - 02:53 AM
here is a bug with the repeater fields. You can't create more than a certain amount, and if you do you need to publish the page because if you save without publishing, those fields will be marked unpublished and there's no way to publish just one of the repeater fields in that group. Weird.
I can confirm this. Just reproduced it. All the repeater fields that were created while the page was "saved + kept unpublished" stopped being outputted to the page after i finally published it, although they still appear in the admin side.
#17
Posted 31 May 2012 - 09:53 AM
Thanks,
Ryan
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













