Extension talk:RelatedArticles
How does this extension determine Related pages?
Any objections to reading web team driving new development in this extension?
editGiven this extension is currently unmaintained, the Reading/Web is interesting in take ownership of this and doing additional development inside it to create an API driven "related articles" panel at the bottom of articles. To begin with we will build this in the mobile beta and surface it as a desktop beta feature. I'm personally interesting in allowing editors to correct inaccurate automatic results using the related magic word.
Details and screenshots of the new feature on mobile, which has shown an increased engagment on our app can be found on phabricator. Jdlrobson (talk) 18:14, 24 September 2015 (UTC)
Add extension.json
editPlease add this file for using described method.
wfLoadExtension( 'RelatedArticles' );
CustomData
editAfter installing extension get error:
RelatedArticles/RelatedArticles.class.php: CustomData extension is not properly installed.
But this not described in Installation section. That right?
CirrusSearch not working
editI only see Related Pages when they are specified on the page itself. I have CirrusSearch installed and it works perfectly as the default search for my MediaWiki installation. However, enabling $wgRelatedArticlesUseCirrusSearch
seems to have no effect.
Configuration like in wikipedia
editHow to configure like on the wikipedia pages (related articles at the footer)?
+1
editPermission Error on extensions.json
editMediaWiki 1.30.0 returns error with the version of RelatedArticles that is available for default downnload as of this moment. The dev version of RelatedArticles from the GitHub repo does not have this error anymore. HTH --GravaT (talk) 20:35, 26 March 2018 (UTC)
Request: Relate by Topic-Tag
editEg, i'd like to create a tag, MyTag, and then relate several pages with {{#related:MyTag}}. Is that possible?
I'm guessing it could be done with a common page that they all point to, where the hub page is called "MyTag". Maybe could be a sub-category page.
We want to tag our articles (topic-tags, not revision-tags). And then display "Related Articles", based on those tags.
This article describes a method using SemanticWiki, https://clkoerner.com/2012/08/28/use-semantic-mediawiki-semantic-forms-to-create-a-folksonomy-for-tagging-related-pages/ but that seems a heavy solution, since we don't need any other SemanticWiki features. Would prefer a simpler method.
Can't use Categories, as we're already using Categories as Categories, for organizing and TOC. We consider Categories and Tags to be different concepts. That Folksonomy article agrees. Eg:
- Category is Fruit.
- Title is Oranges.
- Tags are citrus, segmented, juicy, vitamin C, cold prevention, breakfast
Or
- Category: Books
- Title: Cien Años de Soledad
- Tags: Spanish, surrealism, Colombia, magical realism, Latin American
Tags vs. Categories:
- Non-hierarchical: We use Category as a hierarchical organizing structure. We want articles to appear in only one Category in TOC, but articles can have multiple tags. Tags are non-hierarchical, and can apply across different Categories.
- Permissions: We want separate permissions for allowing users to add Tags and Categories to an article.
- Hidden: Tags should be hidden from Extension:CategoryTree. Tags should not be listed in any Special page, Transclude, or MagicWord that lists Categories.
Need Help on Additional Steps Guide
editHi, I've downloaded and install in extension folder with wfloadextension at locasettings.php, and the version page is showing the extension. And how do I actually show related articles in all pages as I thought the steps of using this extension is just steps mentioned above? Trying around and added the $wgRelatedArticlesFooterWhitelistedSkins = ['vector'] on localsettings.php but couldn't show related articles with the thumbnail on any pages. Thanks a lot for the help.
How to set number of displaced Related Articles?
editE.g. we want 5 article link blocks instead of default 3. --Zoglun (talk) 06:48, 30 December 2018 (UTC)
A: You can add the following line to your LocalSettings.php - $wgRelatedArticlesCardLimit= 5; --64.251.40.243 14:00, 8 January 2019 (UTC)
The source code to handle this is incorrect: includes/Hooks.php --> onResourceLoaderGetConfigVars
The correct source code is the following:
public static function onResourceLoaderGetConfigVars( &$vars ) {
$config = MediaWikiServices::getInstance()->getConfigFactory()
->makeConfig( 'RelatedArticles' );
$vars['wgRelatedArticlesLoggingBucketSize'] =
$config->get( 'RelatedArticlesLoggingBucketSize' );
$vars['wgRelatedArticlesEnabledBucketSize']
= $config->get( 'RelatedArticlesEnabledBucketSize' );
$vars['wgRelatedArticlesCardLimit']
= $config->get( 'RelatedArticlesCardLimit' );
$limit = $vars['wgRelatedArticlesCardLimit'];
if ( $limit < 1 || $limit > 20 ) {
throw new \RuntimeException(
'The value of wgRelatedArticlesCardLimit is not valid. It should be between 1 and 20.'
);
}
return true;
}
Change used Namespaces
editIn Description is written, that this extension only works with Articles in the main namespace. Is there any option to change this behavior?
In my case i use namespaces to avoid the use of multiple wikis, but with this reglementation the extension isn't useable. --Gunnar.offel (talk) 16:13, 4 December 2020 (UTC)
I have this problem too
Please help--Sokote zaman (talk) 14:11, 17 August 2021 (UTC)
Change location
editHow can I change the location of the presentation, instead of being at the bottom of the article? --رامي 4554 (talk) 18:19, 18 January 2021 (UTC)
RelatedArticles are not displayed in Main Page
editI believe the Related Articles are not displayed in the Main Page. At least they do not in 'Timeless'.
Since I think this is a feature it could be included in the configuration part where it lists all the conditions where the Related will be shown. It would save some debugging time :-)
does not work
editWhat should I do for this plugin to work I installed it over a month ago and it still doesn't show links. --41.254.71.83 16:28, 17 June 2021 (UTC)
Hi, this doesn't work for me either unless I put the magic code on a single page, manually. Could there be a conflict with some other extension? --Cozbaldwin (talk) 04:47, 20 April 2022 (UTC)
Doesn't work for me either on 1.35 InnerCitadel (talk) 00:51, 30 April 2022 (UTC)
It is now working after I changed the skin names to all be lowercase. E.g. "monobook" not "MonoBook." InnerCitadel (talk) 21:53, 30 April 2022 (UTC)
@innercitadel thanks but where do you make the change(s)? Cozbaldwin (talk) 21:58, 30 April 2022 (UTC)
- Did you add $wgRelatedArticlesUseCirrusSearch= true; in you LocalSettings.php ?
- Then a runJobs.php in command line could help Obliva (talk) 13:57, 5 May 2022 (UTC)
Placeholder Image?
editAny idea how to update a placeholder image that this extension uses for related articles that do not have images? Thank you! -- Joe Beaudoin Jr. Redux (talk) 18:47, 2 June 2024 (UTC)
How does morelike work?
editIs there any info anywhere how the morelike feature of CirrusSearch generates the similar articles suggestions? How does that algorithm work? Prototyperspective (talk) 18:10, 16 September 2024 (UTC)
Disambiguation page is being suggested
editAs per the documentation, disambiguation are being excluded from suggestions - as should be. However, on our wiki, a disambig page is being suggested.
See: https://yi.hamichlol.org.il/יאקאב_(ליד)
The first suggestion (from the right), namely https://yi.hamichlol.org.il/שירה is in fact a lowly disambiguation page.
What's the problem, and how can it be fixed?
Thanks! צמא לדעת (talk) 06:31, 19 September 2024 (UTC)
Update TRANSLATE tag
editFor l10n I need help update the <translate> tag and paragraph marks.--吾为天歌 (talk) 06:22, 27 October 2024 (UTC)
MW 1.41 with SMW 4.2 and CirrusSearch
editRelatedArticles does not appear, neither with tag nor with cirrussearch. I've already reindexed all the content, and nothing. No error message appears either. Does anyone suggest a solution? Thanks in advance 2804:7F0:9041:EAE2:A971:6685:6E91:BB5F 00:15, 1 November 2024 (UTC)