Re: $path not working #Resend - Did anyone receive this?

Wari Wahab <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
$path is a relative pointer to your categories. This behaviour is  
strictly kept as close as possible to the original blosxom.  
$absolute_path will always start from the root, and $path starts  
relative to where your page is at...

Imagine a blog with /foo/bar/baz with an article /foo/bar/baz/ 
hello_world.txt, you are at /foo/:

$absolute_path = /foo/bar/baz
$path = bar/baz

If you used a date based path, it does not make sense to start path  
at any where else than /foo/bar/baz ($path is category based)..

$path does not work for Martin because he use "$url$path", it may be  
in the default templates.

There is a pitfall however. $path is not calculated properly. One  
must use $path with a trailing / (for linking), and must usually  
prepend a ./, if you enter a category without a trailing / at your url.

If there's a variable in serious need of unit testing, I think $path  
would be the one :)

Anyway, the reference design for $path was blosxom 0+5i, which is a  
very old version, no one complained about the $path implementation  
then. I, being a rebel, introduced $absolute_path. :)

On 12 May 2006, at 10:13 PM, will guaraldi wrote:

>
> Hrm.  That sounds like a bug to me, too.
>
> The weird thing is that $absolute_path works fine.  I use  
> $absolute_path on my blog and get the full category regardless of  
> what entries or categories I'm looking at.
>
> I'm not sure why we have a $path and an $absolute_path and what the  
> differences might/should be.  I'll find some time to look into it  
> and figure out what the deal is.
>
> /will
>
>
> On Fri, 12 May 2006, martin f krafft wrote:
>> Hi,
>>
>> I migrated my site to 1.3.2 and found that $path, which I use as
>> category, is not working in certain cases, specifically when I visit
>> a post or a category directly.
>>
>> It works when I just go to the main page: http://blog.madduck.net/,
>> e.g.:
>>
>>   Wed, 10 May 2006 14:30 | debian | Permalink
>>                            ^^^^^^
>>
>> But click on the debian category, and the byline of the posts will
>> become:
>>
>>   Wed, 10 May 2006 14:30 |  | Permalink
>>
>> which is the same as if surfed there by permalink.
>>
>> If I use a date link (http://blog.madduck.net/2006/05/10), the
>> category is back, but it now has a leading slash.
>>
>> I get the same behaviour if I use further subdirectories
>> (http://blog.madduck.net/travel/2006-southeastasia).
>>
>> What gives? Is it just me or does this smell like a bug?
>>
>> Cheers,
>>
>> (Please CC me on replies)
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> pyblosxom-users mailing list
> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
>



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
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.