Cédric Girard Posted February 25, 2010 Share Posted February 25, 2010 BonsoirJe recherche un bout de code à placer dans le header.tpl de manière à charger les scripts et autres feuilles de styles spécifiques à certaines pages - notamment la page d'accueil - uniquement sur les pages où ils sont utiles.Je pense qu'il y a moyen mais je ne trouve pas le code ? J'aimerais éviter l'analyse des entêtes HTTP en PHP Me semble que ça existe mais pas moyen de retrouver !!!Merki Link to comment Share on other sites More sharing options...
Christophe Klein Posted February 26, 2010 Share Posted February 26, 2010 {if $page_name=='index'} <link href="style_index.css" rel="stylesheet" type="text/css" media="screen" /> {/if} Link to comment Share on other sites More sharing options...
Cédric Girard Posted February 26, 2010 Author Share Posted February 26, 2010 Tout simplement ???Génial !Merci :-) 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