bwakad Posted September 6, 2014 Posted September 6, 2014 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 ;?>
horst Posted September 6, 2014 Posted September 6, 2014 <?php echo $member->get($page->name)->title; ?> 1
bwakad Posted September 6, 2014 Author Posted September 6, 2014 Hey cool... as you see - am thinking difficult! Your solution is more nice, thanks.
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