The <EPiServer:Property .. /> just for fun, what output really gets generated for those PageData Property Members?

I created a few test page types along with some templates and EPiServer pages in order to test outputs from <EPiServer:Property .. />. The HTML comments are not part of the output, obviously, and I cleaned away attributes such as ids, inline styles and CSS classes. Furthermore, I chose to be blind to how useful outputting some of these properties like this really is; you probably wouldn’t, and probably shouldn’t. Where it is applicable, there is also a note on what is rendered in Edit mode for the input controls setting these properties. The order is the one from the EPiServer SDK on PageData Members.

PropertyName=”PageArchiveLink”

The name of the EPiServer archive page My Page Archive making the page name in web address My-Page-Archive. Page ID is 72 and the template file is named ArchivePage.aspx.

<EPiServer:Property PropertyName="PageArchiveLink" runat="server" />
<!-- View mode, Friendly URLs on -->
<a href="/en/My-Page-Archive/">My Page Archive</a>

<!-- View mode, Friendly URLs off -->
<a href="/Templates/ArchivePage.aspx?id=72&epslanguage=en">My Page Archive</a>

<!-- Edit mode -->
<input type="hidden" value="72">
<input type="text" disabled="disabled" size="30" value="My Page Archive [72]">
<input type="button" onclick="EPi.CreatePageBrowserDialog(..);" value="...">

<!-- Edit mode - Preview tab, Friendly URLs on -->
<a href="/en/My-Page-Archive/?id=72">My Page Archive</a>

<!-- Edit mode - Preview tab, Friendly URLs off -->
<a href="/Templates/ArchivePage.aspx?id=72&epslanguage=en">My Page Archive</a>

PropertyName=”PageCategory”

The page has the EPiServer AlloyTech sample Categories Event, Example and Product selcted on the Categories tab.

<EPiServer:Property PropertyName="PageCategory" runat="server" />
<!-- View mode -->
<span>Event, Example, Product</span>

<!-- Edit mode (one of them) -->
<input type="checkbox" checked="checked">
<label>Event</label>

<!-- Edit mode - Preview tab -->
<span>Event, Example, Product</span>

PropertyName=”PageChanged”

<EPiServer:Property PropertyName="PageChanged" runat="server" />
<!-- View mode -->
<span>2/29/2012 2:11:44 PM</span>

<!-- Edit mode - Preview tab -->
<span>2/29/2012 2:11:44 PM</span>

PropertyName=”PageChangedBy”

The page was changed using my test user mathiaskunto. On-Page Edit gives you an input textbox, but you may find it somewhat difficult updating the value like this.

<EPiServer:Property PropertyName="PageChangedBy" runat="server" />
<!-- View mode -->
<span>mathiaskunto</span>

<!-- On-Page Edit -->
<input type="text" value="mathiaskunto" autocomplete="off">

<!-- Edit mode - Preview tab -->
<span>mathiaskunto</span>

PropertyName=”PageCreated”

<EPiServer:Property PropertyName="PageCreated" runat="server" />
<!-- View mode -->
<span>2/28/2012 4:15:34 PM</span>

<!-- Edit mode -->
<input type="text" size="20" maxlength="20" value="2012-02-28 16:15">
<input type="button" onclick="EPi.CreateDateBrowserDialog(..);" value="...">

<!-- Edit mode - Preview tab -->
<span>2/28/2012 4:15:34 PM</span>

PropertyName=”PageCreatedBy”

The page was also created using my test user mathiaskunto.

<EPiServer:Property PropertyName="PageCreatedBy" runat="server" />
<!-- View mode -->
<span>testuser</span>

<!-- On-Page Edit -->
<input type="text" value="testuser" autocomplete="off">

<!-- Edit mode - Preview tab -->
<span>testuser</span>

PropertyName=”PageLanguageBranch”

The language branch of the EPiServer test page is English.

<EPiServer:Property PropertyName="PageLanguageBranch" runat="server" />
<!-- View mode -->
<span>en</span>

<!-- On-Page Edit -->
<input type="text" value="en" autocomplete="off">

<!-- Edit mode - Preview tab -->
<span>en</span>

PropertyName=”PageLinkURL”

The name of the EPiServer page is News and Events making the page name in web address News-and-Events. Page ID is 178 and the template file is named TestPage.aspx.

<EPiServer:Property PropertyName="PageLinkURL" runat="server" />
<!-- View mode, Friendly URLs on -->
<a href="/News-and-Events/">/Templates/TestPage.aspx?id=178</a>

<!-- View mode, Friendly URLs off -->
<a href="/Templates/TestPage.aspx?id=178">/Templates/TestPage.aspx?id=178</a>

<!-- Edit mode - Preview tab, Friendly URLs on -->
<a href="/News-and-Events/?id=178">/Templates/TestPage.aspx?id=178</a>

<!-- Edit mode - Preview tab, Friendly URLs off -->
<a href="/Templates/TestPage.aspx?id=178">/Templates/TestPage.aspx?id=178</a>

PropertyName=”PageMasterLanguageBranch”

The master language branch is English.

<EPiServer:Property PropertyName="PageMasterLanguageBranch" runat="server" />
<!-- View mode -->
<span>en</span>

<!-- On-Page Edit -->
<input type="text" value="en" autocomplete="off">

<!-- Edit mode - Preview tab -->
<span>en</span>

PropertyName=”PageGuid”

