Banzai - copying and pasting xml components with a unique id

  • 4
  • Question
  • Updated 3 years ago
  • Answered
Just a quick one, Banzai creates unique ids for certain components (e.g 'sk-2iJhI9-1165'). If a component is replicated in a page by copying and pasting XML, will it cause problems that more than one component references the same unique id?

If so, is there a particular format that must be used if they need to be manually adjusted?

Cheers!
Louis
Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb

Posted 3 years ago

  • 4
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Skuid... any word on this?
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,490 Points 10k badge 2x thumb
This should not cause any problems because ids only need to be unique for a particular page. They are used in the personalization framework, and personalization data is tied directly to a page Id.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Ben,

I'm not sure I understand. Perhaps this example will clarify:

Say I want two identical tables on the same page, just pointing to different models. I build one table in the builder ui, then I copy+paste that XML and change the model for the second one. Do I have problems with the unique id, since it now occurs twice times on the same page?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Does "workaround for now" imply that skuid will be auto-updating unique ids that reoccur in the same page at some point in the (near) future?
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,490 Points 10k badge 2x thumb
Nope, unfortunately nothing planned. If we did a feature where you could copy/paste from the builder, we would take care of this for you though.
Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb
;)

....please?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
I've seriously considered spamming the community with repeated requests for copy+paste of components in the builder...
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
HA!  I think if we put a list of feature ideas out there for vote - this one would be the winner by a mile!