Hi Dean,

Dean Hale wrote:
> 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>
> 
> do you have any advise please on how this could be done?
> 

I've re-read this thread about four times now, and am having a lightbulb
moment.

Do you mean that you wish to dynamically form the tag: -

<img
  src="http://domain/xxx/xxx/s?websitename.PAGETITLE";
  width="1"
  height="1"
  alt="">

...such that "PAGETITLE" is the title of the current page?

If so, you need to bone up on "tal:attributes", because you need to do
something like: -

<img
  tal:attributes="src string:http://url?sitename.${here/title_or_id}";
  src="http://domain/xxx/xxx/s?websitename.PAGETITLE";
  width="1"
  height="1"
  alt="">

(Untested - but you get the idea)

HTH

-- 

Regards,

PhilK
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to