332 Posts
Kenneth
6 years ago
Topic

Hi. I've experimentet a bit with export/import of apps to speed up my development process.

I've setup two sites, each with the same content type app, lists etc (just a clone of the first site). 

If I do changes on Site A, export the app, install the app on Site B - I do find the newly created fields there, but they are not set to i.e. "site form". I have to add them manually. Is that correct behavior? Any way to get it it published to the site form instead?

Get a VIP membership
4229 Posts
Kadministrator
6 years ago
2
Level 1

Yes, that is the correct behavior, import of the app with the same name as existing one will not overwrite the old one, only fields are added.

332 Posts
Kenneth
6 years ago
1
Level 2

Oh, okay. Is there a setting to change this somewhere? The point with adding the app over the other is in fact to make it up to date. Would be nice to not have to go into the site and add all fields manually.

332 Posts
Kenneth
6 years ago
0
Level 3

I managed to solve this with a core override. Would be quite nice to see this as a setting instead.

I went to /libraries/cms/cck/installer/script/app.php and changed line 53 to false:

Changed: $this->cck->isUpgrade = true;
To: $this->cck->isUpgrade = false;

Get a Book for SEBLOD