[TYPO3-english] Re: typoscript condition on pages table

TSniper masmoudi_moha at yahoo.fr
Fri Mar 6 08:44:50 CET 2015


Thanks Joey,

yes, this is a select for pages wich have the column categories = 0, but i didn't work and i don't know if this is the right syntax. I just wanted to generate a onepage content and i have cotegorized pages which i don't want to include their content in this var lib.maincontent.

lib.mainContent = COA
lib.mainContent {
	10 = CONTENT
	10 {
		table = pages
		select.orderBy = sorting
		select.where = categories = 0 // field:uid
		// where.intval = 1
		renderObj = COA
		renderObj {
			10 = CONTENT
			10 {
				table = tt_content
				select {
					pidInList.field = uid
					orderBy = sorting
					where = colPos = 0
				}
				wrap = <section id="{field:subtitle}" ><div class="section-inner">|</div></section>
				wrap.insertData = 1
			}
		}

		wrap = |
	}
}


More information about the TYPO3-english mailing list