client icon indicating copy to clipboard operation
client copied to clipboard

Custom data ID

Open jesperstarkar opened this issue 11 years ago • 0 comments

As of now all templatedata is sent as id="text". This is suitable for textfields, and the most common usecase.

For custom components, you miss one level of structure in the client's datasection. I want to set "ID" as well as "value".

Three possible implemtations:

  1. Just add another coloumn in the data editor: Name | ID | Value
  2. Add another widget/phane for custom data (keep the existing section as now, for text-specific use cases).
  3. Add grouping in current data section: When needed, add "Name" as a header, with several ID/Value-pairs below.

A common misunderstanding is that all data must be sent in the value-attribute of "text". Several dirty hack with escaped XML inside this attribute causes massive problems. The full potential of templatedata first comes when we structure like it's intended, with custom ID and value for different components. The client should encourage to best practice.

jesperstarkar avatar Feb 18 '14 15:02 jesperstarkar