Reputation: 27
Using the Introduction Package 4.5 (Not templa voila)
The page.meta template sets the meta tag 'description' in Setup:
page.meta {
description = {$plugin.meta.description}
}
. . . and the description string value is defined in the root template Constant:
plugin.meta {
description = description string goes here
}
But now how do I dynamically include each Page Title in the Description meta tag? Something like
description = {plugin.meta.description}{pageTitle.value} ?
Any clues will be appreciated.
Upvotes: 1
Views: 2483
Reputation: 9671
You can use any stdWrap function on description
, I would use a COA to combine those values:
page.meta.description.cObject = COA
page.meta.description.cObject {
10 = TEXT
10.value = {$plugin.meta.description}
20 = TEXT
20.data = field:title
}
You can find more information here: http://wiki.typo3.org/TSref/META
Upvotes: 1
Reputation: 432
To put this in a single line you could use .dataWrap on description like this:
page.meta.description.dataWrap = {$plugin.meta.description} - {field:title}
Upvotes: 0