I trying to create a new custom field, which will have a select field with menu items from certain menu type, I got stuck at populating this select field with values from database.
You can see the code here.
Also I need to access these 3 object properties (id, title, link) on frontend, so the goal is to have in table #__fields_values in
value column record like this:
I got to this point:
If I print DB query correct values are returned:
Array (  => stdClass Object ( [id] => 101 [title] => Home [link] => index.php?option=com_content&view=featured )  => stdClass Object ( [id] => 115 [title] => Article [link] => index.php?option=com_content&view=article&id=1 ) )
But I don't know, how to get this in the select field.
Any help would be appreciated.