When I create a codebehind file for a template e.g. MasterPage and inherit the umbraco.masterpages.MasterPage file in MasterPage.master, it crahes everytime.
If I inherit umbraco.presentation.masterpages._default (as suggested by a few other bloggers) t does not crash but then the code behind doesn't work.
Is there any "How To" available? New to umbraco so any help is appreciated.
It will create the code-behind in a correct way and also implement the codebehind in the masterpage, you can simply modify the created .cs file to inherit from your preferred source.
Code Behind for Umbraco Templates?
I am using VS2010 with umbraco 4.7.1
When I create a codebehind file for a template e.g. MasterPage and inherit the umbraco.masterpages.MasterPage file in MasterPage.master, it crahes everytime.
If I inherit umbraco.presentation.masterpages._default (as suggested by a few other bloggers) t does not crash but then the code behind doesn't work.
Is there any "How To" available? New to umbraco so any help is appreciated.
Maybe this blog can help you. Go to the #Protip: Creating new templates part: http://tech.kipusoep.nl/2010/07/23/umbraco-45-visual-studio-2010-dotless-jquery-vsdoc-squishit-masterpages/
Jeroen
Thanks Jeroen
I have followed the steps in that blog but still the template MasterPage.master cannot inherit the umbraco.masterpages.MasterPage
If I update the umbraco.dll with a newly compiled umbraco.dll I get the url rewrite error
I released this tool a while ago https://umbracocs.codeplex.com/
It will create the code-behind in a correct way and also implement the codebehind in the masterpage, you can simply modify the created .cs file to inherit from your preferred source.
Cheers
Thanks Eric. This works like a charm.
is working on a reply...