留言板
Add page
Hi there,
I am having some trouble with changing the layout when a user adds a new page in their private pages. It seems to default to a two column layout. However, I would like to change the layout to a single column layout. I was under the impression that if you put this in your portal properties file you could get the layout to change:
default.user.layout.template.id=1_column
I found the java script that is used to create the page which is an ajax call, but isn't there a way to override the property in the portal properties file?
thanks,
Daniel
I am having some trouble with changing the layout when a user adds a new page in their private pages. It seems to default to a two column layout. However, I would like to change the layout to a single column layout. I was under the impression that if you put this in your portal properties file you could get the layout to change:
default.user.layout.template.id=1_column
I found the java script that is used to create the page which is an ajax call, but isn't there a way to override the property in the portal properties file?
data = {
cmd: 'add',
doAsUserId: themeDisplay.getDoAsUserIdEncoded(),
groupId: themeDisplay.getScopeGroupId(),
layoutPrototypeId: layoutPrototypeId,
mainPath: themeDisplay.getPathMain(),
name: pageTitle,
parentLayoutId: themeDisplay.getParentLayoutId(),
privateLayout: themeDisplay.isPrivateLayout()
};
if (data) {
A.io.request(
instance._updateURL,
{
data: data,
dataType: 'json',
on: {
success: onSuccess
}
}
);
}
thanks,
Daniel