cancel
Showing results for 
Search instead for 
Did you mean: 

Time Restriction not working on cms link component

0 Kudos

Looks like restrictions does not work with CMSLinkComponent.

I was applying Time Restriction on cms link component but it did not worked.

Same restriction worked on logo component.

Can you please suggest how to apply restrictions on CMSLinkComponent?

Thank yu

0 Kudos

Hi,

I could add Time restriction on CMS link component.

The issue was the link component rendering was done like regular HTML rendering. It was not rendered as cms component while displaying. so i added below snippet just above the rendering and it worked.

<c:if test="${ycommerce:evaluateRestrictions(component.item)}">

</c:if>

Note :: If you render component as cms component then evaluateRestriction="true" attribute of component tag will work.

Thank you.

Accepted Solutions (0)

Answers (0)