title: How to implement breadcrumb in MVC 4 for one controller but linking several actions
body: <p>So I have very simple code structure I have only one controller (excluding the login and base controllers) - the <code>Home</code> controller and all actions that I call are from there. I had to implement a breadcrumb and since it's only one controller I decided that I won't use stuff like <code>mvcsitemapprovider</code> or something else of that matter but instead stick to something simple like this one that I now have :</p>
  
  <pre><code> @if(ViewContext.RouteData.Values["action"] != "Index")
          {
              &lt;div class="top-header-links"&gt;
                  @Html.ActionLink(ViewContext.RouteData.Values["action"].ToString(), ViewContext.RouteData.Values["action"].ToString(), ViewContext.RouteData.Values["controller"].ToString()) 
              &lt;/div&gt;
          }
          &lt;div class="top-header-links"&gt;
              @Html.ActionLink("Home", "Index", "Home")
          &lt;/div&gt;
  </code></pre>
  
  <p>Which actually is not much at all, but I was satisfied since. But now I see that there are some certain cases like <code>Home/News</code> and <code>Home/ShortNews</code> which are both actions in my <code>Home</code> controller so one could say that they are on the same level, but still the logical connection is that <code>ShortNews</code> is a node of the more general <code>News</code> so in my breadcrumb I ultimately would like to have <code>&gt;Home&gt;News&gt;ShortNews</code> but in the way it's implemented now obviously it's not gonna happen.</p>
  
  <p>So what I can think about now is using <code>ViewBag.SecondAction</code> or something and populate it in those actions that I know that are called from inside another action and just put one more check in my <code>_Layout</code> page for <code>if (ViewBag.SecondAction != null)</code> and then add what I want. For now this would do the job but as I see it, it doesn't seem scalable, and if the project grows I think this would be hard to maintain (and probably no very efficient as there may be more conditions than there are now). So still I'm looking for some standard solution, by standard I mean that I would be happy if I don't have to install third party software and just write the code myself but also I want it to be a little more generic, at least to handle this case that I've described. </p>
  
  <p>Since most of the suggestions I saw were to just use <code>mvcsitemapprovider</code> I want to know if I can modify my code so that I get the desired result and if I only want to include one more action is there an easy way to do this, at least easier than using <code>mvcsitemapprovider</code>?</p>