November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi
The Property collection on the PageData class has a property called PageTargetFrame. Is that what you are looking for?
Regards
Per Gunsarfs
EPiServer CMS Development Team
I think so
I would like to check the defaultframe for a certain pagetype when I create a link manualy
PageData page = GetPage(propPage);
Can I get the target like this: page.Property["PageTargetFrame"] ?
/jesper
You will get the selected frame (in edit mode) for a specific page rather than the default value for a page type.
For building links to pages it is probably what you are looking for. The code could look something like this:
string targetFrame = page["PageTargetFrame"] as string;
if(!String.IsNullOrEmpty(targetFrame))
{
//insert framing code here
}
How do I read the Default frameTarget (Målram) for a special pagetype/page
I would love something like a LinkTarget or PageLinkTarget property in the PageData family
best regards
jesper