Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / [SOLVED]Inclure un Module ou Position-loadposition

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[SOLVED]Inclure un Module ou Position-loadposition

More
11 years 6 months ago - 11 years 6 months ago #1811 by hermes13
Bonjour
Est il possible d'inclure un Module dans les fichier du Repertoire - View
Ou ailleurs ??

J'ai beau essayer avec {loadposition xxx} et/ou {loadmenu xxx}
Mais il est juste interpreter comme du texte, il y aurait il une astuce ?

Le but, charger des Banner - des menu contextuel - et autres

Merci

AdsManager : 2.5.9 - Gold >> 2.9.6
Joomla : J2.5.13
Host : OVH
Last edit: 11 years 6 months ago by hermes13.
More
11 years 6 months ago #1825 by tompap
Il faut le faire en PHP:

<?php
$style ='none';
$document = JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$modules = JModuleHelper::getModules($position); // remplacer $position par la position que vous voulez charger)
$params = array('style' => $style);
ob_start();

foreach ($modules as $module)
{
echo $renderer->render($module, $params);
}

$result = ob_get_clean();
echo $result;
?>
More
11 years 6 months ago #1866 by hermes13
Merci beaucoup

Cela fonctionne super
:-)

AdsManager : 2.5.9 - Gold >> 2.9.6
Joomla : J2.5.13
Host : OVH
More
11 years 6 months ago #1871 by tompap
Pas de problème :)
Time to create page: 0.140 seconds
Powered by Kunena Forum