Hi everyone, I'm trying to develop a CCT extension...
# suitecommerce
s
Hi everyone, I'm trying to develop a CCT extension for my SCA website, and I have a problem that has no documentation but that works with the native CCT slideshow : when I configure my CCT fields, I can choose the type "Image", thath displays a file explorer from a netsuite file cabinet folder, which is great. But when I choose an image, it just returns its id, and I cannot find a way to use it to get the real image from NetSuite... If anyone knows a way to fix it... 🙂 Thanks in advance !
f
Did you figure out a solution for this? I've read that you can create a service file to handle this, but I don't know where you would put it or how you would manage permissions for it. We also thought about creating a UE script or client script to look up the URL using the N/file module, but neither script seems to run in the context of the CMS.
It looks like if you have a field called "image_field" then NetSuite will automatically add a related property to the settings object called "image_field_url". It's whatever the name of your field is plus "_url". They're doing some other things in the UI to make this a smoother experience, but I'm not sure what those are.
s
Hey, sorry for the delay, Idid not receive the Slack notification... I did not find a way to make it workf properly, so I've done something else as a temporary workaround : just an input text field, where we paste an image public url from netsuite, and a service loads the record and returns its url field...