[TYPO3-dev] render content or not based on user input

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Jan 21 19:06:09 CET 2008


Hi!

media.res | Alex Widschwendter wrote:
> maybe you have a hint for concerning the following problem. i'm 
> implementing content localization based on ip2location service.
> 
> i have a dropdown for all content elements defining for which country 
> the content element should be shown.
> 
> first idea was to hook in the enablefields query. but this seems to be 
> cached so it doesn't work.
> 
> does anybody know a hook where i can define if a CE is outputted or not?
> 
> current working solution is a condition userfunc. depending on the 
> result i modify the styles.content.get TS object. as said it works but 
> is not really sexy.

Record are selected by TS from css styled content. If you take a look into TS object browser, it may give you ideas.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"




More information about the TYPO3-dev mailing list