Re: $path issue in category links? (a bit long ..)
Wari Wahab <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <1061866524.17549.28.camel@minisync> |
Blosxom, and pyblosxom is supposed to support 1 level blogs, that could
have multiple levels of hierarchies of sub-blogs. This happens when you
set the blog depth to a level other than 0. So when that happens, you
base url should point to that level instead of the base. Heheh, I didn't
explain it that well eh? Let's go graphical. Supposing your pyblosxom is
installed in:
http://host.com/cgi-bin/blog
And we now reached:
http://host.com/cgi-bin/blog/tech/software
And you have a a couple of blog entries on that link, we pick one of
them, for example, a page that could link to:
http://host.com/cgi-bin/blog/tech/software/annoyance/ms/windows/sucks.html
With that in mind, you have:
http://host.com/cgi-bin/blog/tech/software as your base_url and
annoyance/ms/windows as your path, or put it this way:
http://host.com/cgi-bin/blog/tech/software/annoyance/ms/windows
------------------------------------------^--------------------
$baseurl $path
Now, if you are at /, then the pointer points it differently:
http://host.com/cgi-bin/blog/tech/software/annoyance/ms/windows
----------------------------^----------------------------------
$base_url $path
So $base_url and $path are calculated at render time (or for developers,
on Pyblosxom.entries.fileentry.FileEntry object creation time).
Hope that clears the air :)
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0