[TYPO3-project-formidable] Template file optional
Alexander Rose
alexander.rose at weirdbyte.de
Fri Jan 9 20:27:41 CET 2009
Hi,
Am 08.01.2009 um 20:34 schrieb Manuel Rego Casasnovas:
> I'm defining a generic plugin in an extension that uses Formidable to
> show a list of items and the detail of each one.
>
> And I've configured the flexform plugin allowing to select a template
> file or left the template file empty.
> So the expected behaviour should be that if a template is set it
> should
> be used, otherwise the default Formidable template will be used.
maybe you could use something like this
<includexml>
<condition>
<userobj>
<php><![CDATA[/*<?php*/
return $this->oParent->conf['templatePath'] != '';
/*?>*/]]></php>
</userobj>
</condition>
<path>EXT:yourExt/rdr_template.xml</path>
</includexml>
<includexml>
<condition>
<userobj>
<php><![CDATA[/*<?php*/
return $this->oParent->conf['templatePath'] == '';
/*?>*/]]></php>
</userobj>
</condition>
<path>EXT:yourExt/rdr_standard.xml</path>
</includexml>
greetings
alex
More information about the TYPO3-project-formidable
mailing list