09-01-2015 01:53 PM
<module>
<id>Create Site Extension</id>
<version>1.0</version>
<customizations>
<customization>
<targetPackageRoot>org.alfresco.modules</targetPackageRoot>
<sourcePackageRoot>create-site</sourcePackageRoot>
</customization>
</customizations>
</module>
12-14-2016 09:01 AM
I got asked to look into this thread and have done some debugging into it and it would seem that there is a bug in the way in which extension controller paths are looked up. Essentially what is happening is that Surf is looking for extension scripts with the name create-site.post.js and not create-site.post.json.js (note the missing .json).
The workaround to this problem is just to create your extension as create-site.post.js and that should then get processed.
09-02-2015 12:29 PM
create-site.post.json.js
09-03-2015 12:23 AM
09-03-2015 03:22 AM
09-03-2015 12:35 PM
09-03-2015 03:50 PM
create-site.post.json.js
. It will help to find out this problem.
09-03-2015 04:38 PM
09-03-2015 05:38 PM
<extension>
<modules>
<module>
<id>Test Module</id>
<version>1.0</version>
<customizations>
<customization>
<targetPackageRoot>org.alfresco.modules</targetPackageRoot>
<sourcePackageRoot>create-site</sourcePackageRoot>
</customization>
</customizations>
</module>
</modules>
</extension>
model.sitePresets.push({
id: "site-test",
name: "TEST"
});
<extension>
<modules>
<module>
<id>Test Module</id>
<version>1.0</version>
<customizations>
<customization>
<targetPackageRoot>org.alfresco.modules</targetPackageRoot>
<sourcePackageRoot>create-site</sourcePackageRoot>
</customization>
</customizations>
</module>
</modules>
</extension>
function deleteDashboard(type, id)
{
var connector = remote.connect("alfresco");
for (var col = 1; col < 5; col++)
{
for (var row = 1; row < 6; row++)
connector.del("/remoteadm/delete/s/sitestore/alfresco/site-data/components/page.component-" + col + "-" + row + "." + type + "~" + id + "~dashboard.xml");
}
connector.del("/remoteadm/delete/s/sitestore/alfresco/site-data/pages/" + type + "/" + id + "/dashboard.xml");
return status.STATUS_OK;
}
function test()
{
deleteDashboard("site", "good-site");
}
test();
09-04-2015 01:27 AM
12-14-2016 09:01 AM
I got asked to look into this thread and have done some debugging into it and it would seem that there is a bug in the way in which extension controller paths are looked up. Essentially what is happening is that Surf is looking for extension scripts with the name create-site.post.js and not create-site.post.json.js (note the missing .json).
The workaround to this problem is just to create your extension as create-site.post.js and that should then get processed.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.