Wikia

Community Central

Admin Forum:Function that displays blog posts by age?

Talk0
93,745pages on
this wiki

This Forum has been archived

Forums: Admin Central Index Technical Help Function that displays blog posts by age?
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 595 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


Is there a function for blog posts that can display posts by age similar to Special:AncientPages for main space content? I don't see one but I'm wondering if there is a way to do this. BrokenSphere (Talk) 19:40, June 6, 2012 (UTC)

I don't think so. You could go to "Recent Blog Posts" and they will be displayed from new to old. Bomb 20:12, June 6, 2012 (UTC)

This seems to be capped at 500 and having the filter to show blog posts only and playing with the numbers in the URL to try and display more than doesn't seem to work. BrokenSphere (Talk) 16:19, June 7, 2012 (UTC)

You could just use a DPL statement in which you set namespace=500 and ordermethod=firstedit.

For instance, the following will give you the first ten uses of the blog namespace on this wiki:

<dpl>
namespace=500
ordermethod=firstedit
count=10
titlematch=%/%
allowcachedresults=true
</dpl>

Extension:DynamicPageList (DPL), version 2.02 : Error: Wrong 'namespace' parameter: '500'! Help: namespace= empty string (Main) | Admin_Central | Admin_Central_talk | Admin_Forum | Admin_Forum_talk | Admin_Support | Admin_Support_talk | Adoption | Adoption_talk | Archive | Archive_talk | Blog | Blog_talk | Board | Board_Thread | Category | Category_talk | Community_Central | Community_Central_talk | File | File_talk | Forum | Forum_talk | Help | Help_talk | Hub | Hub_talk | MediaWiki | MediaWiki_talk | Message_Wall | Message_Wall_Greeting | Module | Module_talk | Talk | Template | Template_talk | Thread | Topic | User | User_blog | User_blog_comment | User_talk.

The titlematch parameter does something nice 'n' fun. It looks for only those page titles which have a slash in them. This means it only looks for subpages, which conforms to the syntax for blog articles. If you didn't have this line, then it would throw up everything in the user blog namespace, including the base page. It's probably not that useful to have base page aterations, since this happens just by creating one's first blog post.

Additionally, if you wanted to hide the namespace — e.g., User blog: — you would just add the line shownamespace=false.

Incidentally, allowcachedresults=true is not specific to this problem, but just sort of a "best practices" thing with DPL. It reduces server load by just looking at the cached results. Since you're talking about ancient blog posts anyway, it's unlikely they'll be any different in the cache than they are "live", so you might as well reduce server load where possible. czechout@Wikia    fly tardis  <span style="">23:25: Wed 13 Jun 2012 

Around Wikia's network

Random Wiki