2017-09-05 96 views
1

Google Structured Data Testing Tool爲以下JSON-LD回報:Google SDTT中的錯誤:「網址的重複值不被允許。」

的網址重複值是不允許的。

爲什麼?我不明白。

<script type="application/ld+json"> 
    { 
     "@context": "http://schema.org", 
     "@type": "ItemList", 
     "itemListElement": [{ 
       "@type": "ListItem", 
       "position": 0, 
       "item": { 
        "@type": "Article", 
        "headline": "Bonito de norte", 
        "alternativeHeadline": "Thunnus alalunga.", 
        "image": { 
         "@type": "ImageObject", 
         "url": "http://dechado09.softgalia.com/producto/imagenes/facebook/2/BONITO.jpg?1502195043", 
         "width": "1200", 
         "height": "830" 
        }, 
        "author": "SoftGalia Aplicaciones Informáticas S.L.", 
        "editor": "Pescados Trocheros", 
        "keywords": "Venta pescado, Mayorista de Pescado", 
        "publisher": { 
         "@type": "Organization", 
         "name": "Academia Lucense de Balonmano", 
         "logo": { 
          "@type": "ImageObject", 
          "url": "http://dechado09.softgalia.com/logo/facebook/1/logo-trochero-01.jpg?1504175529", 
          "width": "1200", 
          "height": "830" 
         } 
        }, 
        "url": "http://dechado09.softgalia.com/productos/index", 
        "datePublished": "2017-08-08 12:24:11 UTC", 
        "dateCreated": "2017-08-08 12:24:11 UTC", 
        "dateModified": "2017-08-22 07:43:53 UTC", 
        "description": "Thunnus alalunga.", 
        "articleBody": "Thunnus alalunga.", 
        "mainEntityOfPage": "http://dechado09.softgalia.com/productos/index" 
       } 
      }, 
      { 
       "@type": "ListItem", 
       "position": 1, 
       "item": { 
        "@type": "Article", 
        "headline": "Merluza", 
        "alternativeHeadline": "Merluccius merluccius", 
        "image": { 
         "@type": "ImageObject", 
         "url": "http://dechado09.softgalia.com/producto/imagenes/facebook/4/merluza-primer-plano.jpeg?1504525751", 
         "width": "1200", 
         "height": "830" 
        }, 
        "author": "SoftGalia Aplicaciones Informáticas S.L.", 
        "editor": "Pescados Trocheros", 
        "keywords": "Venta pescado, Mayorista de Pescado", 
        "publisher": { 
         "@type": "Organization", 
         "name": "Academia Lucense de Balonmano", 
         "logo": { 
          "@type": "ImageObject", 
          "url": "http://dechado09.softgalia.com/logo/facebook/1/logo-trochero-01.jpg?1504175529", 
          "width": "1200", 
          "height": "830" 
         } 
        }, 
        "url": "http://dechado09.softgalia.com/productos/index", 
        "datePublished": "2017-09-04 11:49:13 UTC", 
        "dateCreated": "2017-09-04 11:49:13 UTC", 
        "dateModified": "2017-09-05 08:38:27 UTC", 
        "description": "Merluccius merluccius", 
        "articleBody": "Merluccius merluccius", 
        "mainEntityOfPage": "http://dechado09.softgalia.com/productos/index" 
       } 
      } 
     ] 
    } 
</script> 
+0

我認爲錯誤發生在url「」url:「http://dechado09.softgalia.com/productos/index」中的url標記中,但是如果我爲列表項的每個項目更改了ditinct url,則錯誤更改爲「Todos los valores especificados en url deben apuntar la la mismapágina」 –

+0

當我將類型itemList更改爲BreadcrumbList'code'「@context」時,問題消失:「http://schema.org」, 'code '「@type」:「ItemList」,改爲「@type」:「BreadcrumbList」, –

+0

錯誤信息是正確的。你再說一遍:'http://dechado09.softgalia.com/logo/facebook/1/logo-trochero-01.jpg?1504175529'和'http:// dechado09.softgalia.com/productos/index' –

回答

0

有兩種方法來實現列表格式爲您的結構化數據:

  • 摘要頁+多個完整的詳細信息頁面
  • 列表項單,全在一個頁面列表

我的情況是文章的一個小頁面,谷歌指南說:「摘要頁面對列表中的每個項目都有簡短的描述,每個描述都指向一個單獨的詳細信息頁面,完全在一個項目上。「

好的標記必須是。

{ 「@context」: 「http://schema.org」, 「@type」: 「ITEMLIST」, 「itemListElement」: [ { 「@type」: 「列表項」, 「位置」:0, 「URL」: 「http://dechado09.softgalia.com/productos/bonito-de-norte」 },{ 「@type」: 「列表項」, 「位置」: 1, 「url」:「http://dechado09.softgalia.com/productos/merluza」 } ] }