cancel
Showing results for 
Search instead for 
Did you mean: 

DocumentLibrary: Hide some sorting aspects

juschroeg
Champ in-the-making
Champ in-the-making
Hello,
I am trying to customize a Site to fit our projects needs and make it easy to use, even for less experienced alfresco users. Apart from a custom aspect and custom view, I also would like to minimze the options available to the user to the neccessary minimum.
I added my custom aspect properties in share-config-custom and they show in the sorting order on the upper right corner of my document library view. Even though I expanded my custom config to include all the out-of-the-box sorting parameters I want to keep, I still see all options. Does anybody have an idea how I could hide some of those sorting parameters? Is there an explicit option to hide fields?


<!– Visibility of custom aspect's properties in sorting action –>

<config evaluator="string-compare" condition="DocumentLibrary">
  <sorting>
         <sort label="label.name">cm:name|true</sort>
         <sort label="label.title">cm:title</sort>
         <sort label="label.description">cm:description</sort>
         <sort label="label.creator">cm:creator</sort>
         <sort label="label.modified">cm:modified</sort>
         <sort label="label.size">cm:content.size</sort>
         <sort labelId="search.sort.type">TYPE</sort>
         <sort label="Jahr">cu:year</sort>
         <sort label="Ansprechpartner">cu:contactperson</sort>
         <sort label="Veröffentlichung erlaubt">cu:publishable</sort>
  </sorting>
</config>


Thanks in advance for your comments.
1 REPLY 1

juschroeg
Champ in-the-making
Champ in-the-making
In order for the changes in share-custom-config.xml to take effect, I had to insert replace="true"to my config evaluator


<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
  <sorting>
         <sort label="label.name">cm:name|true</sort>
         <sort label="label.title">cm:title</sort>
         <sort label="Jahr">cu:year</sort>
         <sort label="Ansprechpartner">cu:contactperson</sort>
         <sort label="label.description">cm:description</sort>
         <sort label="Veröffentlichung erlaubt">cu:publishable</sort>
  </sorting>


That works perfectly now.