Issue Bug Closed

#101636appendString does not respect round bracket

Stephan Bauer 08/09/23, 12:45 updated 12/02/25, 14:37

Description

I tried to us appendString to add SQL in sitemap config.

additionalWhere := appendString( AND `uid` NOT IN (48,10,50))

but in Version 12 the string is cut after the first closing round bracket in ‘Active Typoscript viewer’ and the SQL is incorrect:

additionalWhere = {#no_index} = 0 AND {#canonical_link} = '' AND uid NOT IN (48,10,50

This worked in Version 10.

plugin.tx_seo.config {
    xmlSitemap {
        sitemaps {
            pages {
                config {
                    additionalWhere := appendString( AND `uid` NOT IN (48,10,50))
                }
            }
        }
    }
}

Reviews 3