Reputation: 929
here is the normal typoscript code for the Example like the Description:
page {
meta {
description = TEXT
description {
field = og_description // description
crop = 160| |1
}
}
}
How can i add a crop for the description Text?
Thanks all
Upvotes: 0
Views: 416
Reputation: 10800
As Julian mentioned: if you want to modify an existing meta tag definition you need to use replace
(even if you only modify the existing definition)
If you only want to crop the existing text your code should be:
page {
meta {
description {
crop = 160| |1
replace = 1
}
}
}
If you also want to change the fields you could use
(my default is description.field = description
):
page {
meta {
description {
field = og_description // description
crop = 160| |1
replace = 1
}
}
}
But don't use: description = TEXT
as this will set the value TEXT
to the meta tag
Upvotes: 0
Reputation: 2592
With activated EXT:seo the tags are first set by PHP and after that, the TypoScript config is handled. The TypoScript configuration does not replace existing tags by default. So tags that have been set via PHP will not be overwritten.
If you'd like to change this default behavior, you have to use replace
in TypoScript configuration (-> "MetaTag API > TypoScript and PHP":
page.meta {
description = TEXT
description.value = Override the pages description
description.replace = 1
}
Upvotes: 0