<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.netapsys.fr/index.php/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Netapsys Blog - référencement</title>
  <link>http://blog.netapsys.fr/index.php/</link>
  <description></description>
  <language>fr</language>
  <pubDate>Thu, 29 Jul 2010 16:33:35 +0200</pubDate>
  <copyright>Netapsys 2008 - 2009</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Lynx, le retour de la Geek attitude ?</title>
    <link>http://blog.netapsys.fr/index.php/post/2009/04/06/Lynx-le-retour-de-la-Geek-attitude</link>
    <guid isPermaLink="false">urn:md5:99755866ee38f6f49f175accf23bf010</guid>
    <pubDate>Mon, 06 Apr 2009 18:25:00 +0200</pubDate>
    <dc:creator>Denis Sanchez</dc:creator>
        <category>Bonnes pratiques</category>
        <category>Lynx</category><category>référencement</category>    
    <description>&lt;p&gt;Qu'est ce que Lynx&amp;nbsp;?&lt;/p&gt;


&lt;p&gt;Lynx est un navigateur en mode texte. Pourquoi utiliser ce genre de navigateur&amp;nbsp;?
Pour cultiver la geek attitude! Oui, cela peut être une bonne raison.
Mais, il y a beaucoup plus intéressant lorsqu'on sait que notre ami Google
voit les pages de notre site comme le voit un peu Lynx. Google se comporte comme un interprète d'écran braille et ne voit que du texte pour constituer son immense catalogue de pages web.
Lynx est donc un bon moyen pour tester la façon dont Google voit notre site.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://blog.netapsys.fr/public/doc/netapsys_lynx.jpg&quot;&gt;&lt;img src=&quot;http://blog.netapsys.fr/public/doc/.netapsys_lynx_s.jpg&quot; alt=&quot;site Netapsys vue par Lynx&quot; /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;Un autre point fort de Lynx est de savoir si votre site est accessible aux personnes handicapées.&lt;/p&gt;


&lt;p&gt;Il permet aussi par exemple d'être lancé en ligne de commande et donc de faire du traitement web automatisé.&lt;/p&gt;


&lt;p&gt;Lynx est peu gourmand en mémoire et très rapide. Il convient bien pour consulter des sites de documentation ou pour parcourir les répertoires de son propre système.&lt;/p&gt;


&lt;p&gt;Lynx accepte les cookies et permet de lancer des applications autres, telles que Excel ou Acrobat Reader pour lire des fichiers téléchargés.&lt;/p&gt;


&lt;p&gt;Bien sûr Lynx n'est pas vraiment adapté au surf quotidien, mais c'est un bon outil pour privilégier le contenu de son site plutôt que l'esthétique.&lt;/p&gt;


