Re: [PHPTAL] Escaping of dollar sign ($)

2009-10-27 Thread Nick Pack
What about the html entity: #36; On 26/10/2009 23:10, Cameron Junge cameron.ju...@finda.co.nz wrote: Hi All, Not sure if this has been covered on this list before, my quick search couldn't find anything that seemed appropriate. If I wish to display a $ followed by a tal variable using

[PHPTAL] MPTT to recursive macro

2009-06-22 Thread Nick Pack
Hi Guys, I have been experimenting with the Modified Pre-Order Tree Traversal Pattern, my test case code is returning the results as expected however I am having trouble with the metal macros to present it. The example I am using has 3 levels (but is potentially unlimited depth due to the MPTT

Re: [PHPTAL] MPTT to recursive macro

2009-06-22 Thread Nick Pack
+0100 To: Template Attribute Language for PHP phptal@lists.motion-twin.com Subject: Re: [PHPTAL] MPTT to recursive macro On 22-06-2009 at 12:26:34 Nick Pack n...@carbidefinger.net wrote: I have been experimenting with the Modified Pre-Order Tree Traversal Pattern, my test case code

[PHPTAL] Root node not finished.

2009-05-11 Thread Nick Pack
=l menua href=# tal:attributes=href l/Link${l/Title}/a tal:block tal:condition=l/Pages tal:define=menu l/Pages metal:use-macro=recursivelist //li /ul tal:block metal:use-macro=recursivelist / Thanks in advance. Nick Pack Technical Services Manager E: n...@carbidefinger.net DDI: 020 7193 4510 T

Re: [PHPTAL] tree in PHPTAL

2008-12-16 Thread Nick Pack
Sorry to dig up an old thread guys, I've been attempting to use Kornel's code below but am getting an exception when there is not a third dimension array, for example: ul metal:define-macro=recursivelist tal:condition=menu li tal:repeat=l menu${l/Title} tal:block tal:condition=l/Pages

RE: [PHPTAL] tal:condition and element contents

2008-02-29 Thread Nick Pack
of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. On 29 Feb 2008, at 10:21, Nick Pack wrote: For my current project, I have the need to display a form tag around

[PHPTAL] RSS Feed link attribute

2008-02-26 Thread Nick Pack
I've built a template/associated code for generating an RSS feed from a recordset, im having some trouble with the link attribute and I wondered if anyone could shed some light on a workaround. In my template I have tried both: linkspan tal:content=article/articlelink