[TYPO3-templavoila] Selecting and rendering a random FCE?

Bart Veldhuizen bart at v-int.nl
Fri Sep 14 13:09:57 CEST 2007


Thanks for the feedback everyone; encouraged by the comments I dug a  
little deeper and found another problem in my TypoScript templates  
which prevented this.

Cheers,

Bart

Op 10-sep-2007, om 16:15 heeft Bart Veldhuizen het volgende geschreven:

> Hi list,
>
> I've been trying to figure out the following: I have a SysFolder with
> a handfull of FCE's in it (gifbuilder objects that Content managers
> can create using TemplaVoila). The homepage of my site should show
> one of these FCE objects at random. I tried using a CONTENT object
> and I found a lot of pointers on how to do this, but for some reason
> this script will only select 'regular' content elements such as 'text
> only' - but not FCE's. Any idea why?
>
> Thanks!
>
> Bart
>
> ----
>
>
> 			<field_content type="array">
> 				<tx_templavoila type="array">
> 					<title>Content</title>
> 					<sample_data type="array">
> 						<numIndex index="0"></numIndex>
> 					</sample_data>
> 					<eType>ce</eType>
> 					<TypoScript>
> 						
> 	5 = CONTENT
> 	5 {
>
> 		table = tt_content
>
> 		select {
> 			# ID of the page where your content elements are stored
> 			pidInList = 36
>
> 			# Number of content elements to show
> 			max = 1
>
> 			# select a random element
> 			orderBy = rand()
> 		}
>
> 		renderObj = USER
> 		renderObj.userFunc = tx_templavoila_pi1->main
> 	}
> 	</TypoScript>
>
> ---------------------------------------------------------------------- 
> --
> --
> Bart Veldhuizen, Veldhuizen Interactive.  Tel: 06-420 67 330
> website analyse & advies | content management systemen
>
>
>
> _______________________________________________
> TYPO3-project-templavoila mailing list
> TYPO3-project-templavoila at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project- 
> templavoila

------------------------------------------------------------------------ 
--
Bart Veldhuizen, Veldhuizen Interactive.  Tel: 06-420 67 330
website analyse & advies | content management systemen





More information about the TYPO3-project-templavoila mailing list