Closed TheBigGoldenEagle closed 7 months ago
Hi @TheBigGoldenEagle! Thanks for reporting that. Unfortunately I can't reproduce the problem that you are referring to on OJS 3.4.0.4
I have added a new Primary
Navigation Menu on the Site level, and I can see it on the site level without having to do anything more. Is it possible that you are trying to access your new Site Navigation Menu from within a specific context? What is the URL that you try to access?
Thank you for your response and trying it out. I fought for it for a week and then gave up and added a static menu to the header.tpl. That's the best approach for me as I want a consistent navigation menu across all the hosted journals. I'm closing this issue, Thank you
@TheBigGoldenEagle thanks. The best approach would be to make your installation work though. Did you create a new theme for that, or you overrided the core/header template?
If so you may have issues on upgrading your installation, or unexpected behavior on the ui part.
If I understand correctly you want all your journals to have the same primary menu. The site navigation menu toolset manages the 'site' level and is not designed to make the a navigation menu be displayed across the installation's journals.
We could work on making a db data workaround for your case, though, and still use the build-in capabilities of navigation menus, without having any problems regarding upgrading your installation.
Thank you again for getting back to me. yes, I had altered the bootstrap theme and now to demonstrate the issue I have switched to the default theme that I have not modified its source code (except for adding a custom.less for styling). The URL is https://www.gsijournals.com/ and I have attached two screenshots of the primary menu setting that I expect to see on the site level.
@TheBigGoldenEagle I think I know what the problem is here - you are trying to display some context related Menu Items at the Site level, something that will not work like that.
If you check the code here you can see that each navigatiuonMenuItem
has a _isDisplayed
property that can be calculated. For specific types like NMI_TYPE_CURRENT
and NMI_TYPE_ARCHIVES
, this property will be set to false
if not in the context of a specific Journal.
That is the reason why you don't see something there.
It worked thank you very much!
Describe the bug On a multi-journal site, the primary navigation menu displays without issue when a journal is selected but it does not display on site level
To Reproduce Steps to reproduce the behavior:
What application are you using? OJS 3.4.0.4
Additional information I have tried almost all available themes but no matter what I do, the primary navigation menu will not display