Keyword

Displaying User Extended Fields on item page

  • Greg P
  • Greg P's Avatar Topic Author
  • Offline
  • New Member
More
13 years 5 months ago #96114 by Greg P
Hello,

am still finding my way around this marvelous component, and have installed the "User Extended Fields" plugin to include some additional information about the users.

 

In short, in item.php, i need to replace:

echo $this->item->author->name

 

with something like:

echo $this->item->author->profile->userExtendedFieldscompanycountry

 

I can see that the info is in a string within the profile object, but can't find how to access this, or other, fields that are provided by the plugin.  I'm assuming there is code for such a task somewhere, and don't really want to write a hack because I don't know where to find it, lol.

 

Thanks in advance :)

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #96115 by Terry Britton
Replied by Terry Britton on topic Displaying User Extended Fields on item page
I don't use the user extended fields so someone else may have a more specific solution, but you can always temporarily add the following to item.php: <pre><?php print_r($this); ?></pre>.  This will print all the variables associated with the page and you should be able to find the one you need.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum