Keyword

Adding a K2 Module in the user template

  • juro
  • juro's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 8 months ago #80173 by juro
Hi,I want to display the category list, archive list and tag cloud module in the user's template (and only that). As I don't have a menu item for the user's page, I cannot assign a different template, so I want to include it in my user.php .Is this possible and if so, how?Roland

Please Log in or Create an account to join the conversation.

  • juro
  • juro's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 8 months ago #80174 by juro
Replied by juro on topic Adding a K2 Module in the user template
I found an answer in a different thread and post it here:

Answer was by munyah (thank you!):

/* get all Modules assigned to Position 'latest' */
$latestItem = &JModuleHelper::getModules( 'latest' );

/* loop through the array and render their output */
foreach ($latestItem as $latest) {
$_options = array( 'style' => 'xhtml' );
echo JModuleHelper::renderModule($latest,$_options);
}

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum