Highlighted

Reusing Scaffolds between Apps

Avatar

Avatar

kylew87495614

Avatar

kylew87495614

kylew87495614

14-11-2017

I am trying to reuse some scaffolds from another app living on the same server, where the only real difference is the cq:targetPath of the scaffold.

I've tried a few things that don't seem to work, using ResourceSuperType, and using cqinclude.

I've had the most success with cqinclude, where I add a dialog to the 2nd scaffold, and just set  the xtype to cqinclude on the dialog, with a path to the original dialog.infinity.json.

The issue with this approach is, the cqinclude appends a overlay selector to the path in the JS on the Scaffold page, which 404's pointing to the original scaffold's location since it exists in /etc/scaffolding/<app_name>.  I tried the same technique with scaffolds that live in lib or apps and it works fine, with the .overlay. selector.

So just looking for some advice how I can approach this. 

Replies

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

14-11-2017

I have never tried that use case. However - you will find information on this subject here: Scaffolding

Highlighted

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

969

Correct Answer

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

969

Correct Answer

1.1K
kautuk_sahni
Community Manager

14-11-2017

I have asked internal folks to have a look at this.