[TYPO3-ttnews] news list view, add title only if content exists.
Muriel le Pair
typo3 at strangefruit.nl
Wed Jun 18 10:24:25 CEST 2014
Hi,
I'm adding the news extension with TypoScript.
Is it possible to add the title only if the content exists?
I tried to do this by setting stdWrap.required = 1, but somehow this
does not work.
10 < tt_content.list.20.news_pi1
10 {
# only wrap header if content exists
stdWrap {
wrap = <h2>Show only if news exists</h2>
required = 1
}
# news setting below
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
# layout 2: ul menu
templateLayout = 2
# category settings
categories = 27
categoryConjunction = and
includeSubCategories = 1
list {
paginate {
itemsPerPage = 3
insertAbove = 0
insertBelow = 0
}
}
}
}
--
kind regards,
Muriel le Pair
More information about the TYPO3-project-tt-news
mailing list