Hi everyone,
I did a fresh checkout yesterday and I have noticed that the way of
creating modules has changed. So I'm trying to adapt the module I'm
working on to fit with the new implementation.
I've added a new module.xml file to my module and I've changed my
menu.xsp file like this:
[code]
[...]
<menu i18n:attr="name" name="Edit">
<xsp:logic>
try {
Object doc = <input:get-attribute
module="page-envelope" as="object" name="document"/>;
if (doc instanceof Document && ((Document)
doc).exists()) {
String doctype = <input:get-attribute
module="page-envelope" as="string" name="document-type"/>;
if ("eventcalendar".equals(doctype)) {
<block info="false">
<item wf:event="edit"
uc:usecase="edit.eventcalendar" href="?"><i18n:text>With
Eventcalendar</i18n:text></item>
</block>
}
}
}
catch (Exception e) {
throw new ProcessingException("Error during menu
generation: ", e);
}
</xsp:logic>
</menu>
[/code]
The menu entry "With eventcalendar" keeps displaying greyed. I know
that there's a file called usecase-policies in the default publication
which lists all the available usecases and I think that my usecase
should also be listed there. I would like how to configure it so that
it is listed as the others. Thanks.
Regards,
Paloma
--
Paloma Gomez
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]