I have created the image field and i'm able to process some OCR with an external library uploading the image but I need to use webcam instead and I can't find the way to set the "capture=enviroment" tag to my input form in the field widget file.
I have been asked to work on website personalization. Basically I have to save the selections that the logged in user made in the website, so that when they log in again they dont have to make the same selections again. I have to all this programmatically.
Could you please help me how should I go about it? Any resources would help.
I have a custom module that builds a custom menu depending on an attribute of the node for a basic page. If $nid = 10, then a custom-menu-10 needs to appear in a region for that page. If $nid = 11, then a custom-menu-11 will appear in that same region. In D7, we just threw the custom menu into a menu_tree_all_data and used $variables['my_custom_menu'] to place the html in page.tpl.php.
To learn more in the new D8 theme API, I've created a custom block in mymodule which has the code I need to determine the node-id() and instantiate the custom menu.