ecat Posted February 26, 2009 Share Posted February 26, 2009 si je desire deplace les liens permanents sur mon footer comment faut-il procèder j'ai essayé de greffé le module lien permanent sur le footer via les positions de modules mais rien n'apparaitmerci pour votre aide Link to comment Share on other sites More sharing options...
SotEW Posted February 26, 2009 Share Posted February 26, 2009 rajoute dans le fichier /modules/permanentlinks/permanentlinks.php la fonction : function hookFooter($params) { return $this->hookTop($params); } là, en greffant le module dans le footer, ça devrait fonctionner. Link to comment Share on other sites More sharing options...
ecat Posted February 27, 2009 Author Share Posted February 27, 2009 ok merci je vais essayé ca Link to comment Share on other sites More sharing options...
ecat Posted February 27, 2009 Author Share Posted February 27, 2009 apres un essai rein de fonctionne ou n'apparait dans le footervoici le code du fichier dont tu me parle en y regardant de plus prés j'ai l'impression que ce module est deja present dans le fichier peut tu me confirmer cela stp je te joins le code du fichier ci dessous <?php class BlockPermanentLinks extends Module { function __construct() { $this->name = 'blockpermanentlinks'; $this->tab = 'Blocks'; $this->version = 0.1; parent::__construct(); // The parent construct is required for translations $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('Permanent links block'); $this->description = $this->l('Adds a block that displays permanent links such as sitemap, contact, etc.'); } function install() { if (!parent::install()) return false; if (!$this->registerHook('top')) return false; return true; } /** * Returns module content for header * * @param array $params Parameters * @return string Content */ function hookTop($params) { return $this->display(__FILE__, 'blockpermanentlinks-header.tpl'); } /** * Returns module content for left column * * @param array $params Parameters * @return string Content */ function hookLeftColumn($params) { return $this->display(__FILE__, 'blockpermanentlinks.tpl'); } function hookRightColumn($params) { return $this->hookLeftColumn($params); } } ?> Link to comment Share on other sites More sharing options...
Cédric Girard Posted February 27, 2009 Share Posted February 27, 2009 Une fois la modification faite, as-tu déplacé le module via le back-office ?(Modules / Positions) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now