perle-d-argent Posted July 6, 2012 Share Posted July 6, 2012 Bonjour a tous J'espere que vous allez pouvoir m'aider : Je cherche a inserer une balise <br /> dans mon titre de ma page d'acceuil. Impossible de le faire directement via l'editeur de page d'acceuil. A l'aide de firebug, j'ai reussi a inserer ma balise et j'arrive au résultat souhaiter. Mais évidemment le changement ne s'enregistre pas. Et dans le editorial.tpl voici ce que j'ai : <!-- Module Editorial --> <div id="editorial_block_center" class="editorial_block"> {if $editorial->body_home_logo_link}<a href="{$editorial->body_home_logo_link|escape:'htmlall':'UTF-8'}" title="{$editorial->body_title|escape:'htmlall':'UTF-8'|stripslashes}">{/if} {if $homepage_logo}<img src="{$link->getMediaLink($image_path)}" alt="{$editorial->body_title|escape:'htmlall':'UTF-8'|stripslashes}" {if $image_width}width="{$image_width}"{/if} {if $image_height}height="{$image_height}" {/if}/>{/if} {if $editorial->body_home_logo_link}</a>{/if} {if $editorial->body_logo_subheading}<p id="editorial_image_legend">{$editorial->body_logo_subheading|stripslashes}</p>{/if} {if $editorial->body_title}<h1>{$editorial->body_title|stripslashes}</h1>{/if} {if $editorial->body_subheading}<h2>{$editorial->body_subheading|stripslashes}</h2>{/if} {if $editorial->body_paragraph}<div class="rte">{$editorial->body_paragraph|stripslashes}</div>{/if} </div> <!-- /Module Editorial --> Je ne sais pas ou insérer ma balise pour le même résultat Merci d'avance de vos réponses. Link to comment Share on other sites More sharing options...
iXs Posted July 6, 2012 Share Posted July 6, 2012 Bonjour, si vous modifiez un TPL n'oubliez pas de forcer la compilation temporairement via le BO ( preferences > performances ) Link to comment Share on other sites More sharing options...
perle-d-argent Posted July 6, 2012 Author Share Posted July 6, 2012 Oui, à ce niveaux c'est bon. Mais c'est que dans mon fichier tpl, je ne trouve pas ma phrase pour y rajouter ma balise ... Link to comment Share on other sites More sharing options...
Atch Posted July 6, 2012 Share Posted July 6, 2012 Bonjour, Avez vous essayez ici : {if $editorial->body_title}<h1>{$editorial->body_title|stripslashes}</h1><br/>{/if} V++ Atch Link to comment Share on other sites More sharing options...
perle-d-argent Posted July 6, 2012 Author Share Posted July 6, 2012 Ca change rien .... Je veut rajouter cette balise au milieu de mon titre mais je ne trouve pas ou le mettre. En fait je trouve ou est mon titre : {if $editorial->body_title}<h1>{$editorial->body_title|stripslashes}</h1>{/if} dans editiorial.tpl mais ou est le texte du titre ? Merci encore Link to comment Share on other sites More sharing options...
iXs Posted July 6, 2012 Share Posted July 6, 2012 mettre un BR au milieu du H1 ca ne va pas être possible. Je te propose de laisser vide la case de titre principal dans l'éditeur de page d’accueil et de créer ton titre dans la case texte d'introduction. Tu as les balises titre (h1,h2...) ou tu peux mettre un texte à la taille de ton choix, bref tu peux y faire ce que tu veux ^^ Link to comment Share on other sites More sharing options...
perle-d-argent Posted July 6, 2012 Author Share Posted July 6, 2012 Ha merci c'etait une bonne idée j'ai reussi à faire tous ce que je voulais. Merci beaucoup. 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