Add Module Position in Template

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 8 months ago #93366

I added a module position in my template (product > show_default) but the content is not showing. I just want to confirm that I cannot use Joomla's module in your template? Or if it's possible, how can I do that please?

I used the code below.

<div id="product-notice">
<jdoc:include type="modules" name="product-notice" />
</div>

Thanks in advance!!

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

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #93402

Hi,

I think that you'll just have to :

- Go to "Control Panel->Module Manager->'Your module'"
- Set the "Position" option to a position from your new template and it should display.

Hope this will help you a little.

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 8 months ago #93418

I'm trying to use it the same way I use it in my site's template but it did not work.

I set the position in the templateDetails.xml and put the module in the position that I add in templateDetails.xml but it does not display the content. Is it possible that it will not work in the shop's template?

Thanks!!

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

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #93425

Ok, I think that it will be hard without seeing the options of your module and the page where they should be displaying. Could you provide that ?

Could you also try it with another template ?

Thank you.

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 8 months ago #93432

Maybe there's a better way to do this and if there is please let me know. What I'm trying to do is a message below the product description area, where you see the RED border. I would like that message to display below each product.

I add it under hikashop_product_id_main in the "product > show_default" template. The div ID is hikashop_product_notice.

I published the module but the content is not showing.

I'm sending you the URL via PM. Thanks in advance!!

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

  • Posts: 82795
  • Thank you received: 13356
  • MODERATOR
11 years 8 months ago #93444

You can't use jdoc:include in a component view. You can only do that in your template.
If you want to add a module under the product page, you would have to load it directly in PHP:
forum.joomla.org/viewtopic.php?t=247191

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 8 months ago #93450

Thank you very much guys it worked!!

What I did was use the "Modules Anywhere" plugin and insert the module position in my template eg: {modulepos user3} and now the content is showing.

Thanks again!

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

Time to create page: 0.085 seconds
Powered by Kunena Forum