[TYPO3] Templavoila and additional where clause

Бойчук Петро petro.boychuk at gmail.com
Wed Jul 18 10:46:10 CEST 2007


Hello Dmitry,
thank you for your response.
I found this
10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
in DS XML.

Where should I use .if? Like this:
10= RECORDS
10.source.current=1
10.source.if {
...
}
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
??

Do I understand you right?

On 7/18/07, Dmitry Dulepov <dmitry at typo3.org> wrote:
>
> Hi!
>
> TemplaVoila-related questions should go to TemplaVoila list...
>
> Бойчук Петро wrote:
> > I have TYPO3 site in 3 languages. I use templavoila on this site. And I
> > have
> > a question is it possible to add where clause to content that
> templavoila
> > shows?
> > My problem is that i added 1 field to tt_content table named "city".
> > Also, I
> > use get var "city", and if this 2 values match (or city from GP is in
> list
> > of tt_content's city field ) then I want that content element to be
> shown,
> > else do not show. And if there is no city in tt_content, then show this
> > record for all cities.
> > I think I can do it with additional where to tt_content table. Or maybe
> > there is some other solutions?
>
> You can add TS "if" to DS XML.
>
> --
> Dmitry Dulepov
> TYPO3 freelancer / TYPO3 core team member
> Web: http://typo3bloke.net/
> Skype: callto:liels_bugs
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english




-- 
З повагою,
Бойчук Петро


More information about the TYPO3-english mailing list