Jump to content

Page Reference not selected


jds43
 Share

Recommended Posts

Hello, I have a Page Reference by template radio button field to promote a certain page (only two options), but I'd like to target the page that isn't selected. This would be used dynamically throughout the site.

Does anyone know how I could accomplish this? Would I use something like remove() or not()?

 

Link to comment
Share on other sites

                    $main = "";
					$promoted = "";

					$promoted = $homepage->promote;

                    $main = $pages->find('template=main')->remove($promoted);
                    foreach($main as $ma) {
                        echo "<h5>$ma->title</h5>";
                    }

This appears to have worked ??

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...