Hi,
I have a list of links that for user maintenance reasons I want to
convert to a list of related media.
But before I over task my brain by writing a template or script myself,
I thought I'd ask if anyone has done such a thing already.
If not, I'm thinking that the core steps would be:
Because the media are already stored in Bricolage,
Get the id of the media to be related
Call add_element to create a new container of type related_media
Save the new related_media element
Call set_related_media with the id of media to be related
Set the value of the link text field
Can someone tell me how far I am from the right path?
Thanks
gh
I have a list of links that for user maintenance reasons I want to
convert to a list of related media.
But before I over task my brain by writing a template or script myself,
I thought I'd ask if anyone has done such a thing already.
If not, I'm thinking that the core steps would be:
Because the media are already stored in Bricolage,
Get the id of the media to be related
Call add_element to create a new container of type related_media
Save the new related_media element
Call set_related_media with the id of media to be related
Set the value of the link text field
Can someone tell me how far I am from the right path?
Thanks
gh