Forum OpenACS Development: Customizing acs-templating/resources/forms & lists

Collapse
Posted by Frank Bergmann on
Hi!,

]po[ uses a number of additional templates for forms and lists in specific contexts, so there is little alternative to using special templates in acs-templating.

In order to avoid customizing here we'd need to be able to set a different directory for templating resources. Any idea on how to do this?

Cheers,
Frank

Concerning page-error.tcl and templating: With OpenACS 5.9, everything included via <include> can be customized in the theme package (configurable via /admin/configure) without extra parameters. On OpenACS.org we have e.g.

openacs-bootstrap3-theme/resources/templates/packages/notifications/lib/notification-widget.adp
openacs-bootstrap3-theme/resources/templates/packages/notifications/lib/notification-widget.tcl
openacs-bootstrap3-theme/resources/templates/packages/acs-admin/www/apm/repository-index.adp
openacs-bootstrap3-theme/resources/templates/packages/acs-admin/www/apm/repository-channel-index.adp
openacs-bootstrap3-theme/resources/templates/packages/search/lib/navbar.tcl
openacs-bootstrap3-theme/resources/templates/packages/search/lib/navbar.adp
openacs-bootstrap3-theme/resources/templates/packages/forums/lib/search/search-form.tcl
openacs-bootstrap3-theme/resources/templates/packages/forums/lib/search/search-form.adp
openacs-bootstrap3-theme/resources/templates/packages/acs-subsite/lib/login.tcl
openacs-bootstrap3-theme/resources/templates/packages/acs-subsite/lib/login.adp
...

The ResourceDir is set via the theme package, and can be checked/temporarily altered in the parameters of the subsite.

Hi Gustaf,

just wanted to have a glance on the openacs-bootstrap3-theme.
Is it possible that it hasn't been made available yet in CVS?

> cvs server: cannot find module `openacs-bootstrap3-theme' - ignored

Thanks for looking into this.

Cheers
Klaus

Dear Klaus,

we have not released the theme yet. It needs some cleanup to be useful for everybody. In particular, it has to be demangled from some relicts from ancient times on the openacs.org site, like e.g. etp, It is just a matter of time and priorities until it has a state to be released to the public.

-g

Thanks Gustaf - let me know if I can be of any help in this process.