[opencms-dev] Dynamic functions in OpenCms 8.9

Alessandro Magnolo alessandro.magnolo at gmail.com
Wed Oct 23 17:07:21 CEST 2013


I am having issues using dynamic functions in OpenCms 8.9.

1) The module functions (created in /system/modules/[module
name]/functions) that used to be draggable until version 8.5, seem to
be no longer visible (even when the property search.exclude is not set
or set to false). The only draggable functions are the ones created in
/sites/default/[anything]/.content/function/.
So, which is now the way to create functions in a module that are
readily usable by content editors?


2) At OpenCms days I think that I remember Andreas Zahner creating a
"Clone a module" page using drag&drop, but I wasn't able to reproduce
it (again, other than creating a new function and manually type the
full jsp path). Anyone remembers how he did it?


3) In the bootstrap template demo, there is an example of a module
function used in a page: the page
/demo/en/world-of-flowers/news-article/ uses
/system/modules/com.alkacon.bootstrap.formatters/functions/news-side.xml
.
How is that obtained, other than manually editing the containerpage
from the workplace?


4) One possible workaround is to create a "Function detail page" in
the sitemap, but that doesn't work with the bootstrap template. I
tried to set the container.info property on the template jsp, but
whenever a function detail page is dragged, I get this error:
"org.opencms.file.CmsVfsException: Error reading resource with the ID null."
The same function detail page works in the old "Dev demo" subsitemap.


Thank you in advance,
Alessandro



More information about the opencms-dev mailing list