Showing posts with label Umbraco 5. Show all posts
Showing posts with label Umbraco 5. Show all posts

Friday, February 3, 2012

Using the Umbraco Object in a Umbraco 5 Template

If you want to use the Umbraco object in Templates then you need to add @inherits RenderViewPage to the top of your template (View).  Its best to do this on a Master Template so you only need to add it once. 


If you don't do this you will get an error like CS0234: The type or namespace name 'Field' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)




Umbraco 5 Hanging on Install IIS7

First chance today to look at Umbraco 5. Unfortunately I haven't looked at many of the previous versions of Umbraco 5 so was really keen to get into it and start a new project so I could all the new cool features.

Unfortunately I got stopped at the first step, created a new database, created a new site IIS 7 and browsed to the new site. The install just hang with the wait cursor just going round and round. After going insane for a few hours I discovered the fix was disbale Link Scanner in AVG. You can disable this by opening the AVG user interface goto tools > advanced settings > link scanned then unticking the 3 options. Hope this gets you on your way. Hoping to bring you lots more Umbraco 5 blog posts in the weeks and months to come.