Re: Questions about categories

"Chris Moffitt" <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
> On Tuesday 08 July 2003 11:17, Chris Moffitt wrote:
>> I gave the updated categories plugin a try and it is working as
>> expected.  Thanks.
>
> Nice :)
>
>> I also tried your breadcrumbs plugin and it seems to work for me just
>> fine.  I'm curious why you didn't like it?
>
> It's just done the old way, which I don't like (the str(Object) method),
> I's prefer it to be the function like method (the one like dospath2uri),
> so you can put in $breadcrumbs('-<foo>-'), and the seperator becomes
> what you define, and your crumblinks will look like
> 'category-<foo>-subcategory' :) So, yeah, I don't like it.
>
>> I am working on a "showmore" plugin.  I have a rough skeleton working,
>> but
>> not the final details yet.  I will probably have some questions, but I
>> want to wait untill it's nearly done so I can get some good feedback.
>
> There's a few ways to do this, one is to truncate the text, but it means
> that you should look out for things like what goes in between an <a
> href="foo">bar</a>, and if you cut it in the middle of bar, you're whole
> blog will be a link to foo :)
>
> Another way is to have explicit marker in the text, like a <!--more-->
> html markup, which at least, the user will be aware of what is going on,
> and you'd have a feature bonus that users can choose what will, and will
> not activate the more text.
>
> Then, that plugin will actually be a cb_postformatter() plugin that
> reads the text, and assign everything before the more marker (or x
> number of characters) to be in $body, and the remaining text to be in
> $more and users point this out in their story flavour as $more("Read
> more...") (or something like that). In a cb_story(), $more should link
> to the permalink of the blog and use the parameter as the generic text
> to the link. $more will only expand to the full text iff (if and only
> if) there is one entry to process.. Sounds simple? Have I confused you
> yet? :)

I'm not totally confused yet.  I did wonder about how to handle breaking
up text in an inconvenient place.  You've give me some pointers for
alternatives which I'll try to work on.

>
>> One final thing.  I may have noticed another "weird" thing with paths on
>> Windows machines.
>>
>> Say I have the following category structure.
>> Proj1
>>    SubProj1
>>    Subproj2
>> Proj2
>>
>> If I go to Proj1, I see SubProj1 and SubProj2 items in the view which is
>> expected.  However, the category url I see for the SubProj1 only shows
>> www.foo.com/cgi-bin/pyblosxom.cgi//SubProj1 - it should be
>> www.foo.com/cgi-bin/pyblosxom.cgi/Proj1/SubProj1
>>
>> it seems to be missing the Proj1 parent dir.  Another windows related
>> issue?
>
> Oh crap, I thought I fixed this in CVS a few days ago, and that happened
> in UNIX.. Hmm, can you tell me what $variables you use to get that link
> and I'll see if I can fix it.

Here's what I'm using for my category link -

<a href="$base_url/$dospath2uri('path')"
title="Category">$dospath2uri('path')</a>] |

>
>> Getting sick of dealing with Windows yet?  The good news is these seem
>> to
>> be pretty minor tweaks to get it running on yet another platform - which
>> should be a "good thing."
>
> I hope so, this had better be worth it :)

All I can guarantee is that you'll get one additional instance working. 
Surely more people would like it too.  There aren't that many options for
good, free blogging software, in python on windows ;)


>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> pyblosxom-users mailing list
> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
>
>



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
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.