- ThemeSetting:
<setting configurable="true" key="header-banner" type="textarea" value=""/>
In portal_normal.vm:
#set($bg_header = $theme_display.getThemeSetting("header-banner"))
In this case, we use $theme_display.getThemeSetting(key) instead of $theme.getSetting(key)
- Ajax using AUI:
var groupId = A.one('#' + namespace + "groupId").get("value");
A.io.request(ajaxPageLayoutUrl, {
dataType : 'json',
data : {
<portlet:namespace/>groupId: groupId
},
on : {
success : function() {
var data = this.get('responseData');
for(var i = 0; i < data.length; i++) {
var page = data[i];
var selected = page.plid == curPageSelected ? "selected" : "";
var newOption = A.Node.create('<option value="' + page.plid + '"' + selected + '>'+ page.title +'</option>');
A.one('#' + namespace + "plid").appendChild(newOption);
}
}
}
});
});