[Zope] extract page title
Andreas Jung
lists at zopyx.com
Tue Apr 24 11:20:03 EDT 2007
--On 24. April 2007 09:56:41 -0500 Jeff Rush <jeff at taupro.com> wrote:
>
> I don't see above him putting a <title> tag within the <script> tag. He
> wants to put the *value* of the <title> tag inside the <script> tag. It
> seems some form of a string: expression would do it, assuming the title
> is not literally in the zpt but rather expanded from a variable.
>
> <script language='JavaScript1.1' type='text/javascript'>
> <noscript>
> <img tal:attributes="src
> http://domain/xxx/xxx/s?websitename.${title_or_id}" width="1"
> height="1" alt="" />
> </noscript>
> </script>
>
As far as I can recall: you can't use TALES within a SCRIPT block.
That's why you must generate your stuff outside inside a script.
-aj
-------------- 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/c977a09e/attachment.bin
More information about the Zope
mailing list