Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

SoftLink Repository alternative

Vote:
 

Hey,

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(http://world.episerver.com/documentation/Class-library/?documentId=cms/9/F25E1112) 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.

#175769
Mar 01, 2017 15:05
Vote:
 

Hey Adam

Not sure if this might be able to help: http://www.markeverard.com/2015/03/16/helping-episerver-editors-find-unused-content/

David

#175771
Edited, Mar 01, 2017 15:40
Vote:
 

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

#175772
Mar 01, 2017 15:42
Vote:
 

Thanks Quan, you were spot on.

#179307
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.