Sounds hard, but it may not be too bad.
I am a Zope newbie, but have had a squishdot site for a year now. But I have recently become very interested in Zope and Python and thus my recent studies.
This is just an off-handed guess, but there is probably a piece of code somewhere that handles the submission of articles. When you press the submit button, Zope takes that text and via either a stored object method in Zope, or a buried script somewhere, and the article gets "handled" before it is shoved into the database.
So in your quest, trace down in the code what happens when you press the button on the post form and from there you should be able to find a place to insert your code.
Gasp, did I say code? Yes, you will have to probably write something that looks for http:\\ and then makes sure there is not a "> immediatly before it, then grab the http:\\ string (to the whitespace) and slap it into a varible and place the URL within and so forth.
The reason I think this is possible is because I have viewed the CMF demos on http://www.zope.com and it seems to infer methods for taking html templates and formatting raw text into the templates. If that is possible, then what you ask shoud be as well.
Have fun!
Drew - a newbie
|