How to display module in template?

  • Posts: 126
  • Thank you received: 0
11 years 2 weeks ago #131595

The code {load position new_position} working in article, description of category or product, but not working in code of template. What code will work in template, to display HikaShop content module on page?

P.S Sorry this topic for Product & Category Display category...

Last edit: 11 years 2 weeks ago by neviqimka.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 2 weeks ago #131626

Hi,

The simplest is tol use modules anywhere: extensions.joomla.org/extensions/core-en...embed-a-include/6402

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 2 weeks ago #131627

Hi,

The simplest is to use modules anywhere: extensions.joomla.org/extensions/core-en...embed-a-include/6402

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

  • Posts: 126
  • Thank you received: 0
11 years 2 weeks ago #131668

Can I do this without to installing additional extensions? I need only display {loadposition my_position} in the temlate

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 2 weeks ago #131673

The loadposition plugin of joomla doesn't support replacing its tags in other places than content element.
You would thus need to do:
<?php echo JHTML::_('content.prepare',{loadposition my_position}); ?>

Please note that this question has nothing to do with HikaShop. Please use the Joomla forum for questions related to Joomla setup.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum