If you don't know, how to set up the extension "SEO dynamic tag", or if there will be any failure, it is very helpful to activate the debug mode.
You will receive a lot of information like in our illustration above (page 9) about
your typoscript code,
the typoscript code changed by the extension,
the success of substituting the used variables,
the array with the available globals,
the query string in the SQL database and
the result.
Turn the debug mode on:
plugin.tx_seodynamictag_pi1.debug = 1
Or in our tutorial examples above
temp.seo = COA
temp.seo {
10 < plugin.tx_seodynamictag_pi1
10 {
# Example for the page title
special = title
debug = 1
query {
...
If you have a failure like no effect in the page title, but everything in the report is ok, than there will be only one cause:
The extension "SEO dynamic tag" isn't the last page element, another page element is overriding the page title or <meta>-tags.
Example code for page element:
page {
...
10 < your_content
# The seo-plugin have to be the last content element
1000 < plugin.tx_seodynamictag_pi1
1000 {
# Example for the page title
special = title
query {
...
Or in our tutorial examples above
page {
...
10 {
subparts {
content = COA
# Single view of a news in tt_news
content.20 < temp.single
# The seo-plugin have to be the last content element
content.1000 < temp.seo
}
}
}
Illustration 11: Values of the fields title and short of a tt_newsand the page title
The values of the fields title (1) and short (2) of a tt_news and the values in the page title.
Illustration 12: Report in the debug mode
The same in the report.
Report structure
Your typoscript code.
The typoscript code changed by the extension.
The result of Substitution:
There is an "OK", if the global variable is available.
There is an "DANGER", if the global variable isn't available.
The array with the available globals.
The SQL query string. If you don't know, if the query has the valid syntax, copy the query to PhpMyAdmin e.g. and test it.
The result value. In this example:
tt_news.title and
tt_news.short