php - [Joomla 3+]How to show K2 Category, to a user assigned to it -
i have problem or situation want show k2 category/categories user assigned specific category, if user logged in. right display categories if user logged in or not, , can add items/articles specific category assigned if he/she's logged in works expected. here knows how solve it? or suggestions how can make work? appreciated. joomla 3.3.6 k2 v2.6.7
if can code create plugin in
maintain mapping of k2 usergroup allowed k2 categories
catch onafterroute trigger , add code check k2 usergroup of user , allowed k2 category.
function onafterroute() { $user = jfactory::getuser(); $groups = $user->groups; $jinput = jfactory::getapplication()->input; $option = $jinput->get('option', ''); $view = $jinput->get('view', ''); $task = $jinput->get('task', ''); // place k2-user-group related checking here }
i not sure view, task , other variables k2 adds in url while displaying category in front-end need check first.
Comments
Post a Comment