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
package.manifest
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
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.
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
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
/App_Plugins/Example/CustomType.cshtml
i tried placing View file into Views/Partials folder but then it says-
/Views/Partials/CustomType.cshtml
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
is working on a reply...