Ad

SEO Tags In Umbraco

I want to render a view in MVC using SEO metadata, but I want to render a title (using ViewBag.Title)for children if there is no SEO metadata for them.How it can be done. Now it displays the value of parent or in other words the title of the parent node

Ad

Answer

There are multiple answers posted on SO for this question and issue. You can check them here e.g.:

Basically - you need to create a doctype or add properties to your current one and use ability of rendering those properties from IPublishedContent model in Umbraco. There is no need to transfer them via ViewBag. You can also use a package doing this for you automatically.

Ad
source: stackoverflow.com
Ad