custom module dans fiche produit

  • Posts: 2668
  • Thank you received: 69
13 years 1 month ago #67746

Bonjour

j'ai cree un mod_custom qui s'appelle product_info
dans mon template show_default.php -->

$product_info_get = JModuleHelper::getModule('mod_custom','product_info');
$product_info = JModuleHelper::renderModule($product_info_get);

<? echo JText::sprintf($product_info,$this->element->product_name) ; ?>

ca marche mais est ce la seule manière de proceder pour afficher un custom module ?

merci

Last edit: 13 years 1 month ago by erickb.

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

  • Posts: 84586
  • Thank you received: 13756
  • MODERATOR
13 years 1 month ago #67907

Bonjour,

Vous pouvez également utiliser l'extension joomla "Modules anywhere" pour charger un module avec simplement un tag dans la vue.

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

  • Posts: 2668
  • Thank you received: 69
13 years 1 month ago #67949

ok merci

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

Time to create page: 0.034 seconds
Powered by Kunena Forum