Extension talk:RelatedArticles

Latest comment: 1 month ago by 2804:7F0:9041:EAE2:A971:6685:6E91:BB5F in topic MW 1.41 with SMW 4.2 and CirrusSearch

How does this extension determine Related pages?

Any objections to reading web team driving new development in this extension?

edit

Given 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)Reply

Add extension.json

edit

Please add this file for using described method.

wfLoadExtension( 'RelatedArticles' );

--UksusoFF (talk) 16:11, 11 June 2016 (UTC)Reply

CustomData

edit

After installing extension get error:

RelatedArticles/RelatedArticles.class.php: CustomData extension is not properly installed.

But this not described in Installation section. That right?

--UksusoFF (talk) 16:15, 11 June 2016 (UTC)Reply

CirrusSearch not working

edit

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

Benhinc (talk) 18:11, 27 December 2016 (UTC)Reply

Configuration like in wikipedia

edit

How to configure like on the wikipedia pages (related articles at the footer)?

Johnywhy (talk) 20:02, 23 April 2018 (UTC)Reply

Permission Error on extensions.json

edit

MediaWiki 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)Reply

Request: Relate by Topic-Tag

edit

Eg, 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

edit

Hi, 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.

edit

E.g. we want 5 article link blocks instead of default 3. --Zoglun (talk) 06:48, 30 December 2018 (UTC)Reply

A: You can add the following line to your LocalSettings.php - $wgRelatedArticlesCardLimit= 5; --64.251.40.243 14:00, 8 January 2019 (UTC)Reply

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

edit

In 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)Reply

I have this problem too

Please help--Sokote zaman (talk) 14:11, 17 August 2021 (UTC)Reply

Change location

edit

How 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)Reply

edit

I 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 :-)

Igorabsorto (talk)

does not work

edit

What 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)Reply

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

Doesn't work for me either on 1.35 InnerCitadel (talk) 00:51, 30 April 2022 (UTC)Reply

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

@innercitadel thanks but where do you make the change(s)? Cozbaldwin (talk) 21:58, 30 April 2022 (UTC)Reply

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

Placeholder Image?

edit

Any 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)Reply

How does morelike work?

edit

Is 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)Reply

Disambiguation page is being suggested

edit

As 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)Reply

Update TRANSLATE tag

edit

For l10n I need help update the <translate> tag and paragraph marks.--吾为天歌 (talk) 06:22, 27 October 2024 (UTC)Reply

MW 1.41 with SMW 4.2 and CirrusSearch

edit

RelatedArticles 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)Reply

Return to "RelatedArticles" page.