bad ****** f***** Posted May 9, 2012 Share Posted May 9, 2012 Le titre peut porter à confusion car je en désire pas modifier ce bon vieux sitemap.tpl mais copier son code pour créer un sitemap perso. J'ai créer un fichier boutique.php zvec ce code : <?php $useSSL = true; include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/header.php'); $errors = array(); $smarty->display(_PS_THEME_DIR_.'boutique.tpl'); include(dirname(__FILE__).'/footer.php'); ?> et aussi mon boutique.tpl avec un copier coller du code contenu dans sitemap.tpl en modifiant la ligne : {capture name=path}{l s='boutique'}{/capture} Mon problème c'est que le sitemap "boutique" ne fonctionne pas, il m'affiche le tout en anglais sans afficher les catégories. merci ! Link to comment Share on other sites More sharing options...
bad ****** f***** Posted May 10, 2012 Author Share Posted May 10, 2012 je ne comprend pas la différence entre ce code : <?php $useSSL = true; include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/header.php'); $errors = array(); $smarty->display(_PS_THEME_DIR_.'boutique.tpl'); include(dirname(__FILE__).'/footer.php'); ?> Et ce code contenu dans les fichiers php d'origine : require(dirname(__FILE__).'/config/config.inc.php'); ControllerFactory::getController('SitemapController')->run(); Link to comment Share on other sites More sharing options...
bad ****** f***** Posted May 10, 2012 Author Share Posted May 10, 2012 (edited) J'aimerais simplement créer un tpl perso avec les 3 catagories principales en colonnes et avoir en liste dans chaques colonne leur category enfant respective. Mais imposible de savoir qu'elles est le code ou les variables smarty pour ce faire, je connais les 3 id category en question. une aide serais aprécier. merci Edited May 10, 2012 by bad ****** f***** (see edit history) Link to comment Share on other sites More sharing options...
bad ****** f***** Posted May 10, 2012 Author Share Posted May 10, 2012 J'ai tester cette modif sur le sitemap.tpl pour limiter à la category 5 mais il continue de tout afficher {if $smarty.foreach.sitemapTree.last && $category->id == 5} Link to comment Share on other sites More sharing options...
bad ****** f***** Posted May 22, 2012 Author Share Posted May 22, 2012 bon mode solo dommage 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