Skip to main content
7 events
when toggle format what by license comment
Aug 11, 2014 at 11:41 comment added Dominic Cronin Of course the combination of component id and template id is only going to give you a unique id if your other business rules enforce this. Yeah - OK - why would anyone put the same component presentation twice on the page? But still - it's not illegal.
S Mar 21, 2013 at 9:08 history suggested Glenn Stevens CC BY-SA 3.0
added text to indicate login is required to access provided link
Mar 21, 2013 at 6:35 review Suggested edits
S Mar 21, 2013 at 9:08
Feb 22, 2013 at 14:49 comment added Nuno Linhares BTW, @@ID@@ gets you the Component Template ID in DWT. Not in template builder for some weird reason, but it works when publishing & previewing
Feb 22, 2013 at 11:54 comment added Bart Koopman You could consider getting the Page from the RenderContext, but that still doesn't help you in the situation where there are two identical Component Presentations on the Page. The ordinal position is only available in the Page Template context.
Feb 22, 2013 at 11:47 comment added Ant P Thanks Bart - I've clarified my terminology as per your comments. Your suggestion is something I've considered but doesn't cover the (admittedly unlikely) case where a content editor places two identical Component Presentations on the same page. Ideally, I would like to uniquely identify the Component Presentation itself, rather than a particular combination of its constituent parts. The tricky part, of course, is that this unique identifier must be available within the scope of the Component Presentation itself.
Feb 22, 2013 at 11:26 history answered Bart Koopman CC BY-SA 3.0