[Zope] extract page title

Dean Hale dean.hale at sunderland.ac.uk
Wed Apr 25 03:27:56 EDT 2007


Hello all,

Thanks very much for all of your help.

thanks
dean

On 24 Apr 2007, at 16:20, Andreas Jung wrote:



--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 --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070425/96b11597/attachment.htm


More information about the Zope mailing list