Cheers Sebastian for the blog link. That would come in handy at some point.
Mike Ryckman wrote:
It's true that, to do what you're going for here, referencing the module ID is probably easiest. With that said, if you wanted to use tokens, you'd just have to do so in a manner that works with how web forms works (until DNN moves to vnext).
Hey Mike when is vNext coming on stream do you know?
Wes Tatters wrote:
<div id="mymodule-<%=ModuleId%>"></div>
Westa
Cheers Wes that is exactly what I did.
Originally I wanted to utilise DNN tokens in order to provide numerical reference to my modules div container to account for multiple instance of my module on the same page (just in case). But as Michael said earlier this would require addition of token conversion code. Simple requirement of getting access to one token, ModuleID, and lack of time required to actually implement token replacement code I decided that its just not worth it. Instead I implemented very simple property that gets ModuleId value from ModuleContext. And thats that. Everyone is happy.
On a final note I would like to thank everyone for their input which was very helpful.