Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Really, how would I call this thread else?

Intro:
Products, each Product has Color and each product can have Variations, which also has Color.
Something like Car Mersedes Black, Car Mersedes Red, Truck Mersedes Black, and so on.
So each item has reference-id, smth like:
72368 mersedes car, 2d, coupe white
72368 mersedes car, 2d, coupe black
There are other constraints for design choices, but it is not valuable now.

CSV_importer, 3 operations:
1) Go through csv and create a list of clonable pages with Colors, available for products.
2) Again, go through and create a unique photo gallery of Reference Id of products, each Id (photo) relate to 1 Color.
3) Now, go through and create nested gallery for each ReferenceId, store Variations and relate each one to Color and each one to main ReferenceId.
Now we are set.

If all 3 operations are performed in a single template, then *some* of the data is not stored. All normal data is there (usual editables), Relations data is unpredictable - some is stored, some is not.

I noticed, that such frame drops occur when there is autogenerated k_page_name's. There are of course some repetitions in source, and Couch pleasantly autocreates k_page_name, out of Titles (specified in db_persist). But when there must be checkings for unique name, this operation 'loses focus' and has no time maybe to allow also storing relations data. Or maybe there are some crossings of variables in system, idk. Before all operations all templates are cleaned of any pages.

If all the three operations are separated by 3 different physical templates - there are no issues. I will stick to 3 different files, and advise client not to rush.

There is another thing with relations.
Whenever a relations editable is deleted from a template - refreshing template as superadmin doesn't help to remove this editable and populated data. There must be some bug, as I have to clean out the template, rename it, delete from admin, then reinstall and voila, it is ok.

These are the thoughts. If interested, I will save all templates and put on ftp, or here as zip. I can get back to it in a week or so. So, first rule also applies here. No rush. :D
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Whenever a relations editable is deleted from a template - refreshing template as superadmin doesn't help to remove this editable and populated data.
To delete an editable region, one must specifically refresh a *page-view* as super-admin (an easy way to do this is by clicking the magnifying glass icon next to any cloned page of the template in admin-panel).

Regarding 'dropped frames' - if you are using cms:pages in the code to fetch page(s) created by the same code, please try specifying 'show_future_entries' e.g. as follows
Code: Select all
<cms:pages show_future_entries='1'>

Could you please try both the suggestions and let me know they helped?
2 posts Page 1 of 1