Re: Feature request: postformatter plugin for linking between entries

will <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
chombee wrote:
> What I want is a way to link from one pyblosxom story to other stories
> on the same blog. By link I mean HTML hyperlinks in the HTML output of
> the blog. The reason I can't just use the normal permalink for the entry
> is because I sync different copies of the blog on different machines, so
> the part of the URL that comes before /pyblosxom.cgi changes. I need a
> way to make a relative not absolute link between entries, so that if I
> move my blog around all the hyperlinks between posts will keep working.
> Relative links like this don't appear to be possible with pyblosxom,
> once you realise that you may be viewing an entry on its permalink page
> or on some category or month page, index page, etc. You know where you
> want to link to but you don't know where you are linking _from_.
> 
> Basically you need to be able to put some text like $base in your
> stories and have pyblosxom expand it to, for example,
> http://127.0.0.1/cgi-bin/pyblosxom.cgi so then you could link to other
> stories by doing <a href="$base/folder1/folder2/story">. Or
> alternatively, some wiki-like syntax like
> [Hyperlink][/folder1/folder2/story] that pyblosxom would expand to (for
> example) <a
> href="http://127.0.0.1/cgi-bin/pyblosxom.cgi/folder1/folder2/story">Hyperlink</a>/
> 
> wbgwiki sounds like it does something very much like that, but it seems
> to separate wiki files from blog files and put each in a different
> folder.
> 
> Also my request is the same as one I found elsewhere on this mailing
> list:
> 
> <http://thread.gmane.org/gmane.comp.web.pyblosxom.user/1588/focus=1597>:
> 
> Will Guaraldi wrote:
> "Mmm...  If I understand you correctly, you want to link between
> entries.  PyBlosoxm doesn't make that easy to do.  I think you're
> going to have to write a postformatter plugin or find someone who has
> already written one that looks through your entry for some kind of
> syntactical indicator and replaces the syntactical indicator with the
> full url for the target entry.
> 
> I don't think this would be hard to write.  If you can't find anything
> else out there that does this and you don't want to try writing a
> plugin on your own, poke me and I can write it."
> 
> Thanks

It's kind of funny that you quoted me earlier since as I was reading 
your email I thought that you'd have to do this in a plugin and then 
bumped into an earlier version of me thinking the same thing.

So that's two versions of me thinking you'll need to solve this with a 
plugin.  I don't know of any plugins like this and I haven't written it 
yet.  So we're at the same place we were last time unless someone else 
has done something I didn't know about.

/will

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.