Question

I have the Joomla K2 plugin installed. Is there a way to read the value of an article's K2 Extra Field from a module? I just need to read the value in PHP from within a module's default.php file. Thanks.

Was it helpful?

Solution

I modified the K2 content module to pull all of the current items data for display in a module position. It supports subtemplates and data displayed can be selected through the module parameters so you should be able to display anything you want in the module. This module is dependent on being displayed on a K2 item page to work since it pulls the content based on the current item ID. You can get that module here - K2 BNR Module

Otherwise, you can use the standard K2 Content module. You can choose your content from categories, specific items, or even a single item. Then use the parameters and template options to display the content as needed. This does not require the module to be on a K2 item page as it selects the items to display on its own.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top