Copied to clipboard

Flag this post as spam?

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


  • Stefano Beretta 101 posts 246 karma points
    Sep 16, 2015 @ 11:11
    Stefano Beretta
    0

    DocumnetTypeAlias information doesn't change after switch Document Type

    Hi Everyone,

    I searched along the whole forum but I didn't find a solution.

    I have a large amount of nodes and I changed their doctype after creation using "right click -> change document type".

    Everything is fine, the pages display correctly but when, in the parent page, I iterate the children (filtering them by the new document type alias) the nodes I get are only the nodes that I created with the new document type.

    I have removed the filter and tested the document type alias information. Both with Model.Content.DocumentTypeAlias and CurrentPage.DocumentTypeAlias I always get the old document type alias and not the current one I switched to.

    Am I doing something wrong in retrieving the new doctype alias? Thank you for help

    S

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Sep 16, 2015 @ 13:21
    Alex Skrypnyk
    100

    Hi Stefano,

    Did you try to republish your site and remove /app_data/umbraco.config file ?

    Thanks

  • Stefano Beretta 101 posts 246 karma points
    Sep 16, 2015 @ 13:57
    Stefano Beretta
    0

    I was just deleting my post when I saw your answer... deleting App_Data worked for me!

    Thanks a lot

    S

Please Sign in or register to post replies

Write your reply to:

Draft