Site specific aspect visibility

cancel
Showing results for 
Search instead for 
Did you mean: 
sanjaybandhniya
Intermediate

Site specific aspect visibility

I want to visible some of the aspect to particular site only.

I am using share extension and my code is as per below but not working.

<extension>
	<modules>
		<module>
			<id>Demo Site Aspect Extensions</id>
			<description>Demo Site Aspect Extensions</description>
			<version>1.0</version>
			<auto-deploy>true</auto-deploy>
			<evaluator type="site.module.evaluator">
				<params>
					<sites>demo</sites>
					<applyForNonSites>false</applyForNonSites>
				</params>
			</evaluator>
			<configurations>
				<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
					<aspects>
						<!-- Aspects that a user can see -->
						<visible>
							<aspect name="myc:blockChainHash" />
						</visible>
						<!-- Aspects that a user can add. Same as "visible" if left empty -->
						<addable>
						</addable>
						<!-- Aspects that a user can remove. Same as "visible" if left empty -->
						<removeable>
						</removeable>
					</aspects>
				</config>
			</configurations>
		</module>
	</modules>
</extension>

Without replace=true and applyForNonSites=true, my custom apsect is visible(Manage Aspect) with all existing aspect at all place.

Without replace=true and applyForNonSites=false, my custom apsect is not visible(Manage Aspect) with all existing aspect.

If I add replace=true and applyForNonSites=true then only custom aspect is visible but for all place.

If I add replace=true and applyForNonSites=false then custom aspect is not visible.

1 Reply
afjaber
Customer

Re: Site specific aspect visibility

@fcorti @angelborroy Any helpful hints to offer on this one?  The business requirement is to only make certain aspects available for selection to user groups that are members of a particular site, as the aspects are site-specific.  Thanks in advance for reviewing.