[Zope] extract page title

Maciej Wisniowski maciej.wisniowski at coig.katowice.pl
Tue Apr 24 10:54:19 EDT 2007


> 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.
>
>
I'm not sure if I understand you but...
Where <title> tag content came from? If this is from typical title_or_id
function then
you may use something like:

<title tal:content="here/title_or_id"></title> 

you may then also do:

<img tal:attributes="src python:
'http://domain/xxx/xxx/s?websitename.%s' % (here.title_or_id())"
width="1" height="1" alt="">

-- 
Maciej Wisniowski


More information about the Zope mailing list