[Zope] extract page title

Andreas Jung lists at zopyx.com
Tue Apr 24 10:51:00 EDT 2007



--On 24. April 2007 15:40:22 +0100 Dean Hale <dean.hale at sunderland.ac.uk> 
wrote:

>
> Hi Andreas,
>
> Thanks - i know the title does not belong in a script tag, i just want
> the text within the title tag appended within the javascript, not the
> tags themselves. Sorry its my explanations for help that are unclear.
>
> thanks
> dan
>

Move your code to generate the HTML snippet into a script and generate
whatever you need on the Python level. If you generate the <title>
using TALES, you can use the same API in Python to generate the title
inside your <script> code. Then call the script from the template.

-ajh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070424/fea8d675/attachment.bin


More information about the Zope mailing list