New Module Position in K2

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Mar 19, 2015 8:32 am
Reply with quote
Report this post
Hello,

i would like to add a module position straight into the K2 template. I 've read the gavick article how to add module positions.

But where to place the code? The module should be shown after"groupleading" or "groupprimary" or "containerlast"
I do not find the file who contains these divs.

Thank you for tips
User avatar
Fresh Boarder

teitbite
Sun Mar 22, 2015 5:36 pm
Reply with quote
Report this post
Hi

File can be located in /html/com_k2/category/default.php
User avatar
Moderator

GK User
Wed Apr 22, 2015 11:12 pm
Reply with quote
Report this post
Hi,

there is no default.php in this folder. Thanks for further suggestions.

Regards

gavick1.PNG

gavick2.PNG

gavick3.PNG
User avatar
Fresh Boarder

teitbite
Fri Apr 24, 2015 3:57 pm
Reply with quote
Report this post
Hi

Sorry. I meant a file File can be located in /html/com_k2/templates/default/category.php

But a code to add module inside component is a little bit different:

Code: Select all
      <?php
         $modules =& JModuleHelper::getModules('k2-adv');
         foreach ($modules as $module) {
            echo JModuleHelper::renderModule($module);
         }
      ?>
User avatar
Moderator


cron