Developer forum

Forum » Dynamicweb 10 » Rank not working

Rank not working

Kasper Pedersen
Reply

Hello I have a few instances of the OnBeforeProductListRender notificationsubscriber and are trying to use Rank to set the order of execution, but it doesn't seem to work as I get the wrong order consistently. It works fine within the same project, but it doesn't have any effect between to different project with the subscribers.

I use this code snippet to set the Rank: '''public override int Rank => 2'''

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Kasper

Try to use the AddInOrder attribute instead

https://doc.dynamicweb.dev/api/Dynamicweb.Extensibility.AddIns.AddInOrderAttribute.html

 

You must be logged in to post in the forum