留言板

Add page

Daniel Wilmes,修改在12 年前。

Add page

Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子
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?


								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
thumbnail
Anil Sunkari,修改在12 年前。

RE: Add page

Expert 帖子: 427 加入日期: 09-8-12 最近的帖子
Yes,you can override the property default.user.private.layout.template.id=1_column in your portal-ext.properties file.
Daniel Wilmes,修改在12 年前。

RE: Add page

Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子
Thank you!