Default PageType FrameTarget

Vote:
 

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

 

#24033
Sep 22, 2008 11:47
Vote:
 

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

#24039
Sep 22, 2008 14:13
Vote:
 

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

 

#24044
Sep 22, 2008 15:28
Vote:
 

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
}

#24080
Sep 23, 2008 15:54