Forum OpenACS Q&A: Generating a navigation bar

Request notifications

Collapse
Posted by Ann T on
Hello!

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?

Ann

Collapse
Posted by Iuri Sampaio on
What about granting read permission to the public. Have you tried?
I
Collapse
Posted by Ann T on
I have granted read permission on the main site to the public. This displays the Applications and subsites view to the public and on the navbar there is only an option to log in.
Collapse
Posted by Antonio Pisano on
Dear Ann,

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?

Antonio

Collapse
Posted by Ann T on
Hello!

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.

Ann

Collapse
Posted by Monika Andergassen on
Hi Ann,

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?

Cheers, Monika

Collapse
Posted by Monika Andergassen on
PS: the theme is available in the theme chooser if you have the theme "openacs-bootstrap3-theme" installed.
Collapse
Posted by Ann T on
Hello!

I have filled out all of the Navigation Tab parameters, users, members and admin.

Ann

Collapse
Posted by Monika Andergassen on
Could you provide some more information? Such as, which theme you are using; if you have tried with the theme mentioned above; the current code snippets in each parameter,..
The menu items for the users do not have to be repeated in the members and admin parameters.
Collapse
Posted by Iuri Sampaio on
Monika,
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

You might want to create your own theme, based on openacs-default-theme. Then you add a mixture TCL (i.e. categories pkg) and javascript, bootstrap, and CSS... the creativity is limitless.

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.
Best wishes,
I

Collapse
Posted by Ann T on
Hello!

The mistake was purely my own. I must have deleted something from the html that was provided. I managed to fix it by undoing some of my changes in the resources folder