MVC Structure

lawrence whittemore asked on January 3, 2020 15:38

Just going through the MVC tutorials. Is it standard to have to build a separate navigation for a site? Why would the navigation not be dynamic based on the content?

Recent Answers


Zach Perry answered on January 3, 2020 20:28

You can create your navigation based by pulling pages thru the API.

Might want to also read this blog post about dynamic routing

1 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on January 8, 2020 16:30

So Lawrence, in terms of navigation, there are 2 thought processes

  1. Dynamic based on Tree Structure
  2. Manual

Dynamic on tree structure can be nice as when you add a page, it's added to the menu. Great for things like blogs and stuff.

However Manual can be better if your want your menu to look a certain way, be structured a certain way, OR if you want to employ things like Mega Menus.

I myself have created a system where the navigation is "Manual" but you can select a page to get the link and document name from it. Custom logic could be added to make some parts dynamic (such as a blog listing) and others not as well.

So it really depends on your needs.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.