[TYPO3-english] Frontend & ajax

Stano Paška stano.paska at gmail.com
Tue Aug 25 15:11:14 CEST 2009


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
>


More information about the TYPO3-english mailing list