[Zope] extract page title

Dean Hale dean.hale at sunderland.ac.uk
Tue Apr 24 10:25:24 EDT 2007


Hi Andreas,

Thanks, will try

basically if i have some zpt pages with the tiltle

<title>INTRODUCTION</title>

<title>ABOUT</title>

somehow within below the page title should be appended after  
'websitename.'

> <script language='JavaScript1.1' type='text/javascript'>
> <noscript>
> <img src="http://domain/xxx/xxx/s?websitename.INTRODUCTION"
> width="1" height="1" alt="">
> </noscript>
> </script>

> <script language='JavaScript1.1' type='text/javascript'>
> <noscript>
> <img src="http://domain/xxx/xxx/s?websitename.ABOUT"
> width="1" height="1" alt="">
> </noscript>
> </script>

does this make more sense? thanks again.

dean

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



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

> Hi
>
> I'm trying to implement some web tracking code within a page template,
> however a little stuck.
>
> In the code below i'd like to append the page template - page title
> between the <title> tags dynamically rather than having to manually  
> add
> to each page
>
> <script language='JavaScript1.1' type='text/javascript'>
> <noscript>
> <img src="http://domain/xxx/xxx/s?websitename.PAGETITLE"
> width="1" height="1" alt="">
> </noscript>
> </script>
>

Please rephrase your posting. It's not easy to understand what your real
problem is (using TALES within the <script> tag?).

-aj



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070424/d16dbb1e/attachment.htm


More information about the Zope mailing list