&lt;p&gt;Site officiel :&lt;a href=&quot;http://lynx.browser.org/&quot; hreflang=&quot;fr&quot;&gt; http://lynx.browser.org/&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Une version un peu paramétrée&amp;nbsp;: &lt;a href=&quot;http://pagesperso-orange.fr/winaide/lynx_telechargement.html&quot; hreflang=&quot;fr&quot;&gt;http://pagesperso-orange.fr/winaide/lynx_telechargement.html&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Un site très complet pour le paramétrage de lynx ainsi que les différentes commandes possibles&amp;nbsp;: &lt;a href=&quot;http://www.dg77.net/tekno/lynx/index.htm&quot; hreflang=&quot;fr&quot;&gt;http://www.dg77.net/tekno/lynx/index.htm&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pour commencer vous pouvez configurer votre Lynx de la façon suivante:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Si vous souhaitez configurer une page à l'ouverture (Exemple&amp;nbsp;: Google), ajoutez simplement cette URL à la commande de lancement de l'exécutable dans le fichier lynx.bat.
Il vaut mieux aussi ajouter le paramètre &quot;-accept_all_cookies&quot; à cette ligne pour ne pas se voir demander à chaque chargement de page si on accepte le cookie.
La dernière ligne de votre fichier lynx.bat devrait donc ressembler à ça&amp;nbsp;: &quot;%HOME%\lynx.exe %1 %2 %3 %4 %5 http://www.google.fr -accept_all_cookies&quot;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;La navigation dans Lynx&amp;nbsp;:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Oublier votre mulot, tout se fait intégralement au clavier.
Utiliser les touches de défilement (page suivante, page précédente) pour faire défiler la page.
La barre d'espace sert à faire défiler le contenu écran par écran.
Les flèches haut et bas permettent de sélectionner les liens, les boutons et les formulaires.
Quand un lien est sélectionné on l'actionne avec la flèche &quot;droite&quot; ou la touche &quot;entrée&quot;.
La flèche &quot;gauche&quot; permet de revenir à l'URL précédente.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pour ouvrir une URL, appuyez sur la touche &quot;g&quot; et entrez l'URL, en y incluant le &quot;http://&quot;.&lt;/li&gt;
&lt;li&gt;Pour explorer les fichiers locaux on utilise la syntaxe DOS, par exemple &quot;c:&quot; pour vous rendre sur le lecteur c:,&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&quot;c:\repertoire&quot; pour vous rendre dans le répertoire correspondant du lecteur c: etc.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pour rechercher un mot dans une page, appuyez sur la touche &quot;/&quot;, entrez la chaîne de caractères à rechercher et validez.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pressez &quot;n&quot; pour chercher les occurrences suivantes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pour afficher le code source de la page en cours appuyer sur la touche &quot;\&quot;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Refaites de même pour afficher à nouveau le contenu de la page.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.netapsys.fr/index.php/post/2009/04/06/Lynx-le-retour-de-la-Geek-attitude#comment-form</comments>
      <wfw:comment>http://blog.netapsys.fr/index.php/post/2009/04/06/Lynx-le-retour-de-la-Geek-attitude#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.netapsys.fr/index.php/feed/rss2/comments/85</wfw:commentRss>
      </item>
    
  <item>
    <title>Dotclear 2 : optimisation du référencement 2/2</title>
    <link>http://blog.netapsys.fr/index.php/post/2008/05/06/Dotclear-2-%3A-optimisation-du-referencement-2/2</link>
    <guid isPermaLink="false">urn:md5:ef5535506df1bde3cd2bf89afeb86359</guid>
    <pubDate>Tue, 06 May 2008 12:05:00 +0200</pubDate>
    <dc:creator>Yoann Hébert</dc:creator>
        <category>PHP</category>
        <category>balises meta</category><category>dotclear</category><category>meta description</category><category>meta keywords</category><category>moteur de recherche</category><category>patch</category><category>référencement</category><category>visibilité</category>    
    <description>&lt;p&gt;Nous l'avions vu dans un &lt;a href=&quot;http://blog.netapsys.fr/index.php/post/2008/04/11/Dotclear-2-%3A-optimisation-du-referencement&quot; hreflang=&quot;fr&quot;&gt;précédent billet&lt;/a&gt;&amp;nbsp;: Dotclear 2 a quelques lacunes en termes de référencement, en particulier sur la génération des balises méta. Après le patch qui nous a permi de générer les balises meta-description et meta-keywords sur les pages d'un billet, voici quelques instructions pour généraliser ce système sur les autres types de page de votre blog.&lt;/p&gt;    &lt;p&gt;La manipulation est encore plus simple que la précédente.
En effet, il ne nous sera pas nécessaire de créer une nouvelle fonction pour générer le contenu des balises meta. Les pages pour lesquelles nous souhaitons générer les balises meta-description et meta-keywords affichent toutes une liste de billets. Nous allons donc tout simplement utiliser les titres de ces billets pour constituer la balise meta-description et les tags de ces billets pour générer la balise meta-keywords.&lt;/p&gt;


&lt;p&gt;Les fichiers qu'il vous faut modifier sont situés dans le répertoire de votre thème, habituellement présents sous /var/www/dotclear/themes/.
Pour le blog Netapsys, nous avons par exemple modifié les fichiers&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;archive_month.html&lt;/li&gt;
&lt;li&gt;category.html&lt;/li&gt;
&lt;li&gt;home.html&lt;/li&gt;
&lt;li&gt;search.html&lt;/li&gt;
&lt;li&gt;tag.html&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pour chacun, il vous suffit d'ajouter les 2 lignes suivantes entre les balises &amp;lt;head&amp;gt; et &amp;lt;/head&amp;gt;&lt;/p&gt;

&lt;pre class=&quot;php&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;lt;&lt;/span&gt;meta name&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;keywords&amp;quot;&lt;/span&gt; content&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;lt;tpl:Entries&amp;gt;&amp;lt;tpl:EntryMetaData type=&amp;quot;&lt;/span&gt;tag&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;gt;{{tpl:MetaID}} &amp;lt;/tpl:EntryMetaData&amp;gt;&amp;lt;/tpl:Entries&amp;gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;lt;&lt;/span&gt;meta name&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;description&amp;quot;&lt;/span&gt; content&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;lt;tpl:Entries&amp;gt;{{tpl:EntryTitle encode_html=&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;}} ... &amp;lt;/tpl:Entries&amp;gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;C'est terminé&amp;nbsp;!&lt;/p&gt;


