Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6806921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:46:09+00:00 2026-05-26T19:46:09+00:00

thank you for reading my question. Following situation: -A sharepoint list, based on a

  • 0

thank you for reading my question.

Following situation:

-A sharepoint list, based on a custom content type. The content type is nothing more than a folder with some extra properties (like url, targetpage).
-The folder content types and items represent a menu structure. For example:

Home | http://www.home.com | home.aspx
—> Subhome | http://www.subhome.com | subhome.aspx
Impressum | http://www.impressum.com | impressum.aspx

This structure has no limits how deep it’s going to be or how many items/folders it can contain. The only restriction is that inside a folder every name must be unique.

Because of the performance I need to fetch all items in the list at once and not for every folder. I managed it this way:

            SPQuery qry = new SPQuery();
            qry.ViewAttributes = "Scope='RecursiveAll'";

After that I translate the SPListItems into an object called NavigationEntry. This object contains an SiteMapNode and some other properties like the path, itemname and levelcount (e.g. Home/Subhome = level2, Impressum = level1).

Now I place all this items in a dictionary with the path+itemname as key (because it’s unique and gives me a hint where the item lies). After that I access this dictionary with linq and grab the items level per level until I reach the end (no items available on a level). Now comes the tricky part. I have to “convert” this weird structure into navigation structure for sharpoint. Because i’m new to sharepoint this is a bit confusing sometimes.

At the moment I go trough the levels and create SiteMapNodes with SiteMapNodeCollections, go to the next level, look if the parentitem is already there, put the child into it and so on. That works, but its very complicated, dirty and fragil.

Is there any “easy” or more structured way to solve this issue? I’m not looking for an already coded solution but for any hint into the right direction on how to solve this. Thank you! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:46:10+00:00Added an answer on May 26, 2026 at 7:46 pm

    IF just an Navigation tree is what you want , I can recomment JSTree

    I once used it for a multilevel Quichnav Delegate. While I made a Manage Interface to add items, You could just cunstruct a XML or Json in the Change Events of the List. Or to be more fancy do a query every time a node is expanded.

    Hope this helps

    Lars

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently reading Jon Skeet's C# in depth 2nd edition and the following question
Hello and thanks to everyone for reading my question. I've been working on a
Thanks in Advance for reading and answer this question. I got button in asp
I was reading this post and had a question that I didn't think it
Thank you very much in advance for reading. I'm programming a web application in
Other than reading the GetFileName() file and reading to line GetFileLineNumber() of a stackframe
I've been reading a fair bit about the performance of using LINQ rather than
After reading the answer to this question , I learned that SFINAE can be
Situation: I have a C# program which does the following: Generate many files (replacing
I am reading about Dynamic programming in Cormen etc book on algorithms. following is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.