AnsweredAssumed Answered

Limit custom changes to specific site/content

Question asked by juschroeg on Apr 2, 2014
Latest reply on Apr 2, 2014 by afaust
Dear all,

I introduced a custom aspect featuring custom metadate. In order to make full use of those features, I added a custom view render as well as custom sorting options in the document library.

My question is, can I limit e.g. the custom sorting options to this specific site, or specific content?
The relevant section in my share-config-custom.xml is as follows:

<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
         <sort label="">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>

The current configuration obviously changes the sorting settings across any Document Library.

As I could not find an overview of the possible config evaluators, I could not figure out a way to set this any more specific. Using an "aspect-name" evaluator under the condition of my custom aspect does not do the job, but results in an error.

Could anybody point me the right direction to go forward with this?
Thanks a lot