Skip to main content

custom module dans fiche produit

14 years 1 month ago - 14 years 1 month ago #67746 by erickb
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: 14 years 1 month ago by erickb.

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

14 years 1 month ago #67907 by nicolas
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.

14 years 1 month ago #67949 by erickb
ok merci

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

Time to create page: 0.050 seconds
Powered by Kunena Forum