Selecting "Related Asset" metadata in Asset Builder?


(Kieran) #1

Matrix Version: 6.19.2

Was there ever a solution to having someone pick an asset from a related asset metadata (from a restricted root node)?

IE, shadow authoring - I have an asset builder to create a news article but want the true author to be able to pick the displayed author from a restricted node. Reason I dont want this to be a text field, is when the article is shown to site visitors, they should be able to click on the author (who was selected by the true author) and see their bio page, so it has to be an asset.

If no better way - Would a way around this be to list an option list with a manually added list of IDs as keys, and somehow save this selected key to the articles correct metadata (the author select one)?

I really don’t want article writers to have to use _admin.

Thanks in advance.


(Bart Banda) #2

Hey Kieran,
Yeah there’s no real “out of the box” solution to provide the asset tree component on the frontend for asset builders atm.

How many authors are there to select from? If the number is quite low, in the 10s or 20s, then yeah, a select field that maps to the author ids that the user submits that then populated the related asset metadata (true field) is a good way to do it (could use a trigger for that).

Alternatively you could manually code the select field input with hte same ID/name as the related metadata field and see if that works, so don’t let Matrix print the input for the related metadata field using the usual simple edit keyword, you just code it manually, and make sure the POST data that is sent to Matrix is the same as what the related asset would have. A couple of options there hopefully for you.