chris.paschen
Chris Paschen
I'm trying to set-up controls for specific entries (i.e. rows in the table) for a Fabrik list. (To be able to set the access per table row)
I've tried to follow the tutorial here but it's J1.5 and doesn't apply to J3 and current fabrik. But piecing together tips from various forum posts I've been able to get this:
or
or
In each case, when I try to view the front-end page displaying the list, all I get is a white screen.
(And deleting the pre-filter shows the list as it should, although without restrictions).
Have I completely missed how to do this?
Is there some documentation that is actually up-to-date?
This is a basic Joomla function so I would think that there must be SOME documentation somewhere.
(If not, please help me and I'll write-up the wiki page.)
Thanks
I've tried to follow the tutorial here but it's J1.5 and doesn't apply to J3 and current fabrik. But piecing together tips from various forum posts I've been able to get this:
- Add a 'viewlevel' element to the list/group
- In the list | data | prefilter add a prefilter like this:
- WHERE
- Field: (same 'viewlevel' element added above)
- Condition: IN
- Type: Eval
- Apply to: Public
- Value: .. this is where I'm not 100% sure I have this correct:
PHP:
$user = JFactory::getUser();
return $user->getAuthorisedViewLevels();
PHP:
return JFactory::getUser()->getAuthroisedViewLevels();
PHP:
return JAccess::getAuthroisedViewLevels(JFactory::getUser()->id);
In each case, when I try to view the front-end page displaying the list, all I get is a white screen.
(And deleting the pre-filter shows the list as it should, although without restrictions).
Have I completely missed how to do this?
Is there some documentation that is actually up-to-date?
This is a basic Joomla function so I would think that there must be SOME documentation somewhere.
(If not, please help me and I'll write-up the wiki page.)
Thanks