chenowith Posted April 5, 2011 Share Posted April 5, 2011 Bonjour,J'ai intégrer une navigation générale en jquery (jquery-1.2.6), seulement je rencontre un conflit jquery lorsque je place ce script dans la partie head du header.tpl : [removed] ddsmoothmenu.init({ mainmenuid: "smoothmenu1", orientation: 'h', classname: 'ddsmoothmenu', contentsource: "markup" }) [removed] Résultat mon index ne s'affiche plus. Merci de votre aide précieuse et bonne journée à tous. Link to comment Share on other sites More sharing options...
Broceliande Posted April 5, 2011 Share Posted April 5, 2011 salut,je ne crois pas que jquery y soit pour quelque chose , tu peux poster ton header.tpl ?A mon sens c'est smarty qui n'aime pas ton code, il te manque probablement des {literal}{/literal} Je peux te corriger ça rapido si tu nous poste ton tpl Link to comment Share on other sites More sharing options...
chenowith Posted April 5, 2011 Author Share Posted April 5, 2011 Bonjour Broceliande...Voici mon tpl <html > <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico" /> <link href="{$content_dir}includes/menu-style-equator.css" rel="stylesheet" type="text/css" /> <link href="{$content_dir}includes/equator-style.css" rel="stylesheet" type="text/css" /> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} [removed][removed] [removed] var baseDir = '{$content_dir}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = '{$priceDisplayPrecision*$currency->decimals}'; var roundMode = '{$roundMode}'; [removed] [removed][removed] [removed][removed] [removed][removed] {if isset($js_files)} {foreach from=$js_files item=js_uri} [removed][removed] [removed][removed] [removed][removed] [removed][removed] [removed] jQuery.noConflict(); ddsmoothmenu.init({ mainmenuid: "smoothmenu1", //menu DIV id orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v" classname: 'ddsmoothmenu', //class added to menu's outer DIV //customtheme: ["#1c5a80", "#18374a"], contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"] }) [removed] {/foreach} {/if} {$HOOK_HEADER} </head> <body> {if !$content_only} <!-- Header --> Accueil Equator item1 | item2| item3 Prestations item1 | item2| item3 Références Équipement item1 | item2| item3 Boutique <!-- Left --> {if $page_name != 'new-products'and $page_name !='contact-form' and $page_name !='404'} Espace Boutique Lorem ipsum doro sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis elit a ipsum consectetur aliquam. Cras vitae ligula nunc, eget tincidunt ligula. En savoir +{/if} {$HOOK_LEFT_COLUMN} <!-- Center --> {/if} Link to comment Share on other sites More sharing options...
Broceliande Posted April 5, 2011 Share Posted April 5, 2011 Excuse moi , il faudrait que tu postes ton fichier mais en pièce jointe, car en copier coller , le code js est occulté Link to comment Share on other sites More sharing options...
chenowith Posted April 5, 2011 Author Share Posted April 5, 2011 Je viens de trouver une alternative avec le menu de Julien Breux...qui est beaucoup plus propre que mon test!!!Merci Brocéliande et 1000 excuses de t'avoir fait perdre de ton temps...à charge de revanche...Très bonne journée. Link to comment Share on other sites More sharing options...
Broceliande Posted April 5, 2011 Share Posted April 5, 2011 Je viens de trouver une alternative avec le menu de Julien Breux...qui est beaucoup plus propre que mon test!!!Merci Brocéliande et 1000 excuses de t'avoir fait perdre de ton temps...à charge de revanche...Très bonne journée. No problemo , c'est effectivement une bonne alternative ! bonne journée 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