Extension talk:DynamicPageList (Wikimedia)

Jump to navigation Jump to search

About this board

Archives 

/Archive 01 - /Archive 02


Hide image dimensions in gallery mode?

1
Neilan (talkcontribs)

I'm using gallery mode with PageImages, and it's working great, I've hidden the file size, but under each image is the image's dimensions (i.e. "980 x 540") and I'm not seeing any obvious way to hide this. Is there a way to get gallery mode to show just the image and page title?

Reply to "Hide image dimensions in gallery mode?"
Bedtry (talkcontribs)

When i sort by


<DynamicPageList>

category             = xy

addfirstcategorydate = true

ordermethod          = created

</DynamicPageList>


It also displays the date, which can be useful but is there any way to hide that?

Bedtry (talkcontribs)

It then looks like this

  • 19. März 2021: xyz
Reply to "Hide dates"

Use of undefined constant __DIR__ - assumed -- ERROR

3
193.158.105.118 (talkcontribs)

Hi,

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).

124.29.220.32 (talkcontribs)

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

Reply to "Use of undefined constant __DIR__ - assumed -- ERROR"
Jan.Kamenicek (talkcontribs)

Not all pages belonging to a category are usually placed directly in this category, but many of them can often be found in some of its subcategories. Would it be possible for the DynamicPageList to list also pages from subcategories?

Reply to "Subcategories"

Sort by Popularity in MediaWiki 1.25

6
170.29.64.11 (talkcontribs)

Am I correct in understanding that the sort by popularity feature of DPL will not work after 1.25? $wgDisableCounters has been removed.

Nemo bis (talkcontribs)

Can you please file a bug asking to restore the feature (hit counters) via an extension? Then we can recommend installation of that extension together with this.

Bawolff (talkcontribs)

Yes you are correct. It will not work.

Kwprns (talkcontribs)

Has this been added back in? Can you sort by popularity so you only see the top 30 pages?

Bawolff (talkcontribs)

no. Patches welcome, but i dont think too many people use these two extensions together so its not a high priority.

Reply to "Sort by Popularity in MediaWiki 1.25"
88.169.254.205 (talkcontribs)

I need to find every articles which don't have categories.

i've tried to do things like category =_none_ , but nothing seems to work.

if someone has any idea ? Thanks

Bawolff (talkcontribs)

Cannot be done with this extension (best you can do is anything not in a specific category).

Use Special:UncategorizedPages instead.

209.23.179.98 (talkcontribs)

How do you sort by popularity? not restricted by date

Reply to "Articles without categories"
Gunnar.offel (talkcontribs)

I use many pages filtered by categories, that works, no problem there. What me suprises is that the scheme of cat-pages is not covered. Redirects will be shown in italic.

To make the behavior act same just a addition of

.mw-redirect {     font-style: italic; }

is needed.

Reply to "Redirects in Lists (italic)"

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?"

Error 500 on install. Details follow:

6
172.103.30.133 (talkcontribs)

Mediawiki 1.34

PHP Version: 7.3.6


I downloaded and installed DynamicPageList exactly as described, using wfLoadExtension( 'intersection' );, and get a 500 error immediately. PHP Error Log:

Fatal error: Uncaught Exception: Unable to open file /home/redacted/public_html/extensions/intersection/extension.json: filemtime(): stat failed for /home/redacted/public_html/extensions/intersection/extension.json in /home/redacted/public_html/includes/registration/ExtensionRegistry.php:136 Stack trace: #0 /home/redacted/public_html/includes/GlobalFunctions.php(52): ExtensionRegistry->queue('/home/mediawiki...') #1 /home/redacted/public_html/LocalSettings.php(134): wfLoadExtension('intersection') #2 /home/redacted/public_html/includes/Setup.php(124): require_once('/home/mediawiki...') #3 /home/redacted/public_html/includes/WebStart.php(81): require_once('/home/mediawiki...') #4 /home/redacted/public_html/index.php(41): require('/home/mediawiki...') #5 {main} thrown in /home/redacted/public_html/includes/registration/ExtensionRegistry.php on line 136

Can anyone point me in correct direction please? Thank you.

K894 (talkcontribs)

Figured it out. The installation instructions say:

wfLoadExtension( 'intersection' );


But to solve the problem, they need to say:

wfLoadExtension( 'Intersection' );


The difference is an upper-case I instead of lower-case i.

Ciencia Al Poder (talkcontribs)

Thanks for noticing the error. Docs fixed!

Bawolff (talkcontribs)

its lowercase i in the git repo, i think maybe it depends on how you download it

K894 (talkcontribs)

@Bawolff Thanks for the clarification. Should it be standard across either download? I can see that difference causing issues. Thanks for your work on this extension. It is exactly what I wanted!

K894 (talkcontribs)

@Bawolff I suggest standardization because Git directs people here for install instructions and the case difference may cause headaches.

Reply to "Error 500 on install. Details follow:"

Processing of tle element of the output list

2
Фил Вечеровский (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"