SemanticMediaWiki / SemanticBreadcrumbLinks

Provides in-page navigation by building breadcrumb links from an attributive property filter.
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Breadcrumb_Links
Other
16 stars 5 forks source link

Breadcrumbs do not get generated #43

Closed john-dederer closed 6 years ago

john-dederer commented 6 years ago

Setup and configuration

Issue

I am following the installation guide from the repo, but the breadcrumbs are not getting generated. The pages have the attribute Has parent page, but do not have the breadcrumbs to this parent. Installed by using composer. The only thing that is shown is the link to the parent page below the title but the breadcrumb is not generated.

I used a fresh install of mediawiki and also tried it on a fresh vm from bitnami mediawiki.

kghbln commented 6 years ago

Thanks for reporting! I can confirm this for sandbox too which is currently running MW 1.31.0 On this page I expect to get breadcrumbs showing that page. I also checked if I have not accidentally removed the links via some CSS but this is not the case.

kghbln commented 6 years ago

It seems that the setting made in "SemanticBreadcrumbLinks.php" is not respected. What happens if you add the following to "LocalSettings.php":

$egSBLPropertySearchPatternByNamespace = [
    NS_CATEGORY => [
        '_SUBC',
        '_SUBC',
        '_SUBC'
        ],
    SMW_NS_PROPERTY => [
        '_SUBP',
        '_SUBP',
        '_SUBP'
        ],
    NS_MAIN => [
        SBL_PROP_PARENTPAGE,
        SBL_PROP_PARENTPAGE,
        SBL_PROP_PARENTPAGE
        ],
    NS_HELP => [
        SBL_PROP_PARENTPAGE,
        SBL_PROP_PARENTPAGE,
        SBL_PROP_PARENTPAGE
        ]
    ];

After I have done this the breadcrumbs are back up in sandbox, e.g. for the examples I stated in my above examples.

kghbln commented 6 years ago

Hmm, now the crumbs are gone again. :|

john-dederer commented 6 years ago

I got it running using the mediawiki package from legoktm. The mediawiki version is 1.27 if this helps.

kghbln commented 6 years ago

Thanks for reporting back. I guess this has something to do with the MW version 1.27 vs 1.31. Let's wait for the developer to have a peep at this.

mwjames commented 6 years ago

Let's wait for the developer to have a peep at this.

refs #47