Cannot display a module position (left)

  • Posts: 7
  • Thank you received: 0
9 years 2 months ago #211411

-- HikaShop version -- : HikaShop Starter 2.5.0
-- Joomla version -- : Joomla! 3.4.3 Stable [ Ember ] 2-July-2015 16:00 GMT
-- PHP version -- : 5.5.26

Hi

Thanks for reading.

I'm was trying to modify my template so it would display the left column position module. So I was to create a div container to do so on the /mytemplate/html/com_hikashop/product/show.php, but neither

<?php echo   JHTML::_('content.prepare', '{loadposition left}');  ?>
nor
{loadposition left}

would display the modules for the left position. Instead I had a page crash.

Can someone give me some clue on this problem please?
I'm new on Hikashop, sorry if this is evident and simple.

Regards,
Louis

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

  • Posts: 2143
  • Thank you received: 747
9 years 2 months ago #211446

Hi,

{loadposition xyz} is meant for displaying modules in content such as articles, but it doesn't work in PHP, not HikaShop PHP or any other.

To keep it simple, try NoNumber's "Modules Anywhere" . It works, is simple and easy, and... free! :)


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 26150
  • Thank you received: 4026
  • MODERATOR
9 years 2 months ago #211447

Hi,

@louisrui
To use the "loadposition" tag, the plugin "Content - Load Modules" must be published.
Otherwise you can use Joomla core itself to display the modules you want ; like with "JModuleHelper::renderModule".

@lousyfool
Sorry but it is working using PHP ; the Joomla article are displayed thanks to some PHP code ; the template are based on PHP, HikaShop is base on PHP, etc.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum