Use tal:condition: <title tal:condition="exists pagetitle" tal:content="pagetitle"></title>
Nick Pack Technical Services Manager E: n...@carbidefinger.net DDI: 020 7193 4510 T: 0845 8128206 W: http://www.carbidefinger.net Please do not send support enquiries directly to my email address, please instead direct them to our automated tickets system at supp...@carbidefinger.net to enable faster handling of your queries. Company Details: Carbide-finger Limited, registered in England no.4388897. Registered office: Weir Cottage, 2 Laindon Rd, Billericay, Essex CM12 9LD Confidentiality: This e-mail and any attachments are intended for the addressee only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on its content is prohibited and may be unlawful. The views expressed in this message are those of the individual sender and do not necessarily represent the views of Carbide-Finger Limited. Security: This e-mail and any attachments are believed to be free from any virus but it is the responsibility of the recipient to ensure this is so. E-mail is not a 100% secure communications medium. We recommend you observe this when e-mailing us > From: GRolf <ger...@pictureparking.com> > Organization: - > Reply-To: Grolf <ger...@pictureparking.com>, Template Attribute Language for > PHP <phptal@lists.motion-twin.com> > Date: Thu, 14 May 2009 16:28:11 +0200 > To: Template Attribute Language for PHP <phptal@lists.motion-twin.com> > Subject: [PHPTAL] no error when var is not set ? > > When I create a simple template, but don't assign a value to all > variables in the template, PHPTal throws an error. Is there a way to > prevent this? > > I'd like to create some placeholders, where I can set variables, but > they won't all be filled every time. > > e.g. > > <head> > > <title tal:content="pagetitle"></title> > > </head> > > It should also be possible to render this page without setting > $title... > > > _______________________________________________ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal _______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal