I try to have a condition in TypoScript to find out if a certain list_type is on the page (plugin). In the docs I can't find anything about that. Is it even possible at all?
TypoScript condition to check if specific list_type is on a page
637 Views Asked by jmcclane At
2
There are 2 best solutions below
0

Try this:
Return 1 if the plugin News is fund on the current page (colpos 1)
lib.hasNewsOnPage = TEXT
lib.hasNewsOnPage {
value = 0
stdWrap {
override {
cObject = CONTENT
cObject {
table = tt_content
select {
where = colPos=1 AND list_type = 'news_pi1'
max = 1
}
renderObj = TEXT
renderObj {
value = 1
}
}
}
}
}