Plugin implementation help
"Igor Khavkine" <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Organization | Lycos Mail (http://www.mail.lycos.com:80) |
| Message-ID | <[email protected]> |
Here's what I want to do: given an entry in $datadir/category/entry.txt and an image.png in the same directory, I want to replace all instances of <img src="image.png"/> with something like <img src="$someurl/category/image.png"/>. I think this should go into a postformat filter, since it makes sense to apply this substitution after all the other filters have run. I've got the code that does the replacement, but I can't seem to find a convenient way of knowing what "category" is from within the cb_postformat callback. Is there a better place where this should be? Where is the "category" available? Is there a simpler way to do what I want? Thanks in advance. Igor ____________________________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click