TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 351
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 310
  • Total: 311
  • @rjen

Article listing in category & sub-category

Started by ed_m, March 27, 2008, 09:03:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ed_m2

Not sure if this is already answered somewhere else, can't seem to invent a suitably descriptive search string  :uglystupid2:

On my existing (mambo) site I have Race Previews & Race Reports categories.

It would be neat in my TP version to have a Racing category with Previews & Reports as sub categories. Which I can... and have, and also have all 3 these as category links on my menu.

I was kind of expecting (not sure why) the Racing category to return articles within it's subcategories, which it doesn't.

Similarly I'd like to have all my article categories as sub cats of a top level cat (confusingly called 'articles') in order I can have other top level cats (i.e. 'News' or 'Results') which presumably results in the same problem when wanting to query the top level cat and see all contents below it.
(the multi level sub category problem aside, which i already spotted and searched for on here).

How easy would it be to hack this in ? i.e. bastardised pseudocode stylee


show_articles(top_cat)

CAT = top_cat

sub_cats = get_sub_cats(CAT)

if (exist(sub_cats))
{
     for i = 1 : length(sub_cats)
     {
        CAT = sub_cats(i)
        show_articles(CAT)
     }
}



sorry cant focus brain on that enough at the moment.. maybe you get the gist (maybe not).
probably need to be able to loop down through multiple sub cats


Could this be a feature request ? i.e. a tick box when configuring your categories to specify whether sub category articles are listed.


muchos gracias

ed

bloc

In TP 1.0 unlimited levels of subcategories exist, and you can list the first level of subcategories on top of the category listing.

ed_m2

hmmm. almost!

listing subcategories when viewing the top level cat was my fall back request ;-)

bloc

You can also set to list other categories, and other articles in same category. But anyway, I think its easier to discuss once the beta is out. ;)

ed_m2

Quote from: Bloc on March 27, 2008, 07:35:04 PM
But anyway, I think its easier to discuss once the beta is out. ;)

would that be the one with no release date ?  :P

but yeh yeh i'll make do for now dont you worry.

This website is proudly hosted on Crocweb Cloud Website Hosting.