if (!Utils.isNull(contentType) && !contentType.equals(dynamicPage.getContentType())) dynamicPage.setContentType(contentType); update = true;
public DynamicPage copyDynamicPage(DynamicPage source, String path, boolean copyIds) throws NodeException { // create the new dynamic page and copy attributes DynamicPage dynamicPage = newDynamicPage(path); copyPageAttributes(source, copyIds, dynamicPage); dynamicPage.setHidden(source.isHidden()); dynamicPage.setContentType(source.getContentType()); dynamicPage.setInheritable(source.isInheritable()); return dynamicPage; }
newDynamicPage.setContentType(!Utils.isNull(contentType) ? contentType : "*"); if (!Utils.isNull(layoutName) && (newDynamicPage.getRootFragment() instanceof Fragment))