Difference between revisions of "Issue:Is it possible to restrict lists by date like: lastedit older than 3 months"

From FollowTheScore
Jump to: navigation, search
(New page: {{Issue |Type = Change Request |Extension = DPL |Description = request of filtering option to show e.g. only lastedit that are older than 3 months |Status = open }} == ...)
 
 
Line 14: Line 14:
  
 
== Reply ==
 
== Reply ==
 +
 +
To show the most recent updates of ''Issues'', for example, you can do something like this:
 +
 +
<pre><nowiki>
 +
{{#dpl:
 +
|namespace=Issue
 +
|addeditdate=true
 +
|ordermethod=lastedit
 +
|order=descending
 +
|count=20
 +
}}
 +
</nowiki></pre>
 +
------------------------
 +
You will get the following result:
 +
{{#dpl:
 +
|namespace=Issue
 +
|addeditdate=true
 +
|ordermethod=lastedit
 +
|order=descending
 +
|count=20
 +
}}
 +
----------
 +
 +
In a similar way you can show those Issues which have not been updated for a long time:
 +
 +
<pre><nowiki>
 +
{{#dpl:
 +
|namespace=Issue
 +
|addeditdate=true
 +
|ordermethod=lastedit
 +
|count=20
 +
}}
 +
</nowiki></pre>
 +
------------------------
 +
You will get the following result:
 +
{{#dpl:
 +
|namespace=Issue
 +
|addeditdate=true
 +
|ordermethod=lastedit
 +
|count=20
 +
}}
 +
 +
:[[User:Gero|Gero]] 06:41, 12 May 2009 (UTC)

Latest revision as of 08:41, 12 May 2009

Description: request of filtering option to show e.g. only lastedit that are older than 3 months
Extension / Version: DPL   /   {{{Version}}}
Type / Status: Change Request   /   open

Problem

I do have many categories and many articles in those categories. As I want to filter my lists by age to show pages that are getting old, I want to filter these lists to show only those pages that haven't been updated for a while.

Is this possible or could such a functionality be implemented? Thanks a lot for this great extension and your support!!!


Reply

To show the most recent updates of Issues, for example, you can do something like this:

{{#dpl:
 |namespace=Issue
 |addeditdate=true
 |ordermethod=lastedit
 |order=descending
 |count=20
}}

You will get the following result:


In a similar way you can show those Issues which have not been updated for a long time:

{{#dpl:
 |namespace=Issue
 |addeditdate=true
 |ordermethod=lastedit
 |count=20
}}

You will get the following result:

Gero 06:41, 12 May 2009 (UTC)