Re: local links and bilingual pages
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Uh... the $base_url will point to the pyblosxom.cgi script--it doesn't point to a place on the file system. PyBlosxom generates the base_url variable--it's always set to something. You can over-ride it by setting it in config.py. Regardless, it doesn't point to your filesystem. Maybe you should use Magnus' image kicker plugin. That allows pyblosxom to serve up images. It (and some documentation and the code) are in the registry at: http://www.planetpyblosxom.org/blog/registry/display/graphics/imagekicker See if that helps. I was playing with it the other day--I'm pretty sure this will solve your issue. /will On Wed, 5 May 2004, Pablo Barrera González wrote: > El mié, 05-05-2004 a las 18:27, Moof escribió: > > > First I would like to do put a link to my photos without using the > > > global URL. For example > > > > > > <img src="$base_url/images/myself.jpg" />... > > > > > > I don't know how to do this. The only solution I found is using the > > > complete url (http://myhost.com/myself/images...). Is there any way of > > > doing this or should I modify the parser for understanding the $base_url > > > variable? > > > > Is there any particular reason you can't just use "/images/myself.jpg"? > > > > Yes, there is. I put the same page in different machines in different > directories (for example in http://myhouse/ and http://mywork/~barrera/, > etc). > > > > Check that there is no # symbol in front of py['base_url'] in the config.py > > file. I know that my one has it, and it looks like the standard one has one > > there too. If it's there, then remove it. > > > > That's not the problem. The $base_url symbols is well parsed in my > head.flav and foot.flav files, but in any some_history.txt is not. The > HTML code generated by pyblosxom looks like this: <img > src="$base_url/images" /> > > > > > The other question is related with bilingual pages. My page is in > > > spanish but I would like have another version in English. Is there and > > > plugin or similar for doing this? For example write a story with the two > > > contents > > > > > > $ cat history.txt > > > -LANG=es > > > Histora > > > <p>la historia</p> > > > -LANG=us > > > Story > > > <p>the history</p> > > > > -LANG=es > > Muy bueno :-D Very funny :-D > > > -LANG=en > > This si a strange way to format a file > > Bah! Bilingual pages are something I've been looking into, on and off, for > > quite a while. The problem is finding a way for it to work well. > > > > I think this is not such bad idea (or a strange one). It is easy of > write news in both (or three, four, etc) languages in this way because > > - you have the same html code in the same place > - when you change something in one language you don't have to look for > the other language, it's just there > - you don't have two pages with two directory trees or whatever, you > have just one > > The principal page can be configured in the config.py file. When you ask > for http://anywhere.com/cgi-bin/pyblosxom.cgi/mypage, pyblosxom shows > the default language. If you put a parameter in the call, like > http://anywhere.com/cgi-bin/pyblosxom.cgi/mypage?lang=other pyblosxom > should show the other language. > > Links can always be to the same language and you could put a link to the > same page with other language. > > If there is no support for bilingual pages in pyblosxom I could do it, > once I'll have my normal page working. > > > It's a bit complicated. If you like, I could help you look into the > > different ways of doign it, and even hacking pyblosxom to get it workign > > like that, though finding time to do much for this is going to be difficult > > over the next 2-3 weeks... > > > > I think this is a good idea. > > > -- whatever it is, you can find it at http://www.bluesock.org/~willg/ except Will--you can only see him in real life. ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3