21/02/2011, 16:45:20
voici donc le code de la solution, si ça peut servir :
Code :
{capture name=titlemenu1}{content block='titre-menu-1' label='Titre menu 1' oneline='true'}{/capture}
{capture name=prixmenu1}{content block='prix-menu-1' label='Prix menu 1' oneline='true'}{/capture}
{capture name=menu1}{content block='menu-1' label='menu 1'}{/capture}
{capture name=titlemenu2}{content block='titre-menu-2' label='Titre menu 2' oneline='true'}{/capture}
{capture name=prixmenu2}{content block='prix-menu-2' label='Prix menu 2' oneline='true'}{/capture}
{capture name=menu2}{content block='menu-2' label='menu 2'}{/capture}
{capture name=titlemenu3}{content block='titre-menu-3' label='Titre menu 3' oneline='true'}{/capture}
{capture name=prixmenu3}{content block='prix-menu-3' label='Prix menu 3' oneline='true'}{/capture}
{capture name=menu3}{content block='menu-3' label='menu 3'}{/capture}
{capture name=titlemenu4}{content block='titre-menu-4' label='Titre menu 4' oneline='true'}{/capture}
{capture name=prixmenu4}{content block='prix-menu-4' label='Prix menu 4' oneline='true'}{/capture}
{capture name=menu4}{content block='menu-4' label='menu 4'}{/capture}
<ul id="tabmenu">
{if $smarty.capture.titlemenu1 ne ""}
<li><a href="#menu1">{$smarty.capture.titlemenu1}</a></li>
{else}
{/if}
{if $smarty.capture.titlemenu2 ne ""}
<li><a href="#menu2">{$smarty.capture.titlemenu2}</a></li>
{else}
{/if}
{if $smarty.capture.titlemenu3 ne ""}
<li><a href="#menu3">{$smarty.capture.titlemenu3}</a></li>
{else}
{/if}
{if $smarty.capture.titlemenu4 ne ""}
<li><a href="#menu4">{$smarty.capture.titlemenu4}</a></li>
{else}
{/if}
</ul>
{if $smarty.capture.menu1 ne ""}
<div id="menu1" class="tabContent">
<h3 class="carte-title">{$smarty.capture.titlemenu1}<br />
{$smarty.capture.prixmenu1}</h3>
{$smarty.capture.menu1}
</div>
{else}
{/if}
{if $smarty.capture.menu2 ne ""}
<div id="menu2" class="tabContent">
<h3 class="carte-title">{$smarty.capture.titlemenu2}<br />
{$smarty.capture.prixmenu2}</h3>
{$smarty.capture.menu2}
</div>
{else}
{/if}
{if $smarty.capture.menu3 ne ""}
<div id="menu3" class="tabContent">
<h3 class="carte-title">{$smarty.capture.titlemenu3}<br />
{$smarty.capture.prixmenu3}</h3>
{$smarty.capture.menu3}
</div>
{else}
{/if}
{if $smarty.capture.menu4 ne ""}
<div id="menu4" class="tabContent">
<h3 class="carte-title">{$smarty.capture.titlemenu4}<br />
{$smarty.capture.prixmenu4}</h3>
{$smarty.capture.menu4}
</div>
{else}
{/if}
Ouik - communication . outils numériques . design graphique