brianpat VIP
Total posts: 211
31 Jan 2015 09:07

i m just wondering if it is possible to show easy profile privacy fields in cobalt record based on privacy set? is it possible?

Last Modified: 04 Feb 2015

Tags Developer


pepperstreet VIP
Total posts: 3,837
31 Jan 2015 13:47

Hello brianpat, I think yes. Have a look at the EasyProfile docs and API:

Retrieve User Field (with privacy control)

$user=new JsnUser(<id_of_user>);
echo $user->getField(<field_alias>,true);

Not sure if they implemented the same functionality in their Content-plugin? Not to mention, you would have to replace the id with record authorID. So, my best bet is a custom cobalt template, which gets the values from the extended user object.


Sergey
Total posts: 13,748
03 Feb 2015 11:16
$user=new JsnUser($item->user_id);

brianpat VIP
Total posts: 211
03 Feb 2015 12:12

thanks, can you advise which files do i need to edit for this? is it the template file?


Sergey
Total posts: 13,748
04 Feb 2015 04:12

brianpat s it the template file?

Absolutely.

Powered by Cobalt