Forums

Display only owner data

pocky 17 Dec, 2014
Hi!
I've a problem with chronoconnectivity! I need to display only the owner data, but when i show the connection i can see all the data in the table.

I've insert the field of the owner in the "Owner id column" in the permission tab.

Anyone can help me?

Thanks!
P.s.
sorry form my english, i'm an italian user...
GreyHead 18 Dec, 2014
Hi pocky,

You can use the ChronoConenctivity conditions box to limit the records displayed. Please see this FAQ

You can use the current user ID with this code (replace model_id.column with your values)
<?php
$user = JFactory::getUser();
return array('model_id.column' => $user->id);
?>

Bob


Later: removed extra '
pocky 19 Dec, 2014
thanks Bob for the reply!
i've read the FAQ, and i tryed to insert in the considtion box the same code, but in the front end i continue to see all the records in the table and also (with the condition box compiled) this error:
Parse error: syntax error, unexpected ''); ' (T_ENCAPSED_AND_WHITESPACE), expecting ')' in /home/XXXXXXX/public_html/administrator/components/com_chronoconnectivity5/chronoconnectivity/controllers/lists.php(245) : eval()'d code on line
What can i do?

Thanks
Matteo
GreyHead 19 Dec, 2014
Hi Matteo,

Sorry, an extra ' got left in there, I've updated my earlier post, please try the corrected version.

Bob
pocky 19 Dec, 2014
really really thanks Bob!!!
now it works!!!
This topic is locked and no more replies can be posted.