Try our conversational search powered by Generative AI!

Default PageType FrameTarget


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



Sep 22, 2008 11:47


The Property collection on the PageData class has a property called PageTargetFrame. Is that what you are looking for?

Per Gunsarfs
EPiServer CMS Development Team

Sep 22, 2008 14:13

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"] ?




Sep 22, 2008 15:28

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;
   //insert framing code here

Sep 23, 2008 15:54
* 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.