Jump to content

Check if PageTable contains certain Page


Recommended Posts

Hey there,

i've set up a page wich uses pageTable and it works like a charm.

for my home page i get several pages. they are sperated in two types:
a) page has the module 'featured_img'

b) page doesn't have the 'featured_img'


my pageTable field is called add_modules. so i was wondering if something like 

<?php foreach ($featured as $child): ?>
    <?php if ($child->add_modules->module_featuredimg): ?>
        // show image
    <?php else: ?>
        // show text
    <?php endif; ?>
<?php endforeach; ?>

is possible?


thanks for your input!

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

  • Create New...