Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

persistent unique id for rendered element per block instance

Vote:
 

Is there an easy way to render id?

#181787
Aug 30, 2017 0:38
Vote:
 

Not sure where you want to achieve this. But every block, unless it's local block (block as property), has an ID

<div data-tag-id="@((IContent)Model).ContentGuid">
#181795
Aug 30, 2017 11:17
* 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.