Explore our latest tutorials and blog posts about Joomla development
Learn how to modify K2 item navigation process to provide a previous and next for the first and last item in a category.
It is required to modify the item navigation logic so that:
Learn how easily to improve the performance of K2 with many extra fields created, you will notice the performance boost immediately after applying this hack...
Recent K2 release has a new CSS rules to add "#" before tags, even if the tag consists of multiple words, since some K2 community members don't like this format and asked how to turn if off.
Here is how to do it without the need to do it with every K2 update...
How to setup the relationship between K2 user groups and extra field groups?
In the item.php, lines 15 to 19, you will find this array:
$efACL = array(
"3" => array("1", "2", "3"),
// Administrator
"4" => array("1","2"),
// Manager
"5" => array("1")
// User
);
As you can see, the keys of this array are K2 user groups ID 3, 4 and 5
And the value of each element is an array of extra field groups that can be seen by the users belonging
to the K2 user group.
For example “3”=> array(“1”, “2”, “3”) means that the users belonging to the K2 user group with ID =
3, which is the administrator group, can see the extra fields belonging to extra field groups with ID =1,
2, 3
Then, I added this condition && in_array($extraField->group, $canSee) in the IF statement which
checks for the extra field value before displaying it.
Are you looking for a modern and nifty layout for the K2 tags cloud of the K2 Tools module? In addition to that, the tags will be highlighted in different colors according to how many items related to them.
Learn how to display K2 extra field of current item in a module position.
Follow these quick and easy steps..
Browse our complete documentation or ask in our community forum.