Hello LA Drupal it was nice to meet some of you yesterday.
This morning I am dealing with a website that has low performance issues, in particular one content type causes a time out when adding images. I know the issue is due to the node having too many CCK fields so I would like to copy it and split it into 3 nodes instead. (or solve the performance issue, but this would take a lot of investigation time that my client may not have the budget for)
When I go to export the content type though, it fails once I try to export over about 2 dozen fields. I need to export at least 3 dozen fields to make it into a split of 3 content types. The failure is just a simple "white" screen result. If I then browser to another page, it tells me that it was successful (a lingering drupal message) but clearly it was not.
When I go into phpmyadmin I can see a table for content_type_mycontenttype which is an ubercart Class (aka content type) but when I copy this to another table for a new content type, it doesn't seem to read or accept the custom fields if I just cheat and do it straight in the database, leaving me to assume that the CCK fields have serialized data in them that point to particular node types by ID?
My question is (sorry for taking a path to get to it): how can I export the content type or clone it, when the export tool itself is failing? Is there another way to bypass the export tool? Perhaps copy things in the database directly? If so, what tables do I need to copy and/or edit?
Thanks!!
Sebastian.
Comments
Hmmm, okay so I thought I was
Hmmm, okay so I thought I was going to get past this issue by breaking it into small chunks and importing each one into my new content-type, however when I do this now I get this message for every single field I try to import into the clone:
"The imported field Back Order End Date (field_date_backorder_end) was not added to Product Clone because that field already exists in Product Source"
Is it just me or isn't this error silly? Of course it already exists... that's why I'm trying to copy it...
:-p
Any ideas?
--
Fountain City Inc
Creative-Technical solutions
Beautiful websites built with Drupal
http://fountaincity.tech
every field needs to have a
every field needs to have a unique name. If the field exists then you would just add the existing field to the content type (or bundle).
a link that might help you.
http://drupal.org/node/721552
Also, I do this in my install profile. If you don't mind reading some dirty code that i never intended anyone else to read.
http://drupal.org/sandbox/frob/1785314
I you follow the parts at the end that have to do with creating the content type then you should be able to follow what is necessary to do: create content type, create fields, add fileds to content type.