Re: [Zope] extract page title

2007-04-24 Thread Andreas Jung
--On 25. April 2007 00:41:19 -0500 Jeff Rush <[EMAIL PROTECTED]> wrote: Andreas Jung wrote: 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. Ah thanks I wasn't aware of that exclusion, never having tried it

Re: [Zope] extract page title

2007-04-24 Thread Jeff Rush
Andreas Jung wrote: > > 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. Ah thanks I wasn't aware of that exclusion, never having tried it or found it documented. Then yes your approach is the only one left. -J

Re: [Zope] extract page title

2007-04-24 Thread Andreas Jung
--On 24. April 2007 09:56:41 -0500 Jeff Rush <[EMAIL PROTECTED]> wrote: I don't see above him putting a tag within the tag. He wants to put the *value* of the tag inside the <script> tag. It seems some form of a string: expression would do it, assuming the title is not literally i</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28339.html">Re: [Zope] extract page title</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+extract+page+title%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Philip+Kilner%22&o=newest">Philip Kilner</a></span> </div> <blockquote><span class="msgFragment"> 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 tags dynamically rather than having to manually add > to each page > > > <noscript</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28338.html">Re: [Zope] extract page title</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+extract+page+title%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Maciej+Wisniowski%22&o=newest">Maciej Wisniowski</a></span> </div> <blockquote><span class="msgFragment"> > 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 tag content ca</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28337.html">Re: [Zope] extract page title</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+extract+page+title%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Andreas+Jung%22&o=newest">Andreas Jung</a></span> </div> <blockquote><span class="msgFragment"> --On 24. April 2007 15:40:22 +0100 Dean Hale <[EMAIL PROTECTED]> wrote: 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 uncl</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28336.html">Re: [Zope] extract page title</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+extract+page+title%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Jeff+Rush%22&o=newest">Jeff Rush</a></span> </div> <blockquote><span class="msgFragment"> Andreas Jung wrote: > > --On 24. April 2007 15:25:24 +0100 Dean Hale > <[EMAIL PROTECTED]> wrote: > >> basically if i have some zpt pages with the title >> >> INTRODUCTION >> >> ABOUT >> >> somehow within below the page title should be appended after >> 'websitename.' >> >>> >>> <noscript> >>> <</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28335.html">Re: [Zope] extract page title</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+extract+page+title%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Dean+Hale%22&o=newest">Dean Hale</a></span> </div> <blockquote><span class="msgFragment"> 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. thanks dan On 24 Apr 2007, at 15:35, Andreas Jung wrote: --On</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28334.html">Re: [Zope] extract page title</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+extract+page+title%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Andreas+Jung%22&o=newest">Andreas Jung</a></span> </div> <blockquote><span class="msgFragment"> --On 24. April 2007 15:25:24 +0100 Dean Hale <[EMAIL PROTECTED]> wrote: Hi Andreas, Thanks, will try basically if i have some zpt pages with the tiltle INTRODUCTION ABOUT somehow within below the page title should be appended after 'websitename.' <noscript> <img src="<a rel="nofoll</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28333.html">Re: [Zope] extract page title</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+extract+page+title%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Dean+Hale%22&o=newest">Dean Hale</a></span> </div> <blockquote><span class="msgFragment"> Hi Andreas, Thanks, will try basically if i have some zpt pages with the tiltle INTRODUCTION ABOUT somehow within below the page title should be appended after 'websitename.' <noscript> <img src="<a rel="nofollow" href="http://domain/xxx/xxx/s?websitename.INTRODUCTION"">http://domain/</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28332.html">Re: [Zope] extract page title</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+extract+page+title%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Andreas+Jung%22&o=newest">Andreas Jung</a></span> </div> <blockquote><span class="msgFragment"> --On 24. April 2007 15:05:49 +0100 Dean Hale <[EMAIL PROTECTED]> 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 tags dynamically rather than having to </span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28331.html">[Zope] extract page title</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+extract+page+title%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22Dean+Hale%22&o=newest">Dean Hale</a></span> </div> <blockquote><span class="msgFragment"> 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 tags dynamically rather than having to manually add to each page <noscript> <img src="<a rel="nofollow" hr</span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28330.html">Re: [Zope] Make a Zope Staging Server</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+Make+a+Zope+Staging+Server%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22%5C%5BEMAIL+PROTECTED%5C%5D%22&o=newest">[EMAIL PROTECTED]</a></span> </div> <blockquote><span class="msgFragment"> > > > > > > --On 23. April 2007 17:41:42 +0200 [EMAIL PROTECTED] wrote: > > > > > > > I'm looking for a solution (perhaps a script) that "synchronize" > > > my ZODBs (maybe file copy?) > > > > ZSyncer? > > > > -aj > > I don't know it but it seems the tool I'm looking for... > > /j That's perfect! </span> </blockquote><br> <h3><span class=subject><a href="/zope@zope.org/msg28329.html">Re: [Zope] Make a Zope Staging Server</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=zope%40zope.org&q=date:20070424&o=newest">2007-04-24</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=zope%40zope.org&q=subject:%22%5C%5BZope%5C%5D+Make+a+Zope+Staging+Server%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=zope%40zope.org&q=from:%22%5C%5BEMAIL+PROTECTED%5C%5D%22&o=newest">[EMAIL PROTECTED]</a></span> </div> <blockquote><span class="msgFragment"> -- Initial Header --- >From : "Andreas Jung" [EMAIL PROTECTED] To : [EMAIL PROTECTED],"akm" [EMAIL PROTECTED] Cc : "zope" zope@zope.org Date : Mon, 23 Apr 2007 21:30:54 +0200 Subject : Re: [Zope] Make a Zope Staging Server > > > --On 23. April 200</span> </blockquote><br> <h2></h2> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <h2>14 matches</h2> <br> <ul><li><a href="/search?l=zope%40zope.org&q=date%3A20070424&a=1&o=newest">Advanced search</a></li></ul> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="zope@zope.org"> <label class="hidden" for="q">Search the list</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search zope" value="date:20070424"> <input class="submitbutton" id="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <h2 class="hidden"> Site Navigation </h2> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"> <a href="/zope@zope.org" title="c" id="c">zope - all messages</a></li> <li class="icons-about"> <a href="/zope@zope.org/info.html">zope - about the list</a></li> <li class="icons-expand"><a href="/search?l=zope%40zope.org&q=date%3A20070424&o=newest&f=1" title="e" id="e">Expand</a></li> </ul> </div> <div class="listlogo margintopdouble"> <h2 class="hidden"> Mail list logo </h2> </div> </div> <div class="footer" role="contentinfo"> <h2 class="hidden"> Footer information </h2> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> </ul> </div> <script language="javascript" type="text/javascript"> document.onkeydown = NavigateThrough; function NavigateThrough (event) { if (!document.getElementById) return; if (window.event) event = window.event; if (event.target.tagName == 'INPUT') return; if (event.ctrlKey || event.metaKey) return; var link = null; switch (event.keyCode ? event.keyCode : event.which ? event.which : null) { case 69: link = document.getElementById ('e'); break; } if (link && link.href) document.location = link.href; } </script> </body> </html>