Thanks, phillip.
I found there is some error on switch page template in Page menu.
1. When we choose template - First, Click the page-template lookup button.
- Second, Click any template
- Then, You can see error message in modal window.
It causes by customCriteria's value is missing.
When we choose any template, will meet 147 line in PageTemplateCustomPersistenceHandler.
There is no value on pp.getCustomCriteria()[1], so 147 line occurred error.
now I ask, How can I set pp.getCustomCriteria()[1] to parent's pageId?
2. If pageId set constant value(like 1) - I've solved it. - First, Set the value to constant pageId.
- Then you wouldn't see error statement.
- But you could see dynamic form did not changed.
It's original code(line 125~132, PageTemplateCustomPersistenceHandler.class)
Code: Select all
List<FieldGroup> fieldGroups = new ArrayList<FieldGroup>();
if (template != null) {
fieldGroupXrefs = template.getFieldGroupXrefs();
}
if (page.getPageTemplate() != null) {
fieldGroupXrefs = page.getPageTemplate().getFieldGroupXrefs();
}
It need to change, like below.
Code: Select all
List<FieldGroup> fieldGroups = new ArrayList<FieldGroup>();
if (page.getPageTemplate() != null) {
fieldGroupXrefs = page.getPageTemplate().getFieldGroupXrefs();
}
if (template != null) {
fieldGroupXrefs = template.getFieldGroupXrefs();
}
just switch between two if statements.
-----------------------
And let me ask again.
How can I solve the problem missing parent's pageId?