Forums

Multi Record Loader

manxman 09 Jun, 2011
Good Day,

Very nice system - novice hoping to learn.

The tutorial "multi-record loader" works great. However, it returns all records irrespective of the user that created the records. What amendments to the tutorial need to be made so that only records pertaining to the loged-in user are listed.

Many thanks.

Terry
GreyHead 09 Jun, 2011
Hi Terry,

In the Multi-Record loader configuration click the Advanced tab and scroll down to the WHERE box.

There are many example in the ChronoConnectivity Forums here of WHERE clauses. To get the current user's records it's going to be something like:
<?php
$user =& JFactory::getUser();
if ( $user->id ) {
  echo " `cf_user_id` = '{$user->id}' ";
}
?>

Bob
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger