cancel
Showing results for 
Search instead for 
Did you mean: 

How do I only display the edit icon for certain file types?

csiege
Champ in-the-making
Champ in-the-making
Hopefully this is an easy one…

I only want to display the edit icon (pencil image) for certain file types that I know can be edited (through our webdav configured link).  Otherwise I will train then to have to check out and use a locally saved working copy.

So I only want the pencil displayed for say filetypes of (.doc, .ppt, .xls)

thanks!

Chris
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
Hi,

You can replace the evaluator associated with the edit action in the actions configuration (presuming you are using 1.3).

Look at the customisation guide for examples of configuring actions. You'll have to override the definition of the edit action in your own config file and provide an evaluator implementation that only returns true if the node matches your criteria.

csiege
Champ in-the-making
Champ in-the-making
That confirms my thoughts.  I had altered the EditDocWebDavEvaluator.java to get the behavior I want, but I like you idea better of creating a separate custom evaluator!

thanks for the help!

Chris