Modify

Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#1411 closed Bug/Fehler (fixed)

Strukturierte Daten für Breadcrumb in Google Suche

Reported by: kgd Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.5.0
Component: Shop Version: 2.0.3.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Torsten Riemer)

Der Breadcrumb-Pfad (2.x) der Shop-Seiten wird bei Google leider nicht angezeigt.

Ich denke das liegt daran, dass Google hier eine Liste <ol>...</ol> haben will. Siehe Beispiel:
https://developers.google.com/search/docs/data-types/breadcrumb

Dazu müsste die /includes/classes/breadcrumb.php angepasst werden.

Attachments (1)

breadcrumb.png (30.8 KB ) - added by Markus Rehm 8 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by Torsten Riemer, 8 years ago

Component: AdminShop
Description: modified (diff)
Milestone: modified-shop-2.0.4.0
Summary: Breadcrumb Google SearchStrukturierte Daten für Breadcrumb in Google Suche
Version: 2.0.0.02.0.3.0

comment:2 by kgd, 8 years ago

So habe ich das umgesetzt:

    function trail($separator = ' - ') {
      $trail_string = '<ol itemscope itemtype="http://schema.org/BreadcrumbList">';
      
      for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) {
        $trail_string .= '<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">';

        if (isset($this->_trail[$i]['link']) && xtc_not_null($this->_trail[$i]['link'])) {
          $trail_string .= '<a itemprop="item" href="' . $this->_trail[$i]['link'] . '" class="headerNavigation"><span itemprop="name">' . $this->_trail[$i]['title'] . '</span></a>';
        } else {
		  $trail_string .= '<span itemprop="item"><span class="current" itemprop="name">'.$this->_trail[$i]['title'].'</span></span>';
        }
        $trail_string .= '<meta itemprop="position" content="'.($i+1).'" />';
        $trail_string .= '</li>';

        if (($i+1) < $n) $trail_string .= $separator;
      }
      
      $trail_string .= '</ol>';
      
      return $trail_string;
    }
   


Natürlich müssen dann dafür noch die Styles im Template und im Admin geändert werden.

by Markus Rehm, 8 years ago

Attachment: breadcrumb.png added

comment:3 by Markus Rehm, 8 years ago

Sicher dass dem so ist?

Ich habe eigentlich jede Menge Kunden wo das kein Problem ist. 

https://www.google.de/search?q=modified+testartikel52&oq=modified+testartikel52&aqs=chrome..69i57.3759j0j8&sourceid=chrome&ie=UTF-8

siehe Screen .. alle 4 Einträge wunderbar 

Markus

comment:4 by kgd, 8 years ago

Sicher bin ich nicht, aber komischerweise werden scheinbar alte Shops, die im breadcrumb-DIV nur eine ganz normale Auflistung der Links haben, eher in den Suchergebnissen mit dem breadcrumb-Pfad angezeigt.

comment:5 by Torsten Riemer, 8 years ago

Milestone: modified-shop-2.0.4.0

comment:6 by Gerhard Waldemair, 6 years ago

Resolution: fixed
Status: newclosed

In 11430:

fix #1411 & #1519

comment:7 by Torsten Riemer, 6 years ago

Milestone: modified-shop-2.0.5.0

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.