Copied to clipboard

Flag this post as spam?

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


  • Sonja 133 posts 621 karma points
    Nov 14, 2018 @ 05:08
    Sonja
    0

    problem with the templates and document types

    Hi,

    I have I masterpage template, 1 homepage and few others. In the document types I have home document type containing header and footer and several others without header and footer. Header and footer are placed in the masterpage template and are to be accessed from everywhere. Is this possible approach? Do I need to change something in my project? any recommendations?

    Also I need to access the values in the header and footer tab from the partial view called from the masterpage template. How do I do this?

    Thanks

  • Sonja 133 posts 621 karma points
    Nov 15, 2018 @ 11:32
    Sonja
    100

    solved this, yes I'm calling the partial views from the master template and the document types are in the home page accessing them with

    var site = Model.Content.Site();
    
     site.GetPropertyValue<IEnumerable<IPublishedContent>>("something");
    
Please Sign in or register to post replies

Write your reply to:

Draft