Skip to content
Permalink
Browse files

adds hostname to contentletmap #15574

  • Loading branch information...
wezell committed Nov 28, 2018
1 parent bbe99a5 commit 8c045e1913b9e6cfb13834aa23267389c51c5a6d
@@ -169,6 +169,11 @@ public static String sanitizeFileName(String fileName){
if (s.isFileAsset() || s.isHTMLPageAsset()){
m.put("path", APILocator.getIdentifierAPI().find(c.getIdentifier()).getPath());
}
try {
m.put("hostName", APILocator.getHostAPI().find(c.getHost(), user, true).getHostname());
} catch (Exception e) {
Logger.warn(ContentletUtil.class, "unable to get host:" + c.getHost() + " : " + e.getMessage());
}

return m;
}

0 comments on commit 8c045e1

Please sign in to comment.
You can’t perform that action at this time.