Roych Posted August 8, 2017 Share Posted August 8, 2017 Hello, I need some help with repeater images to show on another pages. I have a page called "settings" a template called "settings" and repeater with image field. I need to show that repeater on different pages, but somehow can't figure it out how to.. I have this atm ... <?php foreach($pages->get('template=settings')->BackgroundImages as $bck): ?> <?php $bckgimage = $bck->bgimage->first(); ?> <li><img data-fade='2000' src="<?php echo $bckgimage->url; ?>" alt="" /></li> <?php endforeach; ?> I searched the forum but no success :\ Any help is appreciated Thank you Link to comment Share on other sites More sharing options...
louisstephens Posted August 8, 2017 Share Posted August 8, 2017 Would something like this work: working on it.... However, using "template=settings" should work for you. Are you using Tracey debugger as well? I find a lot of times this helps me spot an issue with my loops etc. https://modules.processwire.com/modules/tracy-debugger/ 1 Link to comment Share on other sites More sharing options...
Roych Posted August 8, 2017 Author Share Posted August 8, 2017 Yees its working great now Only had to put the " : " on your code first line. No tracy debugger. Now I have bg image on all my pages and one custom settings page Thank you R Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now