Try our conversational search powered by Generative AI!

SoftLink Repository alternative



If have a variant that has multiple views, how can I tell which views are used on our site. For example.

If I have a pair of jeans and it is featured on the homepage
If I have a jumper and it is NOT featured on the homepage

I want a method that when I pass the jeans product code, it tells me it is on the homepage but if I pass in jumper it tells me it isn't shown on the site.

My understanding is that softlink repository( used to do this but that is now marked as deprecated.

We are currently using donut caching and at the moment we have to cache every view of a variant no matter if it is used on the site or not. We are also after something that is efficient, so we don't want to go through every block on the site and see if it contains the product.

Mar 01, 2017 15:05

Hey Adam

Not sure if this might be able to help:


Edited, Mar 01, 2017 15:40

The concrete ContentSoftLinkRepository is obsoleted, but you're free to use the IContentSoftLinkRepository which has same functionalities (a bit different signature, thought) 

Mar 01, 2017 15:42

Thanks Quan, you were spot on.

Jun 07, 2017 19:05
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.