Thanks!

I wanted to test the process by copying an existing module (the ldap
module), and try to create a new button that does exactly the same thing as
the standard ldap-button.

1) I copied the existing ldap module, changed the name of the copy and
placed it under modules in my default lenya publication in the apache
directory (not in the tomcat directory). I changed the name of the java-file
too and the info in the module.xml file. Then I compiled it. That worked,
and the "new module" appeared in my default publication on the tomcat
server.
2) I copied the addUser.jx file and renamed it + the references to the
ldap-class file. (in the tomcat directory)
3) I added a similar row about ldap support in the Access-control config
file (in the tomcat directory)
4)I added similar lines in the usecase-policies as there already exists
concerning addUser (in the tomcat directory).
5) I added new message lines about the type of usecase in the cmsui.xlm file
(that contain info about CMS user and LDAP user).
6) I tried to follow the documentation concerning seeting up the Cocoon
variables, but there doesn't exist any Cocoon-xconf directory under the
config directory in my publication(s).
7) When I click on users in the admin area there is now a button present for
my "new function", but when I press it an error screen occurs. It says:
"sitemap.xmap:680:106org.apache.cocoon.ResourceNotFoundException: No
pipeline matched request"

What is wrong?


Hi,

jazzhazze schrieb:
> I wonder, are there any wikis, tutorials available for how to create a
> custom
> module?

the main documentation is here:

http://lenya.apache.org/docs/2_0_x/reference/modules/index.html

The only mandatory file is the module descriptor (config/module.xml).
Since the directory structure of the module depends on the purpose, it's 
a bit hard to provide a generic tutorial. The resource type tutorial 
describes how to create a resource type module:

http://lenya.apache.org/docs/2_0_x/tutorials/resourcetype/part1.html


 > Where to put it,

Anywhere you want. You reference it in local.build.properties.

 > how to compile it etc?

All modules are compiled by the Lenya deployment process (./build.sh). 
But you can also include precompiled libraries in $MODULE/java/lib.

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
View this message in context: 
http://www.nabble.com/How-to-create-a-custom-module-tp17209386p17275452.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to