Hi Bart, thanks for the response.
The reason is that I’ve set up a template so that backend users can easily update pages using the simple edit view (displayed on the content page with %metadata-f_1000%). In that template I have a metadata schema with a select field for activity types that are allowed in various areas. Each activity has an associated icon that I want to display on the relevant areas page so I have the asset id of the icon stored as well (key in below example)
eg.
Key------------------Value
1000----------------Running
1001----------------Skipping
1003----------------Flying
Each area then has a page of it’s own that displays a list of icons based on that metadata field. Done with SSJS.
eg.
Page------------icons listed
Area 1 -------- Running, skipping
Area 2 -------- Skipping, flying
Area 3 -------- Flying
Each activity also has it’s own page that has a search asset embedded and lists which activities are available in that area. So on each page a GET parameter is set and used in the search. Variable name = ‘activity’ and value = 1000 (the key in the metadata filed).
eg.
Page----------------list
Running ---------- Area 1
Skipping ---------- Area 1, Area 2
Flying -------------- Area 2, Area 3
The issue is that if I have the asset id in the key, the GET parameter needs to be this key (asset id of the icon) rather than the much more user readable value (Running or Skipping etc.). This is workable but possibly a little confusing for future maintainers as if a new icon is uploaded then the metadata field not only needs to be updated with the new icons asset id (this is fine), but the GET parameter in the relevant page also needs to be changed to match this new asset id.
If I swap around the key and value the search GET parameter is easy to understand but the simple edit layout just lists all the asset ids which isn’t workable as backend users won’t know which activity is which.
Hopefully that all makes sense.
Am I missing something really simple here as it seems this shouldn’t be this difficult?
Cheers