TinyPortal
Development => Support => Topic started by: ed_m2 on March 27, 2008, 09:03:39 AM
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
In TP 1.0 unlimited levels of subcategories exist, and you can list the first level of subcategories on top of the category listing.
hmmm. almost!
listing subcategories when viewing the top level cat was my fall back request ;-)
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. ;)
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.