Forum OpenACS Q&A: ACS 4.x context navigation defaults -- why?

I don't understand why the default ACS context sensitive navigation starts with "Your Workspace". What is the logic behind that? A context sensitive cookie crumb navigation that doesn't start with the site root index is, well, highly confusing. Maybe someone smarter then me can clue me into what I'm missing.

In other words, why is it:

Your Workspace > Index

except when you're IN "Your Workspace", when suddenly it becomes:

Index > Your Workspace

Especially since it really should be index > your workspace the whole time.

"your workspace" = /pvt/home.adp is already always accessible in the default header. This is right -- your workspace SHOULD be in the header and NOT in the context sensitive navigation. Unless, of course, you go to "your workspace" or go to applications in "your workspace". In that case, then Your Workspace should be in the context sensitive navigation, except it should be like this:

index > your workspace > application-in-your-workspace

and not like this:

your workspace > index > application-in-your-workspace

I guess the logic was: Everything left of index is internet pages, everything right of index is intranet. That theory doesn't hold true for all apps... so I really don't understand...ACS rocks, and most of the choices seam to make sense. However, starting the context sensitive navigation with "your workspace" seams absolutely wrong to me, and I don't believe it should be the default context sensitive navigation.

Of course, I could be terribly wrong. In any case, does anyone have an example of how to remove that "feature" from the navigation-procs.tcl file?

Collapse
Posted by Jeff Davis on
Lars is changing this.  Everyone agrees it's a little
brain damaged in it's current incarnation.
https://openacs.org/forums/message-view?message_id=82635
Collapse
Posted by Eric Wolfram on
Ahhhh, great. So I'm NOT crazy :-P  I thought I was losing it. Anyway, on that thread above, lars said that all that was needed was to delete three lines from ad_context_bar and to add one to the default master. Since I and others are n00bs, it could be nice to post the solution to the issue here in the forums in the mean time. I got rid of the Your Workspace link by removing these three lines from /navigation-procs.tcl (and then restarting the server)

FROM NAVIGATION-PROCS
if {[ad_conn user_id] != 0 && ![string match /pvt/home* [ad_conn url]]} {
        lappend context [list "[ad_pvt_home]" "[ad_pvt_home_name]"]
    }

Now I'm wondering what Lars added to the default master. Perhaps he was just talking about adding the "my account" link to that file -- but I'm wondering if I'm going to find any issues because I removed those lines from ad_context without adding something special to default master...

In any case, thanks for the pointer!
Eric

Collapse
Posted by Jeff Davis on
taking them out should not impact anything other than the context bar stuff. Lars added something like the link we have in the aD persistent nav (i.e Logged In as NAME where NAME links to your workspace). The problem with simply taking it out of the context bar without adding it to sitewide master is that then there is no link you your workspace.
Collapse
Posted by Lars Pind on
Eric,

You're exactly on track. The fix is to remove those 3 lines, and add something to default-master.tcl/adp so it'll display the link to pvt/home somewhere to logged in people.

/Lars

Collapse
Posted by Don Baccus on
Can we make these changes to the 4.6 CVS branch so they'll show up in 4.6.2?  (too late for 4.6.1 ...)
Collapse
Posted by Lars Pind on
Done now.

Your Workspace is gone from the context bar, and is instead included in the default-master template in the top right corner.

/Lars