cancel
Showing results for 
Search instead for 
Did you mean: 

Limit custom changes to specific site/content

juschroeg
Champ in-the-making
Champ in-the-making
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">
  <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>
</config>

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
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

you can limit your configuration to specific sites or types of sites by using the Share / Surf Extensibility features introduced in Alfresco 4. Specifically the ability to put configuration you could otherwise not limit in scope into the extension XMLs - see the <a href="http://blogs.alfresco.com/wp/developer/2012/03/05/share-configuration-extensibility/">blog post of Dave Draper</a> for a quick introduction.

Regards
Axel