New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of fiskpinnar
C#
/// <summary>
/// Creates a string list that contains the hierrarchy leading to the current page
/// </summary>
/// <param name="currentPage"></param>
/// <param name="ReplaceStartWithLangCode"></param>
/// <param name="ReverseSort"></param>
/// <returns></returns>
public static List<string> GetBreadCrumb(PageData currentPage, bool ReplaceStartWithLangCode, bool ReverseSort)
{
   if (currentPage != null)
169 Views
no comments
 
C#
/// <summary>
/// Get all pages from the LinkItemCollection property
/// </summary>
/// <returns>PageDataCollection</returns>
public PageDataCollection GetLinkCollectionPages(string propertyName)
{
   PageDataCollection pages = new PageDataCollection();
   LinkItemCollection links = CurrentPage[propertyName] != null ? CurrentPage.Property[propertyName].Value as LinkItemCollection : null;
   if (links != null)
   {
189 Views
no comments
 
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate