Difference between revisions of "Issue:Respect hidden categories"

From FollowTheScore
Jump to: navigation, search
(response)
 
Line 33: Line 33:
  
 
[[User:Gero|Gero]] 16:24, 29 September 2009 (UTC)
 
[[User:Gero|Gero]] 16:24, 29 September 2009 (UTC)
 +
 +
: Thanks Gero. I am not proposing to hide the ''articles'' that are tagged with hidden categories. I am talking about hiding the ''categories'' themselves.  For example:
 +
 +
<pre>
 +
<dpl>
 +
namespace = Category
 +
hiddencategories = include
 +
</dpl>
 +
</pre>
 +
 +
:would list all category pages on the wiki, but:
 +
 +
<pre>
 +
<dpl>
 +
namespace = Category
 +
hiddencategories = exclude
 +
</dpl>
 +
</pre>
 +
 +
:would list all categories except the hidden ones. The most important example is this one:
 +
 +
<pre>
 +
<dpl>
 +
category=Products
 +
ordermethod=category,titlewithoutnamespace
 +
headingmode=H3
 +
</dpl>
 +
</pre>
 +
 +
: which currently makes an H3 section for every subcategory of Products, including the hidden ones.  If you add <code>hiddencategories=exclude</code>, then no H3 sections would be created for hidden subcategories. Does this make more sense? [[User:Maiden taiwan|Maiden taiwan]] 16:56, 29 September 2009 (UTC)

Latest revision as of 17:56, 29 September 2009

Description: DPL should suppress hidden categories from category displays, such as ordermethod=category,titlewithoutnamespace
Extension / Version: DPL   /   1.8.8
Type / Status: Change Request   /   open

Problem

Please provide an option to make DPL respect hidden categories. Any feature that would display a list of categories would omit the hidden ones. For example:

<dpl>
...
ordermethod = category,titlewithoutnamespace
showhiddencategories = false                -- NEW KEYWORD
</dpl>


Reply

Maybe I could add something like hiddencategories = include (=default) / exclude / only.

But I do not understand how the selection should work. If you select by a category then you should know beforehand if the cat is hidden or not .. If you do not select by a category you may or my not get pages that are assigned to hidden categories.

But probably you have im mind that it should be a display option only? In this case: what should one do with a page that is ONLY part of a hidden category? What contents should the built-in variables %CATNAMES% and %CATLIST% have?

I suggest that you create an example here and describe the desired behaviour in detail.

Gero 16:24, 29 September 2009 (UTC)

Thanks Gero. I am not proposing to hide the articles that are tagged with hidden categories. I am talking about hiding the categories themselves. For example:
<dpl>
namespace = Category
hiddencategories = include
</dpl>
would list all category pages on the wiki, but:
<dpl>
namespace = Category
hiddencategories = exclude
</dpl>
would list all categories except the hidden ones. The most important example is this one:
<dpl>
category=Products
ordermethod=category,titlewithoutnamespace
headingmode=H3
</dpl>
which currently makes an H3 section for every subcategory of Products, including the hidden ones. If you add hiddencategories=exclude, then no H3 sections would be created for hidden subcategories. Does this make more sense? Maiden taiwan 16:56, 29 September 2009 (UTC)