Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Yahya 4 posts 84 karma points
    Nov 17, 2021 @ 03:38
    Yahya
    0

    Implement meta momentum on Master template and each page

    hi all, currently i using master template, its mean each page doesnt have head in each page, how i insert @Html.Partial("MetaMomentum/RenderMetaTags", Model.Value("modelName")) into section ?

    when use this partial in each top of cshhtml, its still inside because i use master template,

    thanks

  • David Sheiles 67 posts 337 karma points
    Nov 17, 2021 @ 23:07
    David Sheiles
    100

    Hi,

    The master template should have access to the current content node, so you should be able to use the above code in the master template without an issue.

    Otherwise you can add a @RenderSection("head", false) in the head on the master page and @section head{ @Html.Partial("MetaMomentum/RenderMetaTags", Model.Value("modelName")) } anywhere in the page template. The code will be placed wherever you put the @RenderSection("head", false)

  • Yahya 4 posts 84 karma points
    Nov 18, 2021 @ 02:57
    Yahya
    0

    thanks david, its works..,

Please Sign in or register to post replies

Write your reply to:

Draft