@Override public String getPageTemplate() { return pageInstance.getLayout().getTemplate(); }
public String getPageTemplate() { Pattern pattern = Pattern.compile("^(\\w|\\d|-)+"); if(pageTemplate != null && pattern.matcher(pageTemplate).matches()) { return pageTemplate; } else { return getPageInstance().getLayout().getTemplate(); } }
if(childDirectory.isDirectory() && !PageInstance.DETAIL.equals(childDirectory.getName())) { ChildPage childPage = null; for(ChildPage candidate : parentPageInstance.getLayout().getChildPages()) { if(candidate.getName().equals(childDirectory.getName())) { childPage = candidate;
protected void updateLayout(String layoutContainer, String[] embeddedPageActionIds) { PageInstance instance = getPageInstance(); Layout layout = instance.getLayout(); if(layout == null) { layout = new Layout(); instance.setLayout(layout); } for(int i = 0; i < embeddedPageActionIds.length; i++) { String pageFragment = embeddedPageActionIds[i]; for(ChildPage p : layout.getChildPages()) { if(pageFragment.equals(p.getName())) { p.setContainer(layoutContainer); p.setOrder(i + ""); } } } }
if(embeddedPageActions == null) { MultiMap mm = new MultiValueMap(); Layout layout = pageInstance.getLayout(); for(ChildPage childPage : layout.getChildPages()) { String layoutContainerInParent = childPage.getContainer();
String pageName = pageInstance.getName(); File childPageDirectory = parentPageInstance.getChildPageDirectory(pageName); Layout parentLayout = parentPageInstance.getLayout(); Iterator<ChildPage> it = parentLayout.getChildPages().iterator(); while(it.hasNext()) {
if(!newDirectory.exists()) { try { Iterator<ChildPage> it = oldParent.getLayout().getChildPages().iterator(); ChildPage oldChildPage = null; String oldName = pageInstance.getName(); newChildPage.setShowInNavigation(true); newParent.getLayout().getChildPages().add(newChildPage); DispatcherLogic.savePage(newParent.getDirectory(), newParent.getPage()); } catch (Exception e) {
Layout layout = current.getLayout(); if (layout != null) { childPages = layout.getChildPages();
parentPageInstance = getPageInstance(); parentPage = parentPageInstance.getPage(); parentLayout = parentPageInstance.getLayout(); parentDirectory = parentPageInstance.getDirectory(); directory = parentPageInstance.getChildPageDirectory(fragment); parentPageInstance = dispatch.getPageInstance(-2); parentPage = parentPageInstance.getPage(); parentLayout = parentPageInstance.getLayout(); parentDirectory = parentPageInstance.getDirectory(); directory = parentPageInstance.getChildPageDirectory(fragment);