Forum OpenACS Development: Multi word elements in the last element of context bar

I am running into an issue where the last element of the context bar is treated as multiple elements if it contains more than one word.

ie:

set page_title "Sales Team Members"
set context [list [list "/dashboard" "Dashboard"] $page_title]

<master> <property name="context">@context;noquote@</property>

The resut is

Main Site: Dashboard ::: Members

the repeated colons show where the other members were treated as list elements instead of a string.

Has anyone else noticed this? I don't recall this in preview versiouns.

I am using OpenACS 5.6 with the layout manager and openacs-default-theme (or a derivative but it happens with the default theme as well).

Hi Dave,

I know one cause of it, there may be more.

If one element of the context list is a localized string in the form "\#package.message_key\#" and it contains more than one word, then the result is what you noticed. To avoid it, the form [_ package.message_key] must be used.

Collapse
Posted by Dave Bauer on
Thanks! I can see how the missing message key could cause that, unfortunately, I am not using any message keys because this is a lazy custom development ...