asp.net mvc 3 - Is it possible to use multiple SiteMapNodes with the same Controller and Action, but different titles? -
i constructing wizard, , use same "master" controller , action orchestrate child controller , action called implement step.
i trying put breadcrumb trail represent wizard flow, difficulty. not helped fact 1 cannot have multiple "mvcsitemapnode"s in mvc.sitemap same controller , action. seems need master controller name ie "wizard" , "index" opposed child controller name ie "step1" , "index".
so, on own, work:
<mvcsitemapnode title="step1" controller="wizard" action="index" preservedrouteparameters="id" route="wizard"/>
however do, multiple wizard steps:
<mvcsitemapnode title="step1" controller="wizard" action="index" preservedrouteparameters="id" route="wizard"/> <mvcsitemapnode title="step2" controller="wizard" action="index" preservedrouteparameters="id" route="wizard"/>
but above not work, unless there way differentiate these nodes.
any wisdom appreciated!
thanks.
just found answer.
yes possible, long identical controller/action nodes not siblings, ie make them children.
Comments
Post a Comment