AccessPoint
<ektron:AccessPoint>
Access Workarea content directly from the Web site. You can assign the access point control to a specific piece of content or a list of content based on taxonomy or collections.
- When assigned to a piece of content, you can edit the content, view the content, or view the content properties.
- When associated with a list of content, you can add items directly to that list.
The Access Point works by itself or in conjunction with other Framework UI controls. You can embed it in a custom template in a templated server control.
Attributes for Access Point
Attributes for Access Point
Properties for Access Point
AddText
. Optional; sets the text to use in place of the default "Add HTML Content" message.ContentType
. Gets or sets the ContentType for the content associated with the control. This will determine what type of content can be added through the access point.DesignTime
. Determines if the control is being rendered in VisualStudio.NET.DisplayType
. Gets or sets the type of menu that is being displayed. For example, Content, Collection, or Folder.FolderId
. Gets or sets the Folder ID where new content will be saved when using the access point. This is used when the DisplayType is Collection or Taxonomy and new content is added.IsPresentationServer
. Gets a flag indicating if the current server is a presentation server.ObjectId
. Gets or sets the Id of the objectthis AccessPoint is associated with. This is directly related to the AccessMenu.DisplayType. If DisplayType is Content, ObjectId should be the Content ID the access point accesses.Title
. Gets or sets the title of the object associated with the access point. This title will be used for display purposes for certain menu types (i.e. content).
Events for Access Point
None.
Methods for Access Point
None.
Theming for Access Point
None.
Examples for Access Point
Examples for Access Point
The Access Point templated server control has the following variations:
- Content
- Collection
- Folder
- Taxonomy
Content example
.aspx
<ektron:ContentModelSource ID="contentModelSource" runat="server"> <ContentFilters> <ektron:ContentFilter Field="Id" Operator="EqualTo" Value="30" /> </ContentFilters> </ektron:ContentModelSource> <ektron:AccessPoint ID="accessPoint" runat="server" ObjectId="<%# ContentView1.Model.ContentList.First().Id %>" DisplayType="Content" /> <ektron:ContentView ID="ContentView1" runat="server" ModelSourceID="contentModelSource" EktronCustomTemplate="Ektron_Default_Template" > </ektron:ContentView>
NOTE: .aspx.cs not required.
Collection example
.aspx
<ektron:ContentModelSource ID="contentModelSource" runat="server"> <CollectionFilters> <ektron:ContentCollectionFilter Field="Id" Operator="EqualTo" Value="10" /> </CollectionFilters> </ektron:ContentModelSource> <ektron:AccessPoint ID="accessPoint" runat="server" ObjectId="10" DisplayType="Collection" FolderId="75" /> <ektron:ContentView ID="ContentView1" runat="server" ModelSourceID="contentModelSource" EktronCustomTemplate="Ektron_ContentList_Template" > </ektron:ContentView>
NOTE: .aspx.cs not required.
Folder example
.aspx
<ektron:ContentModelSource ID="contentModelSource" runat="server"> <ContentFilters> <ektron:ContentFilter Field="FolderId" Operator="EqualTo" Value="147" /> </ContentFilters> </ektron:ContentModelSource> <ektron:AccessPoint ID="accessPoint" runat="server" ObjectId="147" DisplayType="Folder" /> <ektron:ContentView ID="ContentView1" runat="server" ModelSourceID="contentModelSource" EktronCustomTemplate="Ektron_ContentList_Template" > </ektron:ContentView>
NOTE: .aspx.cs not required.
Taxonomy example
.aspx
<ektron:ContentModelSource ID="contentModelSource" runat="server"> <TaxonomyFilters> <ektron:ContentTaxonomyFilter Field="Id" Operator="EqualTo" Value="208" /> </TaxonomyFilters> </ektron:ContentModelSource> <ektron:AccessPoint ID="accessPoint" runat="server" ObjectId="208" DisplayType="Taxonomy" FolderId="147" /> <ektron:ContentView ID="ContentView1" runat="server" ModelSourceID="contentModelSource" EktronCustomTemplate="Ektron_ContentList_Template" > </ektron:ContentView>
NOTE: .aspx.cs not required.