Acqal Corporation: Add META Abstract & Author to seo_basics
Meta Abstract & Author completeSeo_basics is an excellent starter for rapidly implementing basic search engine optimization capabilities in TYPO3. For most, seo_basics when used with realurl for search engine friendly URLs is enough. However, for content publishers that require passing along more information about articles or publication contexts being included directly in a page, a meta abstract and author tag is needed.
After you've included seo_basics in your TYPO3 template, add the following TypoScript to the Setup box to enable meta abstract and author tags.
plugin.tx_seobasics {
# Building the Abstract tag
70 = TEXT
70 < .30
70.data = page:abstract
70.stdWrap >
70.wrap = <meta name="abstract" content="|" />
# Building the Author tag
# Thank you Joey <info@cybercraft.de> for the postCObjet cleanup
80 = TEXT
80 < .30
80 {
data = page:author
ifEmpty.data = page:author_email
stdWrap >
required = 1
postCObject = TEXT
postCObject {
data = page:author_email
noTrimWrap = | (|)|
if.isTrue.data = page:author
required = 1
}
wrap = <meta name="author" content="|" />
}
} You'll notice that the TypoScript for the author tag is a little more complex than usual. The reason being is that you have 4 states in which the author tag can be presented. Those meta author tag states are:
- No author tag at all
- Name only
- Email only
- Name and email
Samples of each, except none, are included as images.
If you've got questions, please feel free to contact us.
Acqal Corporation is an official TYPO3 agency with over 40 years of Internet experience. Acqal offers you TYPO3 hosting, TYPO3 support, TYPO3 templates and TYPO3 training and tutorials.
Please subscribe to Acqal Newsletter and Acqal Blogging via Email or RSS Feed
.
© 2009 Acqal Corporation. All Rights Reserved.

