[solved] help learning how to access any value of content object
Posted: Tue Nov 16, 2010 3:08 pm
Sup peeps,
I got awesome feedback from you guys on how to access the extra1 field with the content_obj, which works great with mPropertyTypes values!
But now that I look at the entire object, is there "a way" that I can learn how to access any array value of the object? For example, I want to access the mName (which I assume is the title of the content page?). So I did this...
But it didn't work. I'm willing to learn!
Thanks
I got awesome feedback from you guys on how to access the extra1 field with the content_obj, which works great with mPropertyTypes values!
Code: Select all
$getfield = $content_obj->GetPropertyValue('extra1');
Code: Select all
$content_obj = $smarty->get_template_vars('content_obj');
$getname = $content_obj->GetPropertyValue('mName');
print 'the title of the page is: '.$getname;
But it didn't work. I'm willing to learn!
Thanks