I will describe here some of my expereinces in Joomla development.
A few months ago, I have implemented pagination support in the K2 Content module for one of my clients.
It was implemented using Ajax technology upon the client request, but I will use jQuery (client side) pagination in this tutorial, leaving the Ajax pagination to next tutorial, let's go on...
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...
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.
Learn how to display K2 extra field of current item in a module position.
Follow these quick and easy steps..
How to implement Joomla! Update System in paid extensions?
I want to share with Joomla developers a trick I discovered to add a button to trigger an ajax request in ANY plugin configuration form.
Only for demonstration purposes, I will use the trick with the Log Rotation system plugin, but it can be applied to any other plugin.
Browse our complete documentation or ask in our community forum.