Reputation: 93
I am rendering the content using following TypoScript:
temp.addcol5 = CONTENT
temp.addcol5 {
table = tt_content
select {
pidInList = this
orderBy = sorting
where = colPos = 5
languageField = sys_language_uid
}
}
temp.addcol5.wrap = <div class="content middle"> | </div>
I want to wrap the content only if there are any records in the database. How can I achieve this?
Upvotes: 1
Views: 558
Reputation: 430
You may want to try
temp.addcol5.stdWrap {
wrap= <div class="content middle"> | </div>
required =1
}
Upvotes: 4