November Happy Hour will be moved to Thursday December 5th.

CustomPageLink

Vote:
 
Hi! I'm trying to use the PageExtension CustomPageLink which, according to the SDK, is a Page option that makes it possible to load a page with a different template than the standard template for the page type. I have my base class which inherits from EPiServer.TemplatePage: public class GMapTemplate : EPiServer.TemplatePage { public GMapTemplate() : base(1, CustomPageLink.OptionFlag) { } } I then try to reach my .aspx which inherits from GMapTemplate by adding ?custompageid=27 to the Url. (As specified in the SDK: "This is done by setting the query string "custompageid" to the page id that you want to load".) This does not work as intended, the CurrentPage objects point to the StartPage (which is not page with id 27). Ideas would be greatly appreciated.
#15804
Oct 03, 2007 11:05
Vote:
 
Hi, You need setup optionflag on first parameter in constructor: public GMapTemplate() : base( CustomPageLink.OptionFlag,0 ) I hope this will solve your problem
#16395
Oct 10, 2007 15:52
Vote:
 
Yes, that did the trick! Thanks!
#16396
Oct 11, 2007 9:32
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.