how can I hide the button "Import a File"

Under my folders I have 2 buttons :

  • New
  • Import a File

I want to hide the 2nd. How can I do it?

Thank you.

alt text

1 votes

2 answers

1474 views

ANSWER



Hello,

I tried to add this XML Extension but this has no effect. The Import a File button still appears…

I have one other XML Extension and this does not begin with <action> tag but <extension> :

<extension target="org.nuxeo.ecm.webapp.directory.DirectoryTreeService"
  point="trees">
  <directoryTree name="bySubjectsNavigation" enabled="false" />
  <directoryTree name="byCoverageNavigation" enabled="false" />
</extension>

Your XML does not begin with <extension> should I add it before your code?

Many Thanks.

0 votes



Hello, with studio you can “surcharge” this xml extension

<action id="newFile"
  link="javascript:Richfaces.showModalPanel('importFile');"
  label="action.new.file" icon="/icons/action_add_file.gif">
  <category>SUBVIEW_UPPER_LIST_HREF</category>
  <filter-id>importFile</filter-id>
</action>
0 votes