content-and-experience-toolkit
content-and-experience-toolkit copied to clipboard
Bug: Content Form Component: Content Form SDK methods not working.
OCEToolkit 21.1.3
Some methods like the assetpicker do not work from within the OCE toolkit developer environment. Are there plans to enable support for all of the contentForm methods?
<script src="/documents/static/gemini/api/content-form-sdk-1.0.js"></script>
/** Returns: {obj}
* id: "CONT089FA0AEEF894A3ABAC867B763B56CAF"
* name: "Time.png"
* type: "Image"
* typeCategory: "DigitalAssetType"
**/
item.getFieldByName(fieldName).openAssetPicker().then((data) => {
//..do something
// handle error
}).catch(function(error){
console.error('Error:', error);
});
openAssetPicker() method it to inform the webui to the asset picker dialog for selecting other assets as reference for the reference fields. This is not supported in toolkit environment as toolkit doesn't run on the webui.
How do you use the toolkit to develop and test new content type forms that have the reference field where you are building custom interfaces and functionality?
Do I develop direct in an OCE environment and repromote and test forms directly on OCE and skip using the toolkit to develop with?
@JohnRSim so far as I know right now that is the only way to do that kind of work. I've tried a few other things, but no worky.
@jstortz "hold my beer.. " Launching production to develop on. :)