Re: Questions about categories
Wari Wahab <wari-Yu9E6tdDWSZWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Organization | Celestix Networks |
| 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? :)
> 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.
> 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 :)
-------------------------------------------------------
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