Extension talk:DynamicPageList (Wikimedia)

Jump to navigation Jump to search

About this board


/Archive 01 - /Archive 02

ReplicationWiki-fan (talkcontribs)

While the search form includes pages in sub-categories, DynamicPageList appears not to do so. Can this be changed?

Bawolff (talkcontribs)

Honestly, nobody is really working on this extension right now, so probably not.

In principle though, there are some complications from deepcat/etc being outside of the normal db, but probably nothing insurmountable.

Reply to "Include sub-categories"

Use of undefined constant __DIR__ - assumed -- ERROR

3 (talkcontribs)


what did I wrong ? I downloaded the extension and have it in to the intersection folder. After adding the load entry to the config file following Error occured:

Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /var/apache2/2.2/htdocs/mediawiki-1.18.1/extensions/intersection/DynamicPageList.php on line 51

Warning: include(__DIR__/DynamicPageList.i18n.php) [function.include]: failed to open stream: No such file or directory in /var/apache2/2.2/htdocs/mediawiki-1.18.1/includes/LocalisationCache.php on line 408

Warning: include() [function.include]: Failed opening '__DIR__/DynamicPageList.i18n.php' for inclusion (include_path='.:/var/php/5.2/pear') in /var/apache2/2.2/htdocs/mediawiki-1.18.1/includes/LocalisationCache.php on line 408

What should I do ?

Bawolff (talkcontribs)

Your version of PHP is too old. Update PHP (or use an older version of DynamicPageList, although you may have to go quite far back). (talkcontribs)

if ( !defined('__DIR__') ) define('__DIR__', dirname(__FILE__)); use this

Reply to "Use of undefined constant __DIR__ - assumed -- ERROR"

Installation into Mediawiki 1.27 (lts)

2 (talkcontribs)


the REL1.27 Branch doesn't support wfLoadExtension( 'intersection' );

you also have to use require_once "$IP/extensions/intersection/intersection.php";

unfortunately the "Installation" Section is using a template, so I'm not able to quickly edit this part


Ciencia Al Poder (talkcontribs)

I've updated the page to reflect that (talkcontribs)


I'm trying to show pages in category by alphabetic way, but because the pages names are in Hebrew, the "order=ascending" function doesn't work well. How can I modify it?


Reply to "Order ascending for other language"

"shownav" style ("next 100") navigation bar for list generated by DPL

TitusiMW (talkcontribs)

I would like to use DPL to generate a list of recently changed pages. List can run into 100s of entries. I would like to put a navigation bar like one that is automatically generated by Special:NewPages. I would like to generate links like (Newest) (Newer 100) (Older 100) (Oldest). Clicking on these links, DPL should generate a list of relevant set of pages. Can this be done? Can you show me how? Size of list is not predetermined.

Reply to ""shownav" style ("next 100") navigation bar for list generated by DPL"

Avoiding duplicate pages from dynamic lists

TitusiMW (talkcontribs)

I use duplicator extension to fork existing pages. Is there any way to ensure that only original page and not the duplicated pages gets listed in the dynamic page lists?

Reply to "Avoiding duplicate pages from dynamic lists" (talkcontribs)

It would be great if it was possible to have the ordermethod set at random (specially when the count is set to a small number) so as to present the reader with a different list of articles on each visit.

And I wonder if having several instances of this plugin in a page slow down the performance? I suppose it would depend on the number of categories designated and the number of articles belonging to each category but is there any best-practice available for maximum performance and functionality? (talkcontribs)

ya really

Reply to "Random ordermethod"
Tuxxic (talkcontribs)


I am using DynamicPageList with Translate extensions, and I wondered if I have the means to display only pages in the current language in my DPL ?

My pages are displayed like "Page name" - "Page name/en" - "Page name/fr"

Thanks in advance !

Tuxxic (talkcontribs)

OK I managed to get what I wanted by using the other DPL: Extension_talk:DynamicPageList_(third-party)

Then I wrote this, using parser functions I found here: ParserFunctions

Here is the script I used to do this:

{{#ifeq: {{#translation:}} | | 
 category = Category name
 | <DPL>
 category = Category name
 format=«ul»,<li>[[%TITLE%|{{#ifexist: Translations:%TITLE%/Page display title/en <!-- then -->|{{Translations:%TITLE%/Page display title/en}}<!-- else -->|%TITLE%}}]]\n</li>,,«/ul»

If someone needs help understanding this chunk of code, please feel free to ask :)

Reply to "Only display page in current language"
David.Mirth (talkcontribs)

Hello. Is there a possibility to make an intersection of pages that are in one category and their discussion pages are in another? Thanks

Jeblad (talkcontribs)
He7d3r (talkcontribs)

Looks like that won't help as the categories would need to be in the same page (not one in the article and the other on its talk page).

Jeblad (talkcontribs)

Sorry, didn't read the question! My bad! :D No I don't think you can do that with this extension. Jeblad (talk) 15:13, 6 October 2016 (UTC)

David.Mirth (talkcontribs)

that is the problem... might try it with pywikibot listpages (which would work somehow), but it wouldn't refresh, compared to DPL... We would like on our wiki to make a list of eg. anatomical pages marked as "wrong typography", but those technical categories are given by templates in the discussion pages, not to disturb the reader...

Reply to "Main NS/Discussion" (talkcontribs)

Just had an issue with DynamicPageList on page which was cached by native mediawiki file cache - it simply haven't displayed new pages matched to category filter.

Cache purge helped to get them in list.

Is there any way to solve this issue in native way without manual cache purge?

Reply to "File cache incompatibility"