[TYPO3] Random Text + Image ... SOLUTION
Scotty C
superscotty19 at yahoo.com
Wed Jun 14 06:20:21 CEST 2006
Thanks Chris, for the help with the "_solution_"
(whatever that is supposed to mean)
-S.
--- Christopher <bedlamhotel at gmail.com> wrote:
> Hello all,
>
> On 6/13/06, Scotty C <superscotty19 at yahoo.com>
> wrote:
> > Hello everyone,
> >
> > Just to make it 100% clear, here is the full
> solution
> > for having any type of content circulate randomly
> on
> > every page of your site:
> >
> > 1.) In your HTML template, create a subpart (I use
> > ###FEATURE### )
> >
> > 2.) Create a page in Typo3 that will store the
> random
> > content and remember the page ID (Mine is 1092).
> Note:
> > each content element will be counted as 1 item to
> be
> > circulated.
> >
> > 3.) In your TS Template, enter the following code
> > (note the PID):
> > subparts.FEATURE = CONTENT
> > subparts.FEATURE {
> > table = tt_content
> > select {
> > pidInList = 1092
> > max = 1
> > orderBy = rand()
> > }
> > }
> >
> >
> > That's it! I hope this complete mini-tutorial can
> be
> > as useful to others as much as Tapio and Joey were
> for
> > me.
>
> ...and just so your _solution_ is not too confusing
> in future, I think
> you've got the TS wrong; it should be:
>
> subparts.FEATURE = COA_INT
> subparts.FEATURE {
> 10 = CONTENT
> 10 {
> table = tt_content
> select {
> pidInList = 1092
> max = 1
> orderBy = rand()
> }
> }
> }
>
> ...which is a non-cached object. If you just use a
> CONTENT object, you
> will experience the problem you reported earlier
> (namely that it seems
> to show the same random bit of content each time.)
>
>
> -Christopher
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
>
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the TYPO3-english
mailing list