<EPiServer:Property PropertyName="PageGuid" runat="server" />
<!-- View mode -->
<span>038FFF7A-CE04-4590-A7CB-B1F3ECF0718D</span>

<!-- On-Page Edit -->
<input type="text" value="038FFF7A-CE04-4590-A7CB-B1F3ECF0718D" autocomplete="off">

<!-- Edit mode - Preview tab -->
<span>038FFF7A-CE04-4590-A7CB-B1F3ECF0718D</span>

PropertyName=”PageLink”

The name of the EPiServer page is News and Events making the page name in web address News-and-Events. Page ID is 178 and the template file is named TestPage.aspx.

<EPiServer:Property PropertyName="PageLink" runat="server" />
<!-- View mode, Friendly URLs on -->
<a href="/en/News-and-Events/">News and Events</a>

<!-- View mode, Friendly URLs off -->
<a href="/Templates/TestPage.aspx?id=178&epslanguage=en">News and Events</a>

<!-- Edit mode - Preview tab, Friendly URLs on -->
<a href="/en/News-and-Events/?id=178">News and Events</a>

<!-- Edit mode - Preview tab, Friendly URLs off -->
<a href="/Templates/TestPage.aspx?id=178&epslanguage=en">News and Events</a>

PropertyName=”PageName”

The name of the EPiServer test page is News and Events.

<EPiServer:Property PropertyName="PageName" runat="server" />
<!-- View mode -->
<span>News and Events</span>

<!-- On-Page Edit -->
<input type="text"value="News and Events" autocomplete="off">

<!-- Edit mode -->
<input type="text" maxlength="255" value="News and Events">

PropertyName=”PageTypeID”

The ID of the the EPiServer test page is 34.

<EPiServer:Property PropertyName="PageTypeID" runat="server" />
<!-- View mode -->
<span>34</span>

<!-- Edit mode - Preview tab -->
<span>34</span>

PropertyName=”PageTypeName”

The name of the EPiServer test page type is TestPageType.

<EPiServer:Property PropertyName="PageTypeName" runat="server" />
<!-- View mode -->
<span>TestPageType</span>

<!-- On-Page Edit -->
<input type="text" value="TestPageType" autocomplete="off">

<!-- Edit mode - Preview tab -->
<span>TestPageType</span>

PropertyName=”PageParentLink”

The EPiServer test page is placed directly under the Root folder making Root its parent page. Page ID of Root is 1. If it was placed in another place, say under Root -> Start -> Company, the PageParentLink would give the same type of output as for PageLink.

<EPiServer:Property PropertyName="PageParentLink" runat="server" />
<!-- View mode, Friendly URLs on -->
<a href="/secure/ui/CMS/edit/workspace.aspx?id=1">Root</a>

<!-- View mode, Friendly URLs off -->
<a href="/secure/ui/CMS/edit/workspace.aspx?id=1">Root</a>

<!-- Edit mode - Preview tab, Friendly URLs on -->
<a href="/secure/ui/CMS/edit/workspace.aspx?id=1">Root</a>

<!-- Edit mode - Preview tab, Friendly URLs off -->
<a href="/secure/ui/CMS/edit/workspace.aspx?id=1">Root</a>

PropertyName=”PageSaved”

<EPiServer:Property PropertyName="PageSaved" runat="server" />
<!-- View mode -->
<span>3/3/2012 3:13:37 PM</span>

<!-- Edit mode - Preview tab -->
<span>3/3/2012 3:13:37 PM</span>

PropertyName=”PageStartPublish”

<EPiServer:Property PropertyName="PageStartPublish" runat="server" />
<!-- View mode -->
<span>3/2/2012 1:22:33 PM</span>

<!-- Edit mode -->
<input type="text" size="20" maxlength="20" value="2012-03-02 13:22">
<input type="button" onclick="EPi.CreateDateBrowserDialog(..);" value="...">

<!-- Edit mode - Preview tab -->
<span>3/2/2012 1:22:33 PM</span>

PropertyName=”PageStopPublish”

<EPiServer:Property PropertyName="PageStopPublish" runat="server" />
<!-- View mode -->
<span>12/24/2012 3:00:00 PM</span>

<!-- Edit mode -->
<input type="text" size="20" maxlength="20" value="2012-12-24 15:00">
<input type="button" onclick="EPi.CreateDateBrowserDialog(..);" value="...">

<!-- Edit mode - Preview tab -->
<span>12/24/2012 3:00:00 PM</span>

PropertyName=”PageURLSegment”

The name of the EPiServer test page is News and Events making the Page name in web address (i.e. URL segment) News-and-Events.

<EPiServer:Property PropertyName="PageURLSegment" runat="server" />
<!-- View mode -->
<span>News-and-Events</span>

<!-- On-Page Edit -->
<input type="text" value="News-and-Events" autocomplete="off">

<!-- Edit mode -->
<input type="text" maxlength="255" value="News-and-Events">

<!-- Edit mode - Preview tab -->
<span>News-and-Events</span>

PropertyName=”PageVisibleInMenu”

The EPiServer test page is marked to be visible in menues on the Settings tab.

<EPiServer:Property PropertyName="PageVisibleInMenu" runat="server" />
<!-- View mode -->
<span>True</span>

<!-- Edit mode -->
<input type="checkbox" checked="checked">

<!-- Edit mode - Preview tab -->
<span>True</span>
This entry was posted in EPiServer and tagged EPiServer, PageData. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>