Forum OpenACS Q&A: Response to Globalization

Collapse
13: Response to Globalization (response to 1)
Posted by Don Baccus on
The DG provides one interesting feature that I don't think was mentioned above. We distinguish between publisher-added "navigational" text and user-added content (a couple of our custom packages support language tagging of content).
Internally the GP system does the same. Currently content's exposed to the user based on their language choice, but it would be possible to embed French content pages in a page with English navtools, images, eye-candy etc.
In a few cases, we bypass the TRN tags and use language-specific ADPs, switching the target of ad_return_template based on the user's setting. This is useful for pages containing HTML forms that we don't expect to change much.
We're not doing this at GP. However we are giving each National Greenpeace organization (which are separate legal and financial entities than the International umbrella org) the ability to customize each and every template in the system. We wrote a slightly modified version of ad_return_template that first looks for a customized template for the national subsite we're visiting. If it doesn't find it, the default template is returned. The web editors just upload the custom template to the right place and it's found automatically. It's a bit fragile but it fits their needs and budget.

This is tied to a GP-specific "homepage" package which is mounted for each of the national organizations that are participating. So it's not useful in the general context of OpenACS 4. However it's given me ideas for implementing similar functionality bsaed on acs-subsite mount-points. Currently it's easy to change the look-and-feel of a subsite via the master template, which lets you specify a CSS stylesheet, of course. But beyond that we have no mechanism to customize one subsite's look and feel, and this gives us one.

It's a bit off-topic but in Greenpeace's case the need is driven by the nature of the organization - pne umbrella international and individual national orgs each with their own opinion of what their website should look like. This is probably not unusual in the world of international NGOs so vaguely relates to "globalization".