Return to Snippet

Revision: 48422
at July 1, 2011 03:12 by stwsimon


Initial Code
lib.randomArticles = CONTENT
lib.randomArticles {
	wrap = <div class="rand-articles">|</div>
	table = tx_articledatabase_articles

	select {		
		pidInList = 97
		orderBy = rand()
		max = 3
	}
	renderObj >
	renderObj = COA_INT
	renderObj {		
		10 = TEXT		
		10.field = title
		10.wrap = <h4>|</h4>
		20 = TEXT
		20.field = description
		20.wrap=<p>|</p>
		20.typolink.parameter = 97
		20.typolink.additionalParams.field=uid		
		20.typolink.additionalParams.wrap = &tx_articledatabase_pi1[showUid]=|
		20.crop = 150|...|1
	}
		
}

Initial URL


Initial Description
Gets random data from a table.  Modify as required.

Initial Title
Typoscript get random data from a table

Initial Tags
query

Initial Language
TYPO3