Jump to content

field value based on page title


bwakad
 Share

Recommended Posts

I need to echo the field value in page array. No problem so far. But since I use a filter and all, I need it to be dynamic.

The field is actually the current $page->title/name.

I am in a foreach $selects as $member ...

Normally it is: $member->household->title

So I have this and wonder if this is the shortest possible scenario... any suggestions are welcome.

<?php $value = $member->get($page->name); echo $value->title  ;?>
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...