If sub-categories are created, these show up in the sub-menu beneath the horizontal Categories menu when the main category is selected (in the default Drigg theme), but do not show up in the Categories block.
The RSS feed for a category - from the Feed icons in the Categories block - includes the items listed in the main Category, but does not include any items listed in sub-categories of the selected Category.
If subcategories are to be implemented in Drigg, the ideal, would be to create RSS feeds (and obvious links for these) for each sub-category, as well as for primary categories; and also, to include all items in sub-categories of a primary category, in the RSS feed for that primary category.
Comments
Comment #1
mercmobily commentedHi,
coolclu3, can you have a look at this issue please?
Merc.
Comment #2
mercmobily commentedHi,
coolclu3, I think your bit is only:
"The RSS feed for a category - from the Feed icons in the Categories block - includes the items listed in the main Category, but does not include any items listed in sub-categories of the selected Category."
Can you please enrich the query for the RSS feed as well, in the same way?
I will deal with the block...
Merc.
Comment #3
coolclu3 commentedOkay Merc, I'll take care of this. I will deal with the block as well, just leave the bug to me...
Cheers
Comment #4
mercmobily commentedHi,
Coolclu3: I _love_ you. Seriously.
We will _have to_ forward port this to the Drupal 6 port. I will take care of it once you've sent the patch.
***Thank you**.
The bright side is that FriendList is very very very nearly released. Are you aware of that module? It's a Drupal revolution!
Merc.
Comment #5
mercmobily commentedHi,
Coolclu3, please also have a look at #315464: Items in subcategory included on the front page block but not on category page block. I marked it as duplicate, but I think it might be a little different... but the same problem.
Bye!
Merc.
Comment #6
coolclu3 commentedYep, I am aware of FriendList, I haven't got the chance to fully try it out though, but from the description it certainly looks interesting, AND...complex.
Right now, I'm setting up a website for my client (in Drupal of course) which will take a few more days :). But this patch will be available by ...next Monday I'd say. This should be a quick fix.
Just one question though. Am I gonna attach the patch here, for drigg-5.x-1.36 ? Or was I granted the CVS access before?
btw, I am now full time doing just Drupal stuff. Yes, Full-time. How cool is that? ;)
Comment #7
mercmobily commentedHi,
Really cool indeed :-D
You do have access to CVS, but it's better if you send it as a patch, because I need to forward-port it to DRUPAL-6...
Thank you!
Merc.
Comment #8
coolclu3 commentedDuplicate comment
Comment #9
coolclu3 commentedHi
Problem resolved!
But the block just displays all the categories /subcategories at the same level. That is, there is no hierachical order in the block.
I'm not too happy with this, but it seems making the RSS Categories block hierachical takes some more effort....
Merc, are you happy with the flat menu? If so, I'll send the patch. It's about 5,6 lines of code
Comment #10
mercmobily commentedHi,
you're a star coolclu3.
Is it possible to make it just an indented LI item?
Just wondering. I can just see the bug reports "the item list is flat"... ecc.
Bye,
Merc.
Comment #11
coolclu3 commentedFirst of all , the categories/subcategories on the RSS block are displayed ordered by (weight, creation time), like the main top menu, kind of.
Generating the whole properly indented RSS block menu would require a bit more hacking on the drigg_ui_sections() function when $print_rss_links == TRUE. This would be a simple and *separate* function that gets all the categories/subcategories.
And *VERY* likely, that a separate function drigg_ui_rss_sections() needs to be kinda 'forked' from drigg_ui_sections() (Then the $print_rss_links param should be removed, of course). This approach is also better in the sense that the top menu depends on the currently viewed category, whereas the RSS block is always *fixed*
This change will take time and unfortunately, I don't have enough time & attention to work on this right now coz i'm fully occupied with my 2 paid projects. I'll quickly post the patch for the code here in case someone's interested to get the proper menu
1. Making the RSS feed to read the items in subcates as well:
File drigg_ui.module, function drigg_ui_node_feed(), line 162:
Change
To
2. Getting the RSS block menu to have the subcategories as well (INCOMPLETE, see comment right above)
File drigg_ui.module, function drigg_ui_sections(), line ~602
Change
to
If you notice carefully the $print_rss_links logic in the drigg_ui_sections plays very minor role, and therefore there should be 2 functions, 1 for the main menu, and one for the RSS block. Here is the logic for the RSS block
Really sorry, I don't have time to deal with this, probably until next week....
Cheers,
Comment #12
mercmobily commentedHi,
Coolclu3, is it OK if I wait for the final patch?
At that point, Drigg D6 should be finished and (hopefully) tested. So, we can roll out the patch then.
Sounds like a plan?
merc.
Comment #13
coolclu3 commentedHi Merc,
Let's make it a plan. I'll update my situation in 1 week's time
Cheers
Comment #14
mercmobily commentedHi,
OK thanks!
Merc.
Comment #15
coolclu3 commentedHi Merc,
I'm dead busy trying to meet deadlines and all that, so right now I really don't have enough time to work on this. I'll try my best to hack this when I can get some time free from my projects.
Someone please lend a hand?
Cheers
Comment #16
mercmobily commentedHi,
I am stupidly_ busy with Opensocial.
It's 3:45AM here, and am still working on that.
Coolclu3, I think it's fine if you do it "whenever you can", really. Realistically, you're the bestest person for the patch, and people will just need to wait or offer a bounty.
Plus, Drigg _is_ still in code freeze. So...
Bye,
Merc.
Comment #17
ajayg commentedAre you considering #315464: Items in subcategory included on the front page block but not on category page block at all? It was marked as duplicate but the code above seems to address only RSS (This is from a quick glance I haven't actually tried the patch so could be wrong here)
Comment #18
mercmobily commentedHi,
Thanks for checking Ajayg.
Coolclu3, let us know. I am not paying _full_ attention to this issue, since I am immersed full-on into the FriendList/Activities/Opensocial part of Drupal at the moment (which will _obviously_ benefit Drigg... !)
Thanks for helping out right now guys.
Merc.
Comment #19
leeugene commentedhey guys,
does the code above work?
Comment #20
leeugene commentedyes it does
Comment #21
mercmobily commentedHi,
leeugene, are you able to test the code above and provide a proper patch?
Once you've done that, I will apply to the codebase.
A patch for the 6.x version would be _fantastic_!
Merc.