AnsweredAssumed Answered

Issue extending custom event

Question asked by purohitsumit on Jul 22, 2014
Hi All,

After reading following link I am trying to add some code to "onNodeClicked" event

I added "\<my-jar-basedir>\alfresco\extension\share-documentlibrary-config.xml" with following content :


<!– Document Library Custom Code config section –>
   <config evaluator="string-compare" condition="DocLibCustom">
         Custom Code dependencies.

         Note: files specified in the "src" attribute resolve relative to the /share/res/ servlet context.
            <js src="/components/documentlibrary/tree-custom.js" />
      <dependencies />

I have js file in "\<my-jar-basedir>\META-INF\components\documentlibrary\tree-custom.js"

            actionName: "onNodeClicked",
            fn: function showWikiPage(args)
                var node = args.node;
                  if (this.isFilterOwner && node == this.selectedNode)
                    ; //placeholder from source in tree.js
                  document.getElementById('wikiframe').src = "http://localhost/wiki/index.php/WFS:/';

                  // Prevent the tree node from expanding (TODO: user preference?)
                  return false;

But this code is not effective on share's document library page. I don't see tree-custom.js file in source so may be it is not getting included.

Any help is appreciated.

Sumit Purohit