Copied to clipboard

Flag this post as spam?

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


  • richard sserunjogi 2 posts 72 karma points
    Mar 11, 2016 @ 06:27
    richard sserunjogi
    0

    Extending Articulate Document Types properties

    Hi, I added custom properties on the articulate post document type from backoffice, but can't access the property from razor views because the property is not part of Articulate.Models.PostModel object returned,

    How can I access the properties I added from the razor view pages

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 15, 2016 @ 07:56
    Jeroen Breuer
    0

    Hello,

    You could try to download the source code and update the PostModel there so it has all the properties: https://github.com/Shazwazza/Articulate

    You could also create your own model which inherits from the PostModel and add the properties on there. There is an event in which it's possible to return a different model: http://issues.umbraco.org/issue/U4-5065#comment=67-16186

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft