Forum OpenACS Q&A: Generating a navigation bar
I am trying to create a navigation bar to the website, with my current settings the members and the users can see the navigation bar but people who aren't either of those can't do that.
I would like to have them see the menu as well. Is this a fault of the permissions or in the site parameters in general?
if one uses the context bar provided by e.g. https://openacs.org/api-doc/proc-view?proc=ad_context_bar&source_p=1, no permission checks are executed, the site nodes are just visited for the links to be constructed.
An example of such bar is this very forum entry, where as you can see even not logged in people can click on the top context bar up to the whole forum and the whole page.
Does this help?
I actually mean the navigation bar on the top. In this website it's the navigation bar which has About, Projects, Download and so on, on it.
Do you mean a navbar similar to the style of this OpenACS website? This one is solved as follows:
(1) In the subsite parameters, you have an AdminNavbarTabsList parameter, a MembersViewNavbarTabsList parameter and a UserNavbarTabsList parameter.
In the last one, you could fill in all the tabs which any user (also logged out) can see.
(2) The theme chosen for the subsite is the "OpenACS Bootstrap 3 Theme Tabbed (blue)"
Is this what you were searching for?
I have filled out all of the Navigation Tab parameters, users, members and admin.
The menu items for the users do not have to be repeated in the members and admin parameters.
A quick answer is to go to acs-subiste parameters (i.e. http://you-domain/shared/parameters )
Scroll down to Navigation Tabs and find the parameter "UserNavbarTabsList". You can add more items within it. The ones you would like to avoid you can add within "NoTabApplicationList"
A bit of context:
OpenACS website uses its own theme. Most of its code is available in the core already.
However, I don't remember myself browsing through these sources: the top navigation (i.e. blue header and logo) is not there yet.
You might want to start:
1. reading packages/openacs-default-theme/lib/plain-master.adp/tab-master.adp;
2. visiting acs-sbusite configurations. You can edit website there from there.
For example, mine is /packages/theme-zen/lib/lrn-master
3. visiting acs-subiste parameters http://you-domain/shared/parameters
Plus, you might use Xowiki pkg for that. Creating a new theme for Xowiki could be trickier than the solution above. Gustaf could describe it better. https://openacs.org/xowiki/xowiki
I don't know if I had answered your question.