Welcome to Squishdot Websites Squishdot How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Howto get an article's title from its url
How-To Posted by on Thursday June 14, 05:39AM, 2001
from the dept.
Is there a way to get an article's title from its url?

I'm storing article titles in a table, then when I iterate over them, I would like to create a link to them, but the link text should be the title not the url (which is availble inside dtml-in). Kinda like what the "older posts" feature does in squishdot, except that its getting its values from a method whose source I can't seem to find
I would like to do something like:

title of article pointed to by url here

<  |  >

 

Related Links

The Fine Print: The following comments are owned by whoever posted them.
( Reply )

Re: Howto get an article's title from its url
by on Friday June 22, 10:03PM, 2001
never mind! I figured it out (with lots of help from the list etc of course). See my rant (Meet Don Zuixote) at zopezen.com
Basically, you have to use restrictedTraverse on the URL string to get to the object id, push its context using the dtml-with and use its title!

Amr

[ Reply to this ]
Hmmmm....
by on Friday August 17, 05:40PM, 2001
I'm pretty sure I replied to that explaining that you don't have to go through all that malarky ;-)

Chris
[ Reply to this ]
The Fine Print: The following comments are owned by whoever posted them.
( Reply )

Powered by Zope  Squishdot Powered
  "Any system that depends on reliability is unreliable." -- Nogg's Postulate
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 , ©2000-2002 .