Block instance Unique ID

Permalink Browser Info Environment
hi,
in your features list, I see: "Block IDⓇ (as of version 2.3.0)"
Can a unique ID be generated for each block instance with this?
Thanks,
Una

Type: Pre-Sale
Status: Resolved
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Una,

Each block instance has an Unique ID already, so Block Designer gives you the option to use that somewhere - wherever you’d want to. So yes, the ID is Unique per block instance. If you’d like to do JavaScripting based on ID’s, I’d recommend using classes instead. This since ID’s can/will change if you edit an instance. This since there is full versioning of pages in concrete5 and you can always revert back to an earlier state of the page.

Kind regards,
Ramon
fatcatsanonymous replied on at Permalink Reply
Hi Ramon,
thanks for your reply. I have read that concrete5 unique IDs change on edit, though I don't understand what the value is of this. I hoped Block Developer Pro offers the possibility to pass its own unique ID to the block-instance, which remains valid, even if the instance on the page is edited at a later date.

Thanks,
Una
fatcatsanonymous replied on at Permalink Reply
oh, versioning of course, I see what you mean ...
ramonleenders replied on at Permalink Reply
ramonleenders
Of course you can still use a “Text” field type and give it a title “ID” or something and use that in your view. Right? Using the build-in bID can be useful for different reasons, so that’s why it’s in there. In case a block never changes after first placement for example.

Hope it’s all clear and do let me know if you have any other questions.

Kind regards,

Ramon
fatcatsanonymous replied on at Permalink Reply
I can add one manually I suppose,
Thanks for your help,
Una

concrete5 Environment Information

any

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.