Copied to clipboard

Flag this post as spam?

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


  • Michael Beever 74 posts 155 karma points
    Oct 19, 2020 @ 14:34
    Michael Beever
    0

    Nested Content from another page

    Hi,

    I am upgrading version of Umbraco from 7 to 8.

    I have a document page which hosts all of the required documents and then I have pages elsewhere which then filter and display appropriate content.

    In 7 it works fine.

    In 8 I am unable to get the nested content to display on the page, is there anything i should be doing?

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
    
    Compiler Error Message: CS1061: 'IPublishedContent' does not contain a definition for 'docNested' and no accessible extension method 'docNested' accepting a first argument of type 'IPublishedContent' could be found (are you missing a using directive or an assembly reference?)
    
    Source Error:
    
    
    Line 87:                     @{
    Line 88:                         
    Line 89:                         var DocContentPage = DocPage.docNested;
    Line 90:                         
    Line 91:                         var PageSelectionID = Model.PageType;
    

    This is the error I am getting.

  • Amir Khan 1287 posts 2744 karma points
    Oct 19, 2020 @ 17:09
    Amir Khan
    0

    Possibly need to rebuild your models?

  • Anzal 11 posts 81 karma points
    Oct 21, 2020 @ 17:41
    Anzal
    0

    While fetching values from nested content it should be IPublishedElement instead for IPublishedContent in Umbraco 8. Please try this.

Please Sign in or register to post replies

Write your reply to:

Draft