Difference between revisions of "Issue:Headingmode - should not group over not searched categories"

From FollowTheScore
Jump to: navigation, search
(New page: {{Issue |Type = Change Request |Extension = DPL |Version = 1.7.5 |Description = Grouping with Headingmode should not include categories not matching the query parameter |...)
 
m
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
one or more articels match the following criteria:
 
one or more articels match the following criteria:
  
article 1
+
article 1
 
   - sub-categorie of a
 
   - sub-categorie of a
 
   - sub-categorie of b
 
   - sub-categorie of b
Line 18: Line 18:
  
 
I want to list all artikels in sub-categories of categorie-a. so i write:
 
I want to list all artikels in sub-categories of categorie-a. so i write:
<nowiki>
+
<pre><nowiki>
 
  <dpl>
 
  <dpl>
 
   categories  = *categorie-a
 
   categories  = *categorie-a
Line 24: Line 24:
 
   Headingmode = unordered
 
   Headingmode = unordered
 
  </dpl>
 
  </dpl>
</nowiki>
+
</nowiki></pre>
 +
 
 +
Results in
 +
  Group of sub-categorie of a
 +
    article 1
 +
  Group of sub-categorie of b
 +
    article 1
 +
  Group of sub-categorie of c
 +
    article 1
  
 
my result lists all articles which are in sub-categories of categorie-a but the "grouping" lists my artikel three times and groups over every sub-categorie (a, b and c) assigned in this article. That's not what I want.  
 
my result lists all articles which are in sub-categories of categorie-a but the "grouping" lists my artikel three times and groups over every sub-categorie (a, b and c) assigned in this article. That's not what I want.  

Latest revision as of 15:51, 15 April 2009

Description: Grouping with Headingmode should not include categories not matching the query parameter
Extension / Version: DPL   /   1.7.5
Type / Status: Change Request   /   open

Problem

I have the following setup

one or more articels match the following criteria:

article 1
 - sub-categorie of a
 - sub-categorie of b
 - sub-categorie of c

I want to list all artikels in sub-categories of categorie-a. so i write:

 <dpl>
  categories  = *categorie-a
  ordermode   = category,sortkey
  Headingmode = unordered
 </dpl>

Results in

 Group of sub-categorie of a
   article 1
 Group of sub-categorie of b
   article 1
 Group of sub-categorie of c
   article 1

my result lists all articles which are in sub-categories of categorie-a but the "grouping" lists my artikel three times and groups over every sub-categorie (a, b and c) assigned in this article. That's not what I want.

I want to see the article only once for sub-categorie of a.

There is no problem, when I used 2 sub-catogies of a and the article is then duplicated in the list. That's what I expected :)

One last expamle

My Setup:

article 1
  - sub-categorie1 of a
  - sub-categorie of b
  - sub-categorie of c
article 2
  - sub-categorie1 of a
  - sub-categorie2 of a
  - sub-categorie of c

My expected Result:

Group of sub-categorie1 of a
  article 1
  article 2
Group of sub-categorie2 of a
  article 2


Reply