28/09/2009, 13:04:41
Bonjour, je relance quelques instants le sujet j'ai un petit problème.
La variable pagetitle n'existe plus dès que je passe le cap de la balise "body", est ce normal ?
Car j'ai suivi le tuto et je veux afficher le fil d'ariane adapté à la page, mais la variable n'existe plus à cette étape.
Voici mon fichier gabarit
Merci d'avance.
La variable pagetitle n'existe plus dès que je passe le cap de la balise "body", est ce normal ?
Car j'ai suivi le tuto et je veux afficher le fil d'ariane adapté à la page, mais la variable n'existe plus à cette étape.
Voici mon fichier gabarit
Code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{process_pagedata}
{if $page_name=='news'}
{content assign="capturedcontent"}
{/if}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>{if isset($pagetitle)}{$pagetitle} - {sitename}{else}{title} - {sitename}{/if}</title>
{if isset($canonical) AND $page_name !='news'}}<link rel="canonical" href="{$canonical}" />{elseif isset($content_obj) AND $page_name !='news'}<link rel="canonical" href="{$content_obj->GetURL()}" />{/if}
{metadata}
{stylesheet}
<script type="text/javascript" src="flash/autoflip/js/swfobject.js"></script>
{* note: anything inside these are smarty comments, they will not show up in the page source *}
</head>
<body>
<!-- start header -->
<div id="header">
<div class="sub">
<!-- start banner -->
<div id="banner">
<a href="/" id="logo"></a>
<div id="slogan">Prenez la Pop Position !</div>
</div>
<!-- end banner -->
<!-- start menu -->
<div class="page-menu util-clearfix">
{menu template='test_poptract_menu'}
</div>
<!-- end menu -->
</div>
</div>
<!-- end header -->
<!-- start about -->
<div id="about_small">
<div class="sub">
</div>
</div>
<!-- end about -->
<!-- start main -->
<div id="main">
<div id="main_float">
<div id="main_content">
<p id="fil_ariane">
{if isset($pagetitle) }
{breadcrumbs starttext='Vous êtes ici' root='Home' delimiter='»'} -> {$pagetitle}
{else}
{breadcrumbs starttext='Vous êtes ici' root='Home' delimiter='»'}
{/if}
</p>
{if $page_name=='news'}{$capturedcontent}{else}{content}{/if}
</div>
<div id="footer">
{global_content name='footer'}
</div>
</div>
</div>
<!-- end main -->
{google_analytic}
</body>
</html>