[4.3.1] artTitle() et Pages Statiques

Bonjour à tous,

J'ai installé un suivi par Xiti de ma fréquentation des pages de mon site, pour les pages "dynamiques" aucun problèmes mais pour les pages statiques j'ai l'impression que artTitle() ne retourne aucune donnée.

Voici ce que j'ai modifié dans sidebar.php de mon thème :
<div id="Xiti">
		<a href="http://www.xiti.com/xiti.asp?s=438645" title="WebAnalytics" target="_top">
			<script type="text/javascript">
				<!--
				var NomPage = '<?php $plxShow->artTitle(); ?>' ; 
				Xt_param = 's=438645&p=' + NomPage;
				try {Xt_r = top.document.referrer;}
				catch(e) {Xt_r = document.referrer; }
				Xt_h = new Date();
				Xt_i = '<img width="80" height="15" border="0" alt="" ';
				Xt_i += 'src="http://logv10.xiti.com/vcg.xiti?'+Xt_param;
				Xt_i += '&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();
				if(parseFloat(navigator.appVersion)>=4)
				{Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;}
				document.write(Xt_i+'&ref='+Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'" title="Internet Audience">');
				//-->
			</script>
			<noscript>
				Mesure d'audience ROI statistique webanalytics par <img width="80" height="15" src="http://logv10.xiti.com/vcg.xiti?s=438645&p=<?php $plxShow->artTitle(); ?>" alt="WebAnalytics" />
			</noscript>
		</a>
	</div>
et voici ce que j'ai dans le code source de ma page statique :
<div id="Xiti">
		<a href="http://www.xiti.com/xiti.asp?s=438645" title="WebAnalytics" target="_top">
			<script type="text/javascript">
				<!--
				var NomPage = '<br />
<b>Fatal error</b>:  Call to a member function f() on a non-object in <b>F:\Apps\PortableZMWS\ZMWS\_web.zmwsc\nananeh.homeip.net.new\core\lib\class.plx.show.php</b> on line <b>395</b><br />
Du coup mon footer.php n'est pas affiché...

Alors que pour une page "dynamique" :
</div>
		<div id="Xiti">
		<a href="http://www.xiti.com/xiti.asp?s=438645" title="WebAnalytics" target="_top">
			<script type="text/javascript">
				<!--
				var NomPage = 'Léana' ; 
				Xt_param = 's=438645&p=' + NomPage;
				try {Xt_r = top.document.referrer;}
				catch(e) {Xt_r = document.referrer; }
				Xt_h = new Date();
				Xt_i = '<img width="80" height="15" border="0" alt="" ';
				Xt_i += 'src="http://logv10.xiti.com/vcg.xiti?'+Xt_param;
				Xt_i += '&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();
				if(parseFloat(navigator.appVersion)>=4)
				{Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;}
				document.write(Xt_i+'&ref='+Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'" title="Internet Audience">');
				//-->
			</script>
			<noscript>
				Mesure d'audience ROI statistique webanalytics par <img width="80" height="15" src="http://logv10.xiti.com/vcg.xiti?s=438645&p=Léana" alt="WebAnalytics" />
			</noscript>
		</a>
	</div>
Auriez vous une idée ?

Réponses

  • StéphaneStéphane Member, Former PluXml Project Manager
    Bonjour Squale

    Au lieu d'utiliser artTitle (et normalement staticTitle pour les pages statiques) utilise dans ta sidebar
    var NomPage = '<?php $plxShow->pageTitle(); ?>' ;
    

    Consultant PluXml

    Ancien responsable du projet (2010 à 2018)

  • Merci, ça marche au poil avec
    <?php $plxShow->pageTitle(); ?>
    
Connectez-vous ou Inscrivez-vous pour répondre.