Google schema.org Markup

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
Post Reply
mik-media
Posts: 160
Joined: Wed 8. Apr 2009, 22:39

Google schema.org Markup

Post by mik-media »

Hallo,
um "Google schema.org Markup" einzubinden muß man an die Metatags ran:
weiß leider nicht wie
insbesondere was diesen Code angeht:
<html itemscope itemtype="http://schema.org/Article">

<!-- Add the following three tags inside head -->
<meta itemprop="name" content="Your Page Title/Heading Goes Here">
<meta itemprop="description" content="Your Meta Description Goes Here...">
<meta itemprop="image" content="http://www.example.com/images/cool-image.png">

Vielen Dank
Michael
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Re: Google schema.org Markup

Post by pepe »

In deiner Vorlage hast du doch einen Eingabebereich:

HTML Kopf:
<head>


da packst du die meta-Sachen rein... und dann erscheinen die an der korrekten Stelle im umgesetzten Code!
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Google schema.org Markup

Post by update »

an den doctype und die Einträge außerhalb von <head> kommst Du so aber nicht ran, das steht in der index.php
Oder irre ich da?
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Google schema.org Markup

Post by Oliver Georgi »

Gute Idee, nicht wirklich so üblich oder notwendig, aber sinnvoll:
r493, r494

Frontend Render ist der geeignete Ort:

Code: Select all

if($content['list_mode']) {
	$content['htmltag_inject'] = 'itemscope itemtype="http://schema.org/Blog"';
	//...
} else {
	$content['htmltag_inject'] = 'itemscope itemtype="http://schema.org/Article"';
	set_meta('name', 'Test', 'itemprop');
	//...
}
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Google schema.org Markup

Post by update »

Oliver Georgi wrote:itemscrope
-->> itemscope?? Edit: Passt jetzt :)
Ansonsten: Hey hey dolle Wurst ;)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Re: Google schema.org Markup

Post by phalancs »

Hey was ist das itemprop? Hab das aus der Schema Seite nicht so richtig ersehen können.
2008
Post Reply