Skip to content

Constants as key break syntax highlighting

Using a constant as key breaks syntax highlighting (see also attached screenshot).

url = TEXT
url {
	typolink.parameter.cObject = CASE
	typolink.parameter.cObject {
		key.field = pid

		{$plugin.tx_solr.news.storageNews} = TEXT
		{$plugin.tx_solr.news.storageNews}.value = {$plugin.tx_solr.news.singlePidNews}

		{$plugin.tx_solr.news.storagePress} = TEXT
		{$plugin.tx_solr.news.storagePress}.value = {$plugin.tx_solr.news.singlePidPress}
	}
	typolink.additionalParams = &tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]={field:uid}
	typolink.additionalParams.insertData = 1
	typolink.useCacheHash = 1
	typolink.returnLast = url
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information