We have created a PageType which doesn't have any properties. This points to blank.aspx which doesn't have any content. The pages will be either external links or shortcut to episerver page. All the pages of this PageType are created within a container(parent) page. We are creating these pages using EPiServer PageData Object. When we assign PageShortType.External to linktype of pagedata object and external url to LinkUrl, it is showing correctly in edit mode and saved correctly also.But when we assign PageShortcutType.Shortcut and select EPiServer Page and assign its URL, it is not assigning that url and assigning Blankpage.aspx url and also setting the shortcut type as 'Link to this page' in edit mode. Please help us in creating a page which is a shortcut to another page in episerver through pagedata object.
You need to set the property PageShortcutLink when using PageShortcutType.Shortcut, for example:
page["PageShortcutLink"] = new PageReference(3);
page["PageTargetFrame"] = Frame.Load("_blank").ID;