Copied to clipboard

Flag this post as spam?

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


  • yogesh pathak 136 posts 221 karma points
    May 19, 2015 @ 05:35
    yogesh pathak
    0

    Error while creating new datatype

    Hey Guys ,

    I am facing a strange issue while trying to create a new datatype , i have done following

    i have created a folder inside App_Plugins folder named Example

    Inside Example folder i have create two files

    1. package.manifest
    2. CustomType.cshtml

    My package manifest looks like this

    { propertyEditors :[ { alias : "CharLimit", name : "Char limit", editor : { view:"~/App_Plugins/Example/CustomType.cshtml" } } ] }

    Now this datatype is listed under create new datatype dropdown list so by that i have created new datatype but when i try to use that datatype into any page its says

    i tried placing View file into Views/Partials folder but then it says-

    any help?
    Thanks
  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    May 19, 2015 @ 06:44
    Jan Skovgaard
    0

    Hi Yogesh

    In your web.config is the "Debug" attribute set to false? If so try changing it to "True" and also make sure to clear your browser cache - If these two steps don't work then try bumping the backoffice cache by going to the /config/ClientDependency.config file and increment the number in the "version" attribute" and then recycle the app pool - Does any of these step help?

    If the "Debug" attribute is not set to true then Umbraco will cache things pretty hard meaning that stuff added to the /App_Plugins/ folder won't be recognized and hence give you an error.

    I hope this makes sense and helps.

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies