Topic on Extension talk:DynamicPageList (Wikimedia)

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

12
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:

<dynamicpagelist>

category=Category1

category=Category2

ordermethod=sortkey

order=ascending

mode=gallery

</dynamicpagelist>


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.

InnerCitadel (talkcontribs)

I am using the latest version but have the same error "File not Found" when make a gallery for pages not in the File namespace. I have PageImages installed and working (e.g. it works for popups). Are there any other steps not documented in the readme to get this working? Thank you.

Bawolff (talkcontribs)

no, it should just work.

Do the pages images appropriately appear in Special:PagesWithProp ?

InnerCitadel (talkcontribs)
Bawolff (talkcontribs)

huh, well that's weird. Your sure you have the latest version of (the wikimedia variant of) DPL?

I guess i'll have to test on the weekend to see if the feature in dpl broke.

Bawolff (talkcontribs)

looking at special:version - your copy of DPL is too old (feature was introduced in december 2019 your version is from november 2019). Try upgrading your copy of dpl.

InnerCitadel (talkcontribs)

Ah thank you. I am still using Mediawiki 1.34 (waiting for the full release of 1.35), and the extension distributor linked me to the previous release of DPL (1_34). I tried installing DPL REL1_35 on mediawiki 1.34, but the gallery mode doesn't work, I get an internal error message: [ed47be08e7ac059aea9d4905] 2020-08-26 05:56:18: Fatal exception of type "Error" I presume it needs 1.35 to work?

Bawolff (talkcontribs)
InnerCitadel (talkcontribs)

The halfway version you linked works on version 1.34. Thank you so much, I really appreciate it. (The proper error message on 1.34 using the latest version by the way was DynamicPageListHooks.php: Class 'PageImages\PageImages' not found)

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