[TYPO3-english] Frontend & ajax

Florin Daneliuc florin.daneliuc at iquestint.com
Thu Aug 27 08:32:33 CEST 2009


Thank you Stano, I will go for your option. Probable later I will go for the page Tsconfig once I get to move the configuration from template there. Can page Tsconfig be taken in a parsed or do I have to parse it?

florin 

-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Stano Paška
Sent: Tuesday, August 25, 2009 4:11 PM
To: TYPO3 English
Subject: Re: [TYPO3-english] Frontend & ajax

Hi.

You can use something like this (snippet from ql_googlemap_selector)

function loadTS($pageUid) {
	$sysPageObj = t3lib_div::makeInstance('t3lib_pageSelect');
	$rootLine = $sysPageObj->getRootLine($pageUid);
	$TSObj = t3lib_div::makeInstance('t3lib_tsparser_ext');
	$TSObj->tt_track = 0;
	$TSObj->init();
	$TSObj->runThroughTemplates($rootLine);
	$TSObj->generateConfig();
	$this->conf = $TSObj->setup['plugin.']['ql_googlemap_selector.'];
}


Or you can put configuration into ext_conf_template.txt and it can be accessed via $conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['extension_key']);

Stano.


On Tue, Aug 25, 2009 at 2:38 PM, Florin Daneliuc < florin.daneliuc at iquestint.com> wrote:

> Hi,
>
> I'm trying to validate a powermail form field when control loses 
> focus. I want to do this only for one field and I started to do this 
> using eID & ajax. But the problem is that I don't know how to access 
> the typoscript configuration in order to get the information that I 
> need, in my case the address of the web service to validate this field against.
>
> Is there a way to get the configuration (page/template) while making 
> an ajax call from the frontend ?
>
> Thanks,
> florin
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
_______________________________________________
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