[TYPO3-project-formidable] Template file optional

Manuel Rego Casasnovas mrego at igalia.com
Mon Jan 12 09:03:07 CET 2009


Hello,

On Fri, 2009-01-09 at 20:27 +0100, Alexander Rose wrote:
> 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>

Yes, it's a good idea. I didn't know the option "condition" at
"includexml".

Thanks,
   Rego

-- 
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com


More information about the TYPO3-project-formidable mailing list