Quick links: Content - sections - sub sections
EN FR
Quick Search Advanced search
 
Page

  [Opened] [[resolu]] Sitemap

Posted by sentenzaced on 03/31/2012 15:41

Bonjour,

En développant mon sitemap avec jelix 1.3, j'ai remarqué que le point d'entrée n'est pas repris dans les urls. Est-ce normal? Je n'ai pas mis de "noentrypoint=true " dans mon urls.xml je l'ai même mis à false.

Avez-vous le même problème ?

Merci pour vos reponses

  [Opened] Sitemap

Reply #1 Posted by foxmask on 03/31/2012 22:48

Bonsoir,

Peut-on voir le urls.xml ?


@GitHub - Forum HaveFnuBB! powered by Jelix - Le Booster Jelix !

  [Opened] Sitemap

Reply #2 Posted by sentenzaced on 04/01/2012 08:38

Bonjour

Voici mon urls.xml principal.

<?xml version="1.0" encoding="utf-8"?>
<urls xmlns="http://jelix.org/ns/urls/1.0">
    <entrypoint type="classic" name="index" default="true" noentrypoint="false">
        <url pathinfo="/" module="web" action="default:index">
        </url>
        <url pathinfo="/auth" module="jauth" include="urls.xml" />
        <url pathinfo="/" module="web" include="urls.xml" />
        <url pathinfo="/contact" module="contact" include="urls.xml" />
        <url pathinfo="/news-et-evenements" module="news" include="urls.xml" />
        <url pathinfo="/presse" module="press" include="urls.xml" />
        <url pathinfo="/produits" module="produits" include="urls.xml" />
        <url pathinfo="/references" module="references" include="urls.xml" />
        <url pathinfo="/revendeur" module="revendeur" include="urls.xml" />
        <url pathinfo="/support" module="support" include="urls.xml" />
    </entrypoint>
</urls>

edit by foxmask : le double arobase fonctionne pour du code sur une ligne ;) sinon on utilise <code>..</code>

  [Opened] Sitemap

Reply #3 Posted by foxmask on 04/02/2012 12:00

Le sitemap a été généré comme ici ?


@GitHub - Forum HaveFnuBB! powered by Jelix - Le Booster Jelix !

  [Opened] Sitemap

Reply #4 Posted by sentenzaced on 04/02/2012 14:48

oui avec cette méthode d'ailleur je ne sais pas comment mettre les balises <lastmod>, <changefreq> et <priority> avec la methode automatique ?

  [Opened] Sitemap

Reply #5 Posted by foxmask on 04/02/2012 16:56

là tout de suite ; je ne sais pas du tout ; faudrait voir l'api.


@GitHub - Forum HaveFnuBB! powered by Jelix - Le Booster Jelix !

  [Opened] Sitemap

Reply #6 Posted by sentenzaced on 04/05/2012 18:33

Bonjour,

J'ai rien trouvé dans l'api, et même sur le serveur de prod il y a toujours la meme erreur: les urls apparaissent sans index.php ? voici ma fonction (pour ajouter aussi <lastmod>, <changefreq> et <priority>)

function sitemap() {
        $rep = $this->getResponse('sitemap');

        $dt = new jDateTime();
        $dt->now();
        $date = $dt->toString(jDateTime::DB_DFORMAT);
        $urls = $rep->getUrlsFromUrlsXml();
        foreach ($urls as $url) {

            $rep->addUrl($url, $date, 'always', '');
        }
        return $rep;
    }

et mon urls.xml

<?xml version="1.0" encoding="utf-8"?>
<urls xmlns="http://jelix.org/ns/urls/1.0">
    <entrypoint type="classic" name="index" default="true" noentrypoint="false">
        <url pathinfo="/" module="web" action="default:index">
        </url>
        <url pathinfo="/auth" module="jauth" include="urls.xml" />
        <url pathinfo="/" module="web" include="urls.xml" />
        <url pathinfo="/contact" module="contact" include="urls.xml" />
        <url pathinfo="/news-et-evenements" module="news" include="urls.xml" />
        <url pathinfo="/presse" module="press" include="urls.xml" />
        <url pathinfo="/produits" module="produits" include="urls.xml" />
        <url pathinfo="/references" module="references" include="urls.xml" />
        <url pathinfo="/revendeur" module="revendeur" include="urls.xml" />
        <url pathinfo="/support" module="support" include="urls.xml" />
    </entrypoint>
</urls>

et voila ce que ca donne (en local):

<urlset><url><loc>http://localhost/</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/auth/dologin</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/auth/dologout</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/auth/login</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/informations\-legales</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/retour</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/groupe\-FEC</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/notre\-societe</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/why\-FEC</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/sitemap</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/contact/formulaire</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/contact/demande\-contact\-envoyee</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/contact/devis</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/contact/demande\-devis\-envoyee</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/news\-et\-evenements/liste</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/news\-et\-evenements/news/</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/news\-et\-evenements/inscription\-newsletter</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/news\-et\-evenements/confirmation\-inscription\-newsletter</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/news\-et\-evenements/confirmation\-desinscription\-newsletter</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/presse/comuniques\-de\-presse</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/presse/revue\-de\-presse</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/produits/gammes</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/produits/</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/produits/</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/produits/activite/</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/produits/liste/</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/references/clients</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/references/les\-succes\-stories</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/references/</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/revendeur/accueil</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/revendeur/</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/revendeur/documents</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/revendeur/drivers</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/revendeur/outils\-marketing</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/revendeur/RMA\-revendeur</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/SAV</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/En\-cas\-de\-panne</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/contrats</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/extensions</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/maintenance</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/intervention</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/demande\-RMA</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/reponse\-RMA</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/intervention\-sur\-site</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url><url><loc>http://localhost/support/helppos</loc><lastmod>2012-04-05T00:00:00+02:00</lastmod><changefreq>always</changefreq></url></urlset>

si vous avez des idées je suis preneur car je sèche ;) Merci

  [Opened] Sitemap

Reply #7 Posted by laurentj on 04/06/2012 13:19

Bonjour,

apparemment c'est un bug. Pour corriger ça temporairement :

global $gJConfig;
foreach ($urls as $url) {
   $rep->addUrl($gJConfig->urlengine['basePath'].'index.php'.$url, $date, 'always', '');
}

(il faudra annuler cette ajout à la prochaine mise à jour de jelix)

Le ticket sur djo

PS: pour la deuxième fois, merci de respecter la syntaxe wiki pour formater tes portions de code source dans tes messages. Et il y a un bouton "aperçu" pour vérifier que ton message soit lisible avant validation.

 
Page
  1. Sitemap