&lt;p&gt;L'idéal serait bien évidemment de packager l'ensemble de ces modifications et de créer un plugin dotclear 2 intégrant ces mécanismes. Avis aux amateurs... ;-)&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.netapsys.fr/index.php/post/2008/05/06/Dotclear-2-%3A-optimisation-du-referencement-2/2#comment-form</comments>
      <wfw:comment>http://blog.netapsys.fr/index.php/post/2008/05/06/Dotclear-2-%3A-optimisation-du-referencement-2/2#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.netapsys.fr/index.php/feed/rss2/comments/21</wfw:commentRss>
      </item>
    
  <item>
    <title>Dotclear 2 : optimisation du référencement 1/2</title>
    <link>http://blog.netapsys.fr/index.php/post/2008/04/11/Dotclear-2-%3A-optimisation-du-referencement</link>
    <guid isPermaLink="false">urn:md5:75a9182c602e04908c0b0e6e9ce68a3f</guid>
    <pubDate>Fri, 11 Apr 2008 17:31:00 +0200</pubDate>
    <dc:creator>Yoann Hébert</dc:creator>
        <category>PHP</category>
        <category>balises meta</category><category>dotclear</category><category>meta description</category><category>meta keywords</category><category>moteur de recherche</category><category>patch</category><category>référencement</category><category>visibilité</category>    
    <description>&lt;p&gt;Dotclear est un logiciel libre de création de blogs. Il offre une interface d'administration intuitive, de nombreux plugins, de nombreux thèmes et bénéficie d'une communauté très active. Dans sa vesion 2, actuellement en béta puis en release candidate vraisemblablement jusqu'au mois de juillet, Dotclear pèche cependant sur le référencement. Il ne gère tout simplement pas les balises meta description et meta keywords...&lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Voici quelques instructions pour patcher Dotclear 2 et générer des balises meta-keywords et meta-description sur vos billets.&lt;/p&gt;    &lt;h2&gt;De l'intérêt des balises meta&lt;/h2&gt;

&lt;p&gt;Même si ces balises ne sont plus utilisées pour l'indexation par les principaux moteurs de recherche, elles restent utiles à un bon référencement.
La balise description permet par exemple d'indiquer au moteur de recherche le résumé de la page qu'il pourra présenter à l'internaute dans ses résultats. Elle sert également à éviter le duplicate-content lorsque les balises title et keywords sont identiques.&lt;/p&gt;


&lt;p&gt;Exemple de référencement dotclear sans balise description&amp;nbsp;:
&lt;br /&gt;
&lt;img src=&quot;http://blog.netapsys.fr/public/images/exemple_ref_dotclear1.jpg&quot; alt=&quot;exemple_ref_dotclear1.jpg&quot; style=&quot;float:left; margin: 0 1em 1em 0;&quot; /&gt;
&lt;br /&gt;&lt;/p&gt;


&lt;p&gt;En l'absence de la balise description, Google génère automatiquement un résumé, bien souvent basé sur les premières phrases ou les premiers mots de la page. Dans ce cas, ce sont les liens d'accessibilité, présents en début de page dans le thème du blog Netapsys, qui sont repris&amp;nbsp;: &quot;Aller au contenu | Aller au menu | Aller à la recherche. font small; font normal; font big. Blog , ...&quot; Aucun intérêt pour l'internaute&amp;nbsp;! &lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Voici le résultat avec une balise description plus pertinente&amp;nbsp;:
&lt;br /&gt;
&lt;img src=&quot;http://blog.netapsys.fr/public/images/exemple_ref_dotclear2.jpg&quot; alt=&quot;exemple_ref_dotclear2.jpg&quot; style=&quot;float:left; margin: 0 1em 1em 0;&quot; /&gt;
&lt;br /&gt;&lt;/p&gt;


&lt;p&gt;La balise keywords est elle aussi de plus en plus ignorée pour l'indexation en elle-même. Elle reste cependant utilisée par certains annuaires et nous profiterons donc du patch lié à la gestion des balises description pour prendre également en charge la balise keywords.&lt;/p&gt;


