Extension talk:DynamicPageList (Wikimedia)

Jump to navigation Jump to search

About this board


/Archive 01 - /Archive 02

Processing of tle element of the output list

Фил Вечеровский (talkcontribs)

May I processed the element of the output list? For example, show subpagenames for articles which is subpages by using SUBPAGENAME Magic Word.

Bawolff (talkcontribs)

Sorry, not with this version of the extension.

Reply to "Processing of tle element of the output list"

Is it possible for gallery mode to use the page image, rather than a file?

Blinkingline (talkcontribs)

When I try to create a Dynamic Page List of categories, I'd like to see the page images of the intersecting articles in a gallery format. Is this possible? I tried the following:








It creates a gallery as I would expect, but none of the tiles have images and each one says below it "File not Found"

Bawolff (talkcontribs)

i think gallery mode was created before pageimages were a thing. I think this would make a good feature request

Bawolff (talkcontribs)
Bawolff (talkcontribs)

Just FYI, User:BrandonXLF did this. If you download the most recent version, pageimages will be taken into account.

Reply to "Is it possible for gallery mode to use the page image, rather than a file?"
Gunnar.offel (talkcontribs)

Is there a way to define the defaults in local settings? That would be nice (for example) to define suppresserrors as true by default, so the expression is not needed every time. --Gunnar.offel (talk) 11:22, 30 October 2019 (UTC)

Bawolff (talkcontribs)


You can use templates (using the {{#tag:DynamicPageList|inside part of tag here...}} syntax) so you dont have to repeat stuff.

Reply to "define defaults"

New pages will not be shown until "edit and save without changes" of the page.

2 (talkcontribs)


I'm struggling with the extension.

The newest Pages will only be displayed when i edit the page (the page where the extension is used) and save it without changes.

Ciencia Al Poder (talkcontribs)

The page is cached. You can adjust $wgDLPMaxCacheTime in LocalSettings.php to reduce the time the page is cached, or use a parser function or extension tag that has the side effect of disabling caching, like {{CURRENTTIMESTAMP}} (I don't know if that one actually works depending on the type of caching you have)

Reply to "New pages will not be shown until "edit and save without changes" of the page."
Whatamidoing (WMF) (talkcontribs)
Bawolff (talkcontribs)

That's extension:DynamicPageList (third-party), not this one.

As an aside though, I think visual editor is in the wrong for assuming that parser functions (certainly parser funcs with a hash) cannot have duplicate arguments.

Whatamidoing (WMF) (talkcontribs)

Would you like to file a bug against VisualEditor to say that? (If I file it, it's going to sound a lot like "Ask Bawolff what he meant", so it'd probably be more efficient for you to file it.)

Bawolff (talkcontribs)

To be clear, I also think its a super minor bug, and not worth much fuss.

Bawolff (talkcontribs)


In core mediawiki you can use something like {{GENDER:USERNAME|user=male|user=female|user=neutral}} to demonstrate the same bug. Admittedly this is super contrived.

Reply to "Interaction with VisualEditor"

Ability to set gallery title from information of File

Jamiehutber (talkcontribs)

Currently gallery mode uses the file name as the caption. I'd love to be able to use details from the file upload and display this as the caption name.

I wonder if this is easy to implement? (talkcontribs)

Same question.

Bawolff (talkcontribs)

I guess it could get that info from the same place as extension:MultimediaViewer does (aka via extension:CommonsMetadata or structured data on commons). Certainly not impossible to implement, although i'm not sure if there is anyone interested in doing the work.

Reply to "Ability to set gallery title from information of File"
Nliz77 (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 "Wow"
Alexandroslee (talkcontribs)

Can't find intersection.php ?

Ciencia Al Poder (talkcontribs)
Alexandroslee (talkcontribs)

Yes ! Thank's a lot, I got it!

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"