Forum OpenACS Q&A: Re: OpenACS forums

Collapse
6: Re: OpenACS forums (response to 5)
Posted by Jeff Davis on
the property name for the context bar is now context and should be passed as a list of lists (same format as for the ad_context_bar call). Passing context as an html fragment works for now but is deprecated and should go away.

The reason for this is that we want to allow deisgners to present the context bar in different ways by changing the sitewide master and passing html fragments prevents doing this.

Here is an example:

set context [list [list "search?q=foo" "search"] "results"]
and in the .adp you would have
<property name="context">@context@</property>

One tricky thing with this is that hardcoded context in the .adp file should have quotes if it is anything other than a single word. eg:

<property name="context">"one result"</property>