Has anyone else has this problem? 1. You create a...
# suitecommerce
j
Has anyone else has this problem? 1. You create a custom content type to use in the SMT. 2. You use it for awhile and it works fine, but then you realize that it would be great if there was a way to configure it a little more to customize it. 3. You think "Yeah, should be easy enough. I'll just create another field on the custom record type that was created." 4. You create the custom fields, login to the SMT and everything works great. Your new custom field is available and configurable and everything looks great. 5. You make your edits and save the content. 6. Just to be sure, you check things on the live site. None of the CMS content shows up, your page is blank and everything is broken. 7. You curl up in the fetal position and question every decision you've ever made that has led you to this point in your life. 8. You go back to the custom record for the CCT you've been working on and delete the custom field you just created and everything works fine again. There's gotta be a better way. What am I missing here? How do I add custom fields to CCT records without totally destroying all the existing records of that type on the frontend?
m
Hi Jacob, i have experienced some issues with custom CCT but are most permission issues with the record, when the CMS content doesn't show up, you get any kind of error? the call to api/cms/v2/contents is correct? do you have any info on SC.ENVIRONMENT.CMS or SC.ENVIRONMENT.CMS.error ? Thanks!
The field that you created refers to any record or list ?
j
Well now, of course everything is working perfectly after adding that field back in...
Yes, I was using a List/Record type for the new field
@Martin Added another field that also used a list/record type and things broke again. Error from /api/cms/v2/contents throws a 400 (Bad Request) error
u
do you invalidate cache after adding the field / modify the cct or try on a new browser
j
@//greg The sandbox domain I'm using doesn't have cache enabled. Other browsers are kind of hit or miss...
m
The list/record has permissions for not authorized customers ?
k
Sometimes backend changes take a little while to kick in across existing records....I have successfully edited/added to custom records that drive custom content types and have not had issues....but, agreed, check all linked records and list permissions
j
@kkennedydesign Yeah, I think it's just a cache thing. The changes that weren't showing up last night are now showing up today. It's going to be fun figuring out how to make changes to the homepage if that's the case....