I am making an ASP.NET control which displays a list of links embedded in a containing <ul/>
. Based on a taxonomy query, I'm going to add a list of Tridion.ContentDelivery.Web.UI.ComponentLink
objects to the control tree.
I would also like to deal with the situation where none of the links resolve. I could do this by also instantiating a matching list of Tridion.ContentDelivery.Web.Linking.ComponentLink
, calling GetLink()
and evaluating the IsResolved
property. However this feels inelegant, and leaves me wondering if there isn't a tidier way.
Have I missed something, or is this the only way?