0
blewis created
The Zero Template comes with the _layout.cshtml file containing a hardcoded page title (title tag). Is there an easy/built-in way to make the name of the active menu/nav item the page title? I have looked through the docs and I don't see anything.
4 Answer(s)
-
0
Hi @blewis,
Which version do you use ? Angular1, Angular2, ASP.NET MVC 5.x & jQuery or ASP.NET Core & jQuery ?
Thanks.
-
0
Sorry, ASP.NET Core & jQuery. (Zero version 4.1.1 -- just downloaded).
-
0
Hi,
Then, you can use "<title>@ViewBag.CurrentPageName</title>". But there might be some pages which we didn't set ViewBag.CurrentPageName, you might need to handle that case.
Thanks.
-
0
Thanks!