Subscribe to Acqal
Got Thoughts? Write Us!
Approved TYPO3 Agency
Acqal is an approved TYPO3 agency focusing on support, training and website migration.
This means that we...
- are available on TYPO3.org
- make substantial contributions to TYPO3 teams
- are registered as business members of the TYPO3 Association
- have completed more than four TYPO3 projects
- have proven our technical abilities with quality TYPO3 extensions
- use TYPO3 for our own website
Popular Blog Posts
Tech Tuesday Went Snowboarding at T3BOARD09
TYPO3 and Other Open Source WCM Systems Dissed Again
Automatic tt_news META descriptions via Acqal's extension aqnewsmeta
TYPO3, comments and Gravatar via Acqal's extension comments_gravatar
TYPO3 Extension cbstarter Version 1.3.2 Released
Sunday at T3BOARD09 in Laax, Switzerland
Not Good, Not Bad, Just Different
Increase TYPO3 Workspace Relation Limits
Getting Help With TYPO3
Looking into TYPO3 Webhosting?
Blog Topics
Virgil on Twitter
Please wait while virgilhuston tweets load 

Recent Blog Posts
US Political Campaign Websites - The Basics
My Talk at T3CON10 Dallas - TYPO3 User jobs and Tasks
Dallas Barbeque Joint Reviews
T3CON10 Dallas
Acqal is Going Through Some Changes
Creating a MySQL Database for TYPO3 using CPanel
Acqal Promotes Biking and Families with World Vision
It's Official T3CON10-Dallas Web Site Launched! Join Us!
Create a simple "Contact Us" mail form in TYPO3
Configure TYPO3 for Localized Websites
Blog Archives
Automatic tt_news META descriptions via Acqal's extension aqnewsmeta
Wednesday, April 15, 2009 2:38 AM EDT
Acqal is pleased to announce the version 1.0.0 release of aqnewsmeta. This extension updates the TYPO3 newsSubheader register with a truncated, HTML-free version of the news bodytext if no article teaser is available.
This is helpful for SEO purposes where each news entry should have a META description, but doesn't.
The extension includes options to adjust the META description length, currently set at 150 characters, per SEO best practices.
References
- aqnewsmeta on TER
Keywords:
- typo3,tt_news,meta,seo,description


Add comment
* - required fieldpage.headerData {
200 = TEXT
200.data = page:keywords
200.required = 1
200.wrap = <meta name="keywords" content="|" />
200.htmlspecialchars = 1
210 = TEXT
210.data = page:description
210.required = 1
210.wrap = <meta name="description" content="|" />
210.htmlspecialchars = 1
}
[globalVar = GP:tx_ttnews|tt_news > 0]
page.headerData.200.override.data = register:newsKeywords
page.headerData.210.override.data = register:newsSubheader
[global]
Thank you for the code suggestion. I had seen this before.
1. Why do you generate the meta tag fully instead of letting TYPO3 do so via the following?
page.meta.keywords = {$site.meta.keywords}
page.meta.keywords.if.isTrue = {$site.sitewide.seo}
page.meta.keywords.override.field = keywords
page.meta.description = {$site.meta.description}
page.meta.description.if.isTrue = {$site.sitewide.seo}
page.meta.description.override.field = description
The above code lets a global SEO setting be made and in turn be overridden by SEO settings in page properties.
2. Your code doesn't account for there being no tt_news.short data. The extension does by checking for the tt_news.short field and if there's nothing, then cropping tt_news.bodytext down to size. See http://typo3.org/extensions/repository/view/aqnewsmeta/current/info/class.tx_aqnewsmeta.php/.
In reality, your code and the aqnewsmeta extension can work side-by-side still because aqnewsmeta is updating register:newsSubheader with data one way or another.
3. On our article pages, we use the following TypoScript for news meta tags.
Your thoughts?
On a side note, it's not recommended to use sitewide SEO settings as search engines really ding websites with them. However, sometimes clients ask for stuff and won't take best practices to heart. So it's there...
2. I provided an example, not a fully working solution. My point is that there is no need for extension when it can be done with pure TS :) I use similar code on my own blog.
3. There is a research about how search engines use these tags. I do not remember who published it but the link was a couple of weeks ago at seomoz. It was tested with Google, Yahoo and Live.
However, I really think you're missing the point of the extension. It's not to generate the META tag, but to populate the register:newsSubheader with truncated, HTML free news bodytext when the news teaser is empty.
This is something that's not possible by TypoScript. Sure TypoScript has REGISTER access, but it doesn't readily have the tt_news record information handy.
I know it's possible to pull the tt_news record via RECORDS, but we're getting to the point of creating something most folks don't get.
Ideas to improve this are welcome.
I'm already using the awesome seo_basics extension and I decided to add onto their TypoScript setup. In my changes, 'm also defaulting my page meta description to the page title, when there's no page description.
Next, there's the start of my canonical link tag. However, the exclude property isn't working for array type parameters like tx_ttnews[tt_news] for being removed from category pages. Frustrating...
Also, when on news pages, meta description tries for the news article short text, but if none, it grabs and crops the bodytext.