AnsweredAssumed Answered

Extending Share fails - YUI-Common Error - 'extend fails...'

Question asked by martinfranz on Oct 10, 2013
Hi!

I'm fighting a strange error while extendig alfreso share (4.2.d) with customs actions.

I did exactly the same things that Jeff explainded in his great tutorial about custom actions.
(http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf)

The error occurs when I want to see all my rules on a special folder (manage rules). Then browser console shows the
following message:

Error: extend fialed, please check that all dependencies are inculded - at: yui-common.

at this point I am not able to edit the rules anymore.
When creating new rules (even custom rules) for other folders everything works as aspected.

This is what causes the error:

<javascript>
YAHOO.extend(DGF.RuleConfigActionCustom, Alfresco.RuleConfigAction), {…}
</javascript>

Onother problem with the 4.2.d version:

Inside the rule-details.get.html.ftl and rule-edit.get.html.ftl

This does not work for me:

<@script type="text/javascript" src="${page.url.context}/someco/components/rules/config/rule-config-action-custom.js"></@script>

I have to use this instead:

<@script type="text/javascript" src="${url.context}/res/someco/components/rules/config/rule-config-action-custom.js"></@script>


Maybe anyone had the same problems.

Thanks for you input.

Version:

4.2.d

Outcomes