Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //in my module php page
- function hookMySoldoutModule {
- global $link, $smarty, $cookie;
- $smarty->assign(array(
- 'mysoldoutvar' => $cms_titles
- ));
- return $this->display(__FILE__, 'mysoldoutmodule.tpl');
- }
- //I registered my hook, hooked it in admin, added it in FrontController.php
- ...
- self::$smarty->assign(array(
- ...
- 'HOOK_MYSOLDOUTMODULE' => Module::hookExec('mysoldoutmodule')
- )};
- //and i want to have a link to display it only on ONE page
- <a href="WhatCouldBeTheLink">See all soldout products</a>
- //And the display
- in header.tpl
- ...
- <!-- Center -->
- <div id="center_column">
- {if WhatTestCouldISet to display my module only on the specific link )
- {HOOK_MYSOLDOUTMODULE}
- {else}
- //display the standard code
- {/if}
- //I need to know WhatCouldBeTheLink and WhatTestCouldISet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement