1 of 2
1
weblog:exp sort by category and style nested
Posted: 27 May 2004 11:20 PM   [ Ignore ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33269
Joined  05-14-2004

Hey =)

I would like to request two additions to weblog:exp that would allow for a sort by category, as a nested list.  The explanation of what I want is contained in this post and that should help to show what I am trying to accomplish….

Thanks. =)

 Signature 
Profile
MSG
 
 
Posted: 28 May 2004 11:32 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

One big problem here… how do you handle an entry that belongs to multiple categories?  Where does it get sorted?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 28 May 2004 12:32 PM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33269
Joined  05-14-2004

Shows up in both…. That’s what I’d expect, anyway; same way that it’s handed for the archive tag. =)

 Signature 
Profile
MSG
 
 
Posted: 28 May 2004 04:37 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

That’s not sorting by category, though.  That’s displaying groups of categories.  For sorting you have to have a single thing against which to sort each entry.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 28 May 2004 04:40 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33269
Joined  05-14-2004

Mmm, my wording may be off - but if you look at the example output you’ll see what I mean? =)

 Signature 
Profile
MSG
 
 
Posted: 03 June 2004 08:42 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  217
Joined  11-04-2002

I second that request, I’d very much love this feature as well, exactly as LisaJill described it. smile

 Signature 

stillburning.com | fever of fate

Profile
 
 
Posted: 10 January 2005 08:03 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  831
Joined  04-17-2002

I’m adding my belated voice to this request. It doesn’t seem to have been added to latest version. The best way I think (if possible) would be to add a sortby=“cat_order” parameter so that the order of entries reflects the custom order (if any) set in categories management. This is an important feature for me and would enable content to be served in an exact order, much like a book. In my own project, the content should closely mimic a book with chapters and sub-chapters. It doesn’t work if, when you publish a new section in a chapter, it is displayed away from other related sections because there is no order by category feature.

 Signature 

antipodean.org | uptheduff.org

Profile
 
 
Posted: 08 September 2005 11:32 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
RankRank
Total Posts:  111
Joined  06-05-2003

Ditto

Profile
 
 
Posted: 09 September 2005 11:12 AM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-22-2005

My next plugin is a new catagory lister. It will work about like this:

1) it should duplicate the catagory order per weblog
2) There will be a linear and nested order switch, nested will be handled different
2a) Nesting will NOT use unordered list, it will however provide a “Nesting Level” that can then be applied through style sheets.
3) Custom Listing order will allow user to order catagories and even nest them however you like regardless of how they are listed in your control panel
4) Comment count will be incorporated with the plugin automatically
5) Counts in nested catagories will be available
6) Top level count will be Top level comments + aggrigate of sub catagories
7) Top level count Only for top level, no aggrigate (option)
8) Show or not show empty catagories
9) Rank Catagories (Hottest to coolest) (no nesting)
10) Rank Catagories (Hottest to coolest) with psuedo nesting
11) Ability to combine weblogs (order, nest, rank, “p"rank)
12) Limiting functions, date functions.

More maybe ...

Expected usage:

{exp:cat2 weblog="weblog1|weblog3" nest="1" count="single|double" rank="0" order="DESC" specific_order="default"}
<div class="cat2-{nl}"><a href="{path}">{catagory} ( {count} ) {last_date}</a></div>
{/exp:cat2}


Notice that “{nl}” is a nesting level and controlled directly by CSS. Since there are no “UL” arrangement and layout of the list will be greatly enhanced and easily controlled with 4 or 5 CSS class defs.

Expected output:

—- Style One—-
catagory one (100)  <—- Note: 82 posts in this catagory + 18 in this main catagory
...catagory oneA (50)
...catagory oneB (10)  <—- Note: 2 post in this catagory + 8 posts in the subs
......catagory oneA (4)
......catagory oneA (4)
...catagory oneC (22)
Catagory two (25)

—- Style Two—-
catagory one ( 18 / 82 )  <—- Note: 82 posts in this catagory + 18 in this main catagory
...catagory oneA (50)
...catagory oneB ( 2 / 8)  <—- Note: 2 post in this catagory + 8 posts in the subs
......catagory oneB A (4)
......catagory oneB B (4)
...catagory oneC (22)
Catagory two (25)

—- Ranked (pseudo nesting)—-
Catagory One - ONE A (50)
Catagory Two (25)
Catagory One - ONE C (22)
Catagory ONE (18)
Catagory One - ONE B -  A (4)
Catagory One - ONE B -  B (4)
Catagory One - ONE B (2)

Style:
Nest Level 1
Nest Level 2
Nest Level 3

The cool thing here is the margin control will be a lot easier and it will have the advantage of easier cross platform compatibility with Mozilla and IE. (Does anyone esle see a prolem with list and CSS in IE? or Vice Versa?) Eliminating the list use allows for easier formatting.

This is putting me back to my dev days… And to think, I used to get paid for this.

-JB

 Signature 

{sig name=“Jeff /“The Mage/” Barsky ” /}

Profile
 
 
Posted: 09 September 2005 12:45 PM   [ Ignore ]   [ # 9 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

Cool…can’t wait to try it out when you’re ready!!!

Profile
 
 
Posted: 09 September 2005 01:01 PM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-22-2005

This one will be a bit more complex than the Bloger Listing Plugin… I am taking a break from that one (done for the most part and hope to see it on the plugin list soon) and will start working on that one on Monday

 Signature 

{sig name=“Jeff /“The Mage/” Barsky ” /}

Profile
 
 
Posted: 09 September 2005 02:22 PM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33269
Joined  05-14-2004

Will there be the ability to use list, in some way?  I like nested lists as they’re semantically correct and that makes me happy, but I like the other things you’re going to include.

 Signature 
Profile
MSG
 
 
Posted: 09 September 2005 03:06 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-22-2005

Here is the thing, you want to use lists, be my guest, you can do it through the nesting level. I guess I could have that as an option, not hard.

The best thing about the nesting levels is that you can control the margins on the nesting easier than through lists.

Early on I was setting up my templates and noticed that IE and FireFox were rendering the list very differently, got frustrated with that and dumped the list for another method. It was the margins that were the hang up. So, to be more consistant I would out a “Nesting Level” and that solved the issue.

so basically I have CSS like this

.nl-1 { margin-left: 5px;}
.nl-2 { margin-left: 7px;}
.nl-3 { margin-left: 10px;}
.nl-4 { margin-left: 14px;}

This give an interesting effect and very easy to control.

I like lists too, but in many cases, they are such a pain.

 Signature 

{sig name=“Jeff /“The Mage/” Barsky ” /}

Profile
 
 
Posted: 09 September 2005 03:15 PM   [ Ignore ]   [ # 13 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33269
Joined  05-14-2004

I don’t really understand how that’s easier: you can modify semantically correct lists in CSS however you want…..  IE is a little different with its margins, but I’ve never had a problem getting lists to look acceptable in all modern browsers (that I could test on), including IE.

Anyway, I don’t have a really innate need for this plugin; my original feature requests was for my linklist which is now handled in a module specifically designed for it.  Still, this sounds like an amazing amount of control over the category lists so I look forward to using it. =)

 Signature 
Profile
MSG
 
 
Posted: 09 September 2005 03:20 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-22-2005

Here is a bug in CSS you may find interesting…

Take an image and align it to the left:
Put a list next to it… Watch what happens…

<img src="#" height="50" width="50" align="left">
<
ul>
<
li>Something</li>
<
li>Something</li>
<
ul>
<
li>Something</li>
<
li>Something</li>
</
ul>
<
li>Something</li>
<
li>Something</li>
</
ul>

Should break from browser to browser.

 Signature 

{sig name=“Jeff /“The Mage/” Barsky ” /}

Profile
 
 
Posted: 09 September 2005 03:24 PM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  831
Joined  04-17-2002

I’m VERY interested in this plugin. see my post above, Jan.10.

I have a project on which I could test it as soon as something is available if you’re looking for testers. Let me know.

 Signature 

antipodean.org | uptheduff.org

Profile
 
 
Posted: 09 September 2005 03:29 PM   [ Ignore ]   [ # 16 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33269
Joined  05-14-2004

align= is deprecated; I use it on my site out of sheer laziness and a complete ignorance of how to use floats properly…..  I’m sure there is a fully compliant css workaround for that issue.  Still, I don’t think it’s a great reason to stop everyone from using lists with what looks like it will be an amazing plugin. =)

I’m actually totally un-interested in CSS bugs, I’m have far more pressing issues to deal with, like memorizing Chaucer. wink

 Signature 
Profile
MSG
 
 
Posted: 09 September 2005 03:39 PM   [ Ignore ]   [ # 17 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-22-2005
Tim Griffiths - 09 September 2005 03:24 PM

I’m VERY interested in this plugin. see my post above, Jan.10.

I have a project on which I could test it as soon as something is available if you’re looking for testers. Let me know.

Tim, I certainly will. Lets see how my other plugin goes over as well (Blogger Lister, posted yesterday, not released yet I think) and if it is cool, we make more.

This is taking me back to the old school dev stuff. Been programming since 1979 (Altair 8800 believe it or not) but have been out of it for a few.. burn out. Would love to get back into real development management though, but this will get me sharpened up, even though I never bothered with PHP before.

THIS IS STRICTLY AN OPINION <Said with a grin>:

I am not sure why anyone would bother with PHP when there is PERL around. It is more flexable and more elegant, more secure and more powerful. Oh well, we all have our crosses to bare, I wil learn PHP (PERL AND C Hybred that is it) and do what I must.

END OF OPINION:

OK, so now everyone knows I am a pompus pain in the butt. I am just old school, so all you youngsters just forgive this old fart his set in his ways attitude. After all, I worked on the IETF on the HTML 2.0 spec, and the CSS working spec, worked on the CGI spec, developed the Streaming Packet Protocol found in those internet ready cell phones, and streaming ad insertion technology, so I may not know everything, but I know a few things… There I have had my rant ... I feel much better thank you.

There, and I have had my say… Back to work

 Signature 

{sig name=“Jeff /“The Mage/” Barsky ” /}

Profile
 
 
Posted: 09 September 2005 03:41 PM   [ Ignore ]   [ # 18 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-22-2005

Lisa, Float it and align it through CSS, same results, IE puts the bullets under (or over) the image… opps… not nice.

<div --- float left --- >
<
img src="#" height="50" width="50" align="left">
</
div>
<
div>
<
ul>
<
li>Something</li>
<
li>Something</li>
<
ul>
<
li>Something</li>
<
li>Something</li>
</
ul>
<
li>Something</li>
<
li>Something</li>
</
ul>
</
div>

Same diff…

-JB

 Signature 

{sig name=“Jeff /“The Mage/” Barsky ” /}

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66386 Total Logged-in Users: 57
Total Topics: 84710 Total Anonymous Users: 10
Total Replies: 454676 Total Guests: 193
Total Posts: 539386    
Members ( View Memberlist )