IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
<
sitefinity:FlatSelector
ID
=
"DynItemSelector"
runat
"server"
ItemType
"Telerik.Sitefinity.DynamicTypes.Model.TestModule.TestModuleItem"
DataKeyNames
"Id"
ShowSelectedFilter
"true"
AllowPaging
"false"
PageSize
"10"
AllowSearching
ShowProvidersList
InclueAllProvidersOption
ServiceUrl
"~/Sitefinity/Services/DynamicModules/Data.svc/?itemType= Telerik.Sitefinity.DynamicTypes.Model.TestModule.TestModuleItem"
>
DataMembers
sitefinity:DataMemberInfo
Name
"Title"
IsSearchField
HeaderText
span
>{{Title}}</
</
NewsManager newsManager = NewsManager.GetManager();
var newsItem = newsManager.GetNewsItem(DynContent);
if (newsItem != null)
{
this.label.Text += newsItem.Content;
}
BlogsManager blogsManager = BlogsManager.GetManager();
var blog = blogsManager.GetBlog(DynContent);
if (blog != null)
foreach (var blogPost in blog.BlogPosts)
this.label.Text += blogPost.Content;
EventsManager em = EventsManager.GetManager();
var ev = em.GetEvent(DynContent);
if (ev != null)
this.label.Text += ev.Content;
ListsManager lm = ListsManager.GetManager();
var list = lm.GetList(DynContent);
if (list != null)
var listItems = list.ListItems.Where(l => l.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && l.Visible == true);
foreach (Telerik.Sitefinity.Lists.Model.ListItem li in listItems)
this.label.Text += li.Content + " ";
ContentManager cm = ContentManager.GetManager();
var contentBlock = cm.GetContent(DynContent);
if (contentBlock != null)
this.label.Text = contentBlock.Content;
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important