&lt;h2&gt;Mise en oeuvre du patch dotclear 2&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Pour commencer, il est nécessaire d'enrichir dotclear d'une fonction à même de générer la description d'un billet. Nous allons pour cela modifier le fichier &lt;em&gt;inc/core/class.dc.rs.extensions.php&lt;/em&gt; en y ajoutant la fonction &quot;getDescription&quot; suivante&amp;nbsp;:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;php&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; getDescription&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$rs&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$absolute_urls&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
  &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$rs&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #006600;&quot;&gt;post_excerpt_xhtml&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$rs&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #006600;&quot;&gt;post_content_xhtml&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;html_entity_decode&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/&amp;lt;.*?&amp;gt;/&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;htmlentities&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; ENT_COMPAT&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;UTF-8&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/[^&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\w&lt;/span&gt;&amp;amp;',.;:!&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\?&lt;/span&gt; ]/&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/[ ]+/&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$words&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;explode&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$limit&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;50&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;sizeof&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$words&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #cc66cc;&quot;&gt;50&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;sizeof&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$words&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #b1b100;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$i&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$i&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$limit&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
      &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$words&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
  &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;html_entity_decode&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/&amp;lt;.*?&amp;gt;/&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;htmlentities&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; ENT_COMPAT&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;UTF-8&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/[^&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\w&lt;/span&gt;&amp;amp;',.;:!&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\?&lt;/span&gt; ]/&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/[ ]+/&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
  &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;Il est ensuite nécessaire de rendre cette fonction utilisable depuis les templates Dotclear. Pour cela, il convient d'ajouter le code suivant au fichier &quot;inc/public/class.dc.template.php&quot;&amp;nbsp;:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;php&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #006600;&quot;&gt;addValue&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'EntryDescription'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'EntryDescription'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; EntryDescription&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$attr&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
  &lt;span style=&quot;color: #ff0000&quot;&gt;$urls&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'0'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #000066;&quot;&gt;empty&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$attr&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'absolute_urls'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span style=&quot;color: #ff0000&quot;&gt;$urls&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'1'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: #ff0000&quot;&gt;$f&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #006600;&quot;&gt;getFilters&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$attr&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;?php echo '&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #000066;&quot;&gt;sprintf&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'$_ctx-&amp;gt;posts-&amp;gt;getDescription('&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;$urls&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;')'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'; ?&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;La troisième étape consiste simplement à utiliser cette fonction depuis le template de génération des billets&amp;nbsp;: le fichier &quot;post.html&quot;, présent dans le répertoire de votre thème. Ajoutez l'instruction suivante dans la partie header&amp;nbsp;:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;html&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;meta&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;description&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;content&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;{{tpl:EntryDescription}}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;La prise en charge de la balise meta keywords suit exactement le même principe mais, au lieu de créer une nouvelle fonction, nous allons réutiliser celle qui permet de générer la liste des tags d'un billet. Pour cela, ajoutez la ligne suivante dans le fichier &quot;post.html&quot; de votre thème, juste sous l'instruction en charge de la génération de la balise description&amp;nbsp;:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;html&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;meta&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;keywords&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;content&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;lt;tpl:EntryMetaData type=&amp;quot;&lt;/span&gt;tag&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;gt;&lt;/span&gt;{{tpl:MetaID}} &lt;span style=&quot;color: #009900;&quot;&gt;&amp;lt;/tpl:EntryMetaData&amp;gt;&lt;/span&gt;&amp;quot;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;h2&gt;Et les autres types de page&amp;nbsp;?&lt;/h2&gt;

&lt;p&gt;Vous l'avez bien sûr remarqué&amp;nbsp;: ce patch ne gère que les pages qui affichent un billet dans son intégralité. Si vous avez un minimum d'activité sur votre blog, ce sont les plus nombreuses, mais il nous reste tout de même à gérer les pages telles que l'accueil, les archives, les catégories, ...
&lt;br /&gt;
Ce sera l'objet d'un &lt;a href=&quot;http://blog.netapsys.fr/index.php/post/2008/05/06/Dotclear-2-%3A-optimisation-du-referencement-2/2&quot; hreflang=&quot;fr&quot;&gt;prochain billet&lt;/a&gt;&amp;nbsp;!&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.netapsys.fr/index.php/post/2008/04/11/Dotclear-2-%3A-optimisation-du-referencement#comment-form</comments>
      <wfw:comment>http://blog.netapsys.fr/index.php/post/2008/04/11/Dotclear-2-%3A-optimisation-du-referencement#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.netapsys.fr/index.php/feed/rss2/comments/13</wfw:commentRss>
      </item>
    
</channel>
</rss>