Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Custom ADTs #10

Open
jardineworks opened this issue Nov 4, 2015 · 2 comments
Open

Custom ADTs #10

jardineworks opened this issue Nov 4, 2015 · 2 comments

Comments

@jardineworks
Copy link

Hi Emilio,

AWESOME tool for starters. Seriously, this and the instant theme deploy are my two favourite toys right now and inspiring me to try to do similar things to automate more of our needs. Question? Issue? not sure so I thought I would ask.

We have created a customClassNameConfig.json file. The structure of our file is ...
[
{
"filesPath": "application_display_template/support",
"friendlyName": "Support",
"clazz": "com.xxx.liferay.portlet.support.SupportPortlet",
"getTemplate": true,
"mayHaveTemplates": true,
"mayHaveStructures": true,
"isNativeDDM": false
}
]

When we initiate the ddm tool and check for diffs, we see our ADT for our SupportPortlet. We are also able to download it. We then start the watch and when we make a change it SAYS that it worked but we don't see the changes on the server. We stopped the watch and tried to manually upload the file (Diffs, select files for upload, selected our file) at which point we receive this error --

Error: Could not find any sites to upload the file to

and the ddm tool exits. I don't see anything about specifying the sites that the templates are assigned to. When I checked the DDMTemplates table, I find an entry with my template, and there is a groupId there.

Help? :)

@emiloberg
Copy link
Owner

Ouch!

I've actually never used this with custom ADTs. But this should be solvable.

Just to make clear, any other upload operations to the same site works. E.g. uploading a normal journal template or a ADT for any of the build in portlets (such as the Asset Publisher)?

@jardineworks
Copy link
Author

To be honest, we're not using the stock portlets on this site so we didn't try that. I'll see if I can get one of the guys to try it this afternoon though!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants