I am trying to figure out what code to add to my item.php to show a subset of extra fields to all users and the full set to a specific user group.
I found this thread, but can't quite seem to get it to work - forum.joomla.org/viewtopic.php?p=2725146
Here is an example of what I am trying:
I found this thread, but can't quite seem to get it to work - forum.joomla.org/viewtopic.php?p=2725146
Here is an example of what I am trying:
13 years 1 day ago #120720
Hi, it need small modifications, please try this:
<?php if(JFactory::getUser()->guest) {
//do user logged out stuff
?>
<li><?php echo $this->item->extraFields->alias1->value ;?></li>}
else {
//do user logged in stuff
<li><?php echo $this->item->extraFields->alias1->value ;?></li>
<li><?php echo $this->item->extraFields->alias2->value ;?></li>
<li><?php echo $this->item->extraFields->alias3->value ;?></li>
<?php } ?> Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store