Keyword

Placing module in K2 HTML

  • Adi wijaya
  • Adi wijaya's Avatar Topic Author
  • Offline
  • New Member
More
13 years 11 months ago #89678 by Adi wijaya
Placing module in K2 HTML was created by Adi wijaya
Hi ,i have a problem to place a module to my several pages consistently.This is the condition.I made a k2 tools "select box" and I want to place it between Category description and item lists ,in several catefory pages.For the normal condition in joomla I just have to make a jdoc position in index.php in my tamplate.But in K2 I don't undestand how to place a module like that.I've tried this code inside com_k2-> tamplates->default->category.php<?php if( $this->countModules('productbar') ): ?>        <div id="productbar">            <h3>Select Category</h3>            <jdoc:include type="modules" name="productbar" />        </div><br />      <?php endif; ?>but countModules function can't be use in here.any idea?Thanks b4.

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

More
13 years 11 months ago #89679 by Markus Thiel
Replied by Markus Thiel on topic Placing module in K2 HTML
just use and add the other divs in the module with template override

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

  • Adi wijaya
  • Adi wijaya's Avatar Topic Author
  • Offline
  • New Member
More
13 years 11 months ago #89680 by Adi wijaya
Replied by Adi wijaya on topic Placing module in K2 HTML
Markus Thiel said:just use and add the other divs in the module with template override


sorry.how to do the template override? I don' undestand yet.
where is the div must be added? is it in here? com_k2-> tamplates->default->category.php

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

More
13 years 11 months ago #89681 by Markus Thiel
Replied by Markus Thiel on topic Placing module in K2 HTML
Template overrite is a joomla feature that allows you to make changes in the ways that modules and component look... you should search on forum.joomla.org or here about it..

Adi wijaya said:
Markus Thiel said:just use and add the other divs in the module with template override


sorry.how to do the template override? I don' undestand yet.
where is the div must be added? is it in here? com_k2-> tamplates->default->category.php

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

  • Adi wijaya
  • Adi wijaya's Avatar Topic Author
  • Offline
  • New Member
More
13 years 11 months ago #89682 by Adi wijaya
Replied by Adi wijaya on topic Placing module in K2 HTML
I 've found the solution using plugin "module anywhere"

Thanks for the reply. :)

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


Powered by Kunena Forum