archive-dk.com » DK » N » NDESOFT.DK

Total: 240

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • magic Archives - NDesoft
    on March 4 2014 by Nick Frederiksen in C Programmering umbraco Web Tags NET asp net mvc automapping automatic doctypes generics magic umbraco social news 873 http ndesoft dk 2014 03 04 umbraco net magic Umbraco and NET magic 6 Search this site Recent Posts Create magic with APE Umbraco and NET magic Real MVC App using Umbraco revisited How to create a real MVC app using umbraco Why NOT to use umbraco as a data store Recent Comments Nick Frederiksen on How to create a real MVC app using umbraco Lazau Florin on How to create a real MVC app using umbraco Nico on How to create a real MVC app using umbraco Nick Frederiksen on Real MVC App using Umbraco revisited Nick Frederiksen on Why NOT to use umbraco as a data store ASP NET MVC C CSS Database Generelt Grafik Javascript jQuery Mine systemer og gadgets NMultiselect PHP Programmering umbraco Vista Web windows XHTML Archives Archives Select Month June 2014 1 March 2014 1 August 2013 1 May 2013 2 April 2013 2 January 2013 1 December 2011 1 July 2011 3 May 2011 3 April 2011 1 March 2011 1 February 2011 1 November 2010 1

    Original URL path: http://ndesoft.dk/tag/magic/ (2016-04-28)
    Open archived version from archive


  • Real MVC app using Umbraco - revisited
    MVC architecture ideology AND I am brand new to Umbraco You are the man from Danny September 19 2013 at 1 05 pm Thank you You re welcome glad I could help from Nick September 19 2013 at 1 06 pm Since we re using a custom model in your examples I m a little unsure how to go about accessing the Umbraco model class for things members like GetPropertyValue or Media GetImage from Danny September 19 2013 at 3 57 pm Those methods will be called in the controller All umbraco related stuff must be called from either a controller or a mapper Not in the views Exactly like my examples So when you build your models you should set the properties like you d do in your views in ye olde times from Nick September 19 2013 at 4 26 pm I am getting an error when I try to open the sample project in VS 2012 The imported project D Study CodeSamples Umbraco MVC packages Microsoft Bcl Build 1 0 8 tools Microsoft Bcl Build targets was not found Can you help Thanks from Moran monovich moranmono January 29 2014 at 5 44 am Hi You have to enable nuget package restore And you propably have to build the solution a couple of times before the targets file is recognized from Nick January 29 2014 at 6 32 am Love this article Really great insight into MVC in umbraco I m admittedly relatively new to umbraco but have a solid background in Net MVC framework I m curious as to how you would have several post actions within your controllers using this approach For instance I have an account controller with several actions for displaying profile registering and logging in I need post methods on all of those Any suggestions for how I should handle that from Sean Jones February 15 2014 at 12 41 am Hi thanks It s always great to hear people like my work In umbraco you are not able to call actions directly on a rendermvccontroller What you need is a surfacecontroller It s the same principle as regular mvc So your setup is RenderMvcController for rendering page content and SurfaceController for forms With surfacecontrollers you are able to use the build in Html Ajax BeginForm action controller from Nick Frederiksen February 15 2014 at 7 45 am I am having the same problem as another user above when I load the sample project packages Microsoft Bcl Build 1 0 8 tools Microsoft Bcl Build targets is missing What a shame you didn t upload a project that works straight away I have enabled nuget package restore but it makes no difference The solution cannot be built because the project file won t load from PM May 30 2014 at 10 56 am Hi I m sorry to hear that I will look into it ASAP The problem has been fixed it s just a long time ago since I created the

    Original URL path: http://ndesoft.dk/2013/08/10/real-mvc-app-using-umbraco-revisited/ (2016-04-28)
    Open archived version from archive

  • How to create a real MVC app using umbraco - NDesoft
    As this is an umbraco application after all we still need to oblige to the rules of naming meaning that our controllers must be name exactly after our doctypes MasterDocTypeController All our controllers must run in UmbracoContext because of the fact that we need to be able to access umbraco content simple as that Therefore all controllers must inherit from Umbraco Web Mvc RenderMvcController No problems here So we create a doctype for our MasterDocType public class MasterDocTypeController Umbraco Web Mvc RenderMvcController In this example I don t need any logic in here but I like to have this controller just in case FrontPageController Now you probably think this controller has all the exciting code all the code that makes any of the above code seem unnecessary you are wrong In this example a very simple one I know I have not much code here public class FrontPageController MasterDocTypeController public ActionResult FrontPage RenderModel renderModel var model renderModel Content Map return View model What I do here is simply mapping my content to my model and returning it to the view If I wanted to list any child nodes it would look like so public class FrontPageController MasterDocTypeController public ActionResult FrontPage RenderModel renderModel var model renderModel Content Map model Children renderModel Content Children Where c c IsDocumentType SomeDocType Select c SomeDocTypeMapper Map c return View model This way all my childnodes are of the right type and does not contain any logic Views The final part of this post will be Views Again Umbraco goes a long way to tell us how to build our views but as I stated earlier Umbraco is NOT a Content Delivery Presentation System So it should stay out of our views Umbraco wants us to make all of our views inherit from either Umbraco Web Mvc UmbracoViewPage or Umbraco Web Mvc UmbracoTemplatePage By doing so we are actually adding logic to our views and therefore making it much harder for frontenders to build the view So instead we want to just specify the type of our model the view is build around This is done by writing model NameOfTheModelType To get started with our MVC views we have to do some ground work first Layout cshtml As any web app we must have a generic master layout file that sets up all markup used by all views I prefer naming this view Layout cshtml put it in Views Shared This layout file would in this example look like this model UmbracoMVC Models MasterModel Layout null DOCTYPE html html head meta name viewport content width device width title ViewBag Title title head body div Model SharedValue hr RenderBody div body html Note the first line of this view it states that this view is build around the MasterModel We also specify that this view has no layout viewStart cshtml If you have ever made an MVC app you ll know that any view that is not a partial view will find its master layout using the viewstart cshtml file So we will have to add this to the views folder Layout Views Shared Layout cshtml It specifies that if no other Layout is specified then any view should use the Views Shared Layout cshtml view FrontPage cshtml This view is used to deliver the actual contents of our frontpage As with the controllers we are bound by the rules of umbraco and all views must be located in the Views folder It s quite simple model UmbracoMVC Models FrontPageModel ViewBag Title Model Title h2 Model Title h2 Model BodyText As you can see there is a bare minimum amount of logic only markup and property getters Nothing more nothing less Conclusion This is a rather long post and I haven t covered nearly much on how to build a real MVC app using umbraco but I hope it gives an idea what can be done This approach might take a bit more coding but when we have done this a couple of times and made a couple of frameworks with reusable code then we can really get things done and fast We no longer have to battle with logic in our views we don t have all the string literals floating around our code to identify properties We have successfully separated views from Umbraco and thus made our views cleaner and our controller logic simpler I hope this post will spark a debate on how to develop MVC apps for umbraco in the future Please share and comment Thanks for reading Posted on May 25 2013 by Nick Frederiksen in ASP NET MVC umbraco Web Tags best practices mvc umbraco umbraco mvc web web app social news 814 http ndesoft dk 2013 05 25 how to create a real mvc app using umbraco How to create a real MVC app using umbraco 20 Responses to How to create a real MVC app using umbraco I ve been playing around with your approach and I like it I thought perhaps though it might be a good idea to make the Map method more generic Here s an example gist of what I have done https gist github com JimBobSquarePants 5671406 from James South May 30 2013 at 12 21 pm Good to hear I have thought about doing a generic version of the mapper myself but it is not at simple as one might think A viewmodel may contain more than just simple property values from the node it might contain nodes media content from RichText editors numbers bools custom datatypes and so on To be able to handle those generically we need a way to identify these special properties My thought would be by adding attributes to the models Allowing the mapper to choose which mapping method should be used I have yet to build a PoC on that Might be a separate blog post from Nick May 30 2013 at 12 29 pm Yeah I ve only done some light testing so far as it

    Original URL path: http://ndesoft.dk/2013/05/25/how-to-create-a-real-mvc-app-using-umbraco/ (2016-04-28)
    Open archived version from archive

  • controllers Archives - NDesoft
    Frederiksen in ASP NET MVC C Programmering umbraco Web Tags best practices controllers mappers models mvc revisit umbraco umbraco mvc views web web app social news 834 http ndesoft dk 2013 08 10 real mvc app using umbraco revisited Real MVC App using Umbraco revisited 22 Search this site Recent Posts Create magic with APE Umbraco and NET magic Real MVC App using Umbraco revisited How to create a real MVC app using umbraco Why NOT to use umbraco as a data store Recent Comments Nick Frederiksen on How to create a real MVC app using umbraco Lazau Florin on How to create a real MVC app using umbraco Nico on How to create a real MVC app using umbraco Nick Frederiksen on Real MVC App using Umbraco revisited Nick Frederiksen on Why NOT to use umbraco as a data store ASP NET MVC C CSS Database Generelt Grafik Javascript jQuery Mine systemer og gadgets NMultiselect PHP Programmering umbraco Vista Web windows XHTML Archives Archives Select Month June 2014 1 March 2014 1 August 2013 1 May 2013 2 April 2013 2 January 2013 1 December 2011 1 July 2011 3 May 2011 3 April 2011 1 March 2011 1

    Original URL path: http://ndesoft.dk/tag/controllers/ (2016-04-28)
    Open archived version from archive

  • mappers Archives - NDesoft
    Frederiksen in ASP NET MVC C Programmering umbraco Web Tags best practices controllers mappers models mvc revisit umbraco umbraco mvc views web web app social news 834 http ndesoft dk 2013 08 10 real mvc app using umbraco revisited Real MVC App using Umbraco revisited 22 Search this site Recent Posts Create magic with APE Umbraco and NET magic Real MVC App using Umbraco revisited How to create a real MVC app using umbraco Why NOT to use umbraco as a data store Recent Comments Nick Frederiksen on How to create a real MVC app using umbraco Lazau Florin on How to create a real MVC app using umbraco Nico on How to create a real MVC app using umbraco Nick Frederiksen on Real MVC App using Umbraco revisited Nick Frederiksen on Why NOT to use umbraco as a data store ASP NET MVC C CSS Database Generelt Grafik Javascript jQuery Mine systemer og gadgets NMultiselect PHP Programmering umbraco Vista Web windows XHTML Archives Archives Select Month June 2014 1 March 2014 1 August 2013 1 May 2013 2 April 2013 2 January 2013 1 December 2011 1 July 2011 3 May 2011 3 April 2011 1 March 2011 1

    Original URL path: http://ndesoft.dk/tag/mappers/ (2016-04-28)
    Open archived version from archive

  • models Archives - NDesoft
    so much easier when we use MVC So when Umbraco came out with version 5 I was super happy because I could now use my favorite framework on my favorite CMS Then Umbraco killed v5 and we had to go back to webforms and simple razors BUT then Umbraco Posted on April 20 2013 by Nick Frederiksen in ASP NET MVC C Programmering Web Tags annotations attributes data annotations dataannotations dictionary localization localized model models mvc umbraco umbraco dictionary umbraco mvc validation social news 780 http ndesoft dk 2013 04 20 how to make localized models in umbraco mvc How to make localized models in Umbraco MVC 8 Search this site Recent Posts Create magic with APE Umbraco and NET magic Real MVC App using Umbraco revisited How to create a real MVC app using umbraco Why NOT to use umbraco as a data store Recent Comments Nick Frederiksen on How to create a real MVC app using umbraco Lazau Florin on How to create a real MVC app using umbraco Nico on How to create a real MVC app using umbraco Nick Frederiksen on Real MVC App using Umbraco revisited Nick Frederiksen on Why NOT to use umbraco as

    Original URL path: http://ndesoft.dk/tag/models/ (2016-04-28)
    Open archived version from archive

  • mvc Archives - NDesoft
    coworkers and I where discussing how to build a real mvc app using Umbraco The starting point was quite simple we started by simply dissecting each element in an umbraco site to be able to see the greater picture This Posted on May 25 2013 by Nick Frederiksen in ASP NET MVC umbraco Web Tags best practices mvc umbraco umbraco mvc web web app social news 814 http ndesoft dk 2013 05 25 how to create a real mvc app using umbraco How to create a real MVC app using umbraco 20 How to make localized models in Umbraco MVC MVC it s the sh t Everything is so much easier when we use MVC So when Umbraco came out with version 5 I was super happy because I could now use my favorite framework on my favorite CMS Then Umbraco killed v5 and we had to go back to webforms and simple razors BUT then Umbraco Posted on April 20 2013 by Nick Frederiksen in ASP NET MVC C Programmering Web Tags annotations attributes data annotations dataannotations dictionary localization localized model models mvc umbraco umbraco dictionary umbraco mvc validation social news 780 http ndesoft dk 2013 04 20 how to make localized models in umbraco mvc How to make localized models in Umbraco MVC 8 Search this site Recent Posts Create magic with APE Umbraco and NET magic Real MVC App using Umbraco revisited How to create a real MVC app using umbraco Why NOT to use umbraco as a data store Recent Comments Nick Frederiksen on How to create a real MVC app using umbraco Lazau Florin on How to create a real MVC app using umbraco Nico on How to create a real MVC app using umbraco Nick Frederiksen on Real MVC App using Umbraco revisited Nick

    Original URL path: http://ndesoft.dk/tag/mvc/ (2016-04-28)
    Open archived version from archive

  • revisit Archives - NDesoft
    Frederiksen in ASP NET MVC C Programmering umbraco Web Tags best practices controllers mappers models mvc revisit umbraco umbraco mvc views web web app social news 834 http ndesoft dk 2013 08 10 real mvc app using umbraco revisited Real MVC App using Umbraco revisited 22 Search this site Recent Posts Create magic with APE Umbraco and NET magic Real MVC App using Umbraco revisited How to create a real MVC app using umbraco Why NOT to use umbraco as a data store Recent Comments Nick Frederiksen on How to create a real MVC app using umbraco Lazau Florin on How to create a real MVC app using umbraco Nico on How to create a real MVC app using umbraco Nick Frederiksen on Real MVC App using Umbraco revisited Nick Frederiksen on Why NOT to use umbraco as a data store ASP NET MVC C CSS Database Generelt Grafik Javascript jQuery Mine systemer og gadgets NMultiselect PHP Programmering umbraco Vista Web windows XHTML Archives Archives Select Month June 2014 1 March 2014 1 August 2013 1 May 2013 2 April 2013 2 January 2013 1 December 2011 1 July 2011 3 May 2011 3 April 2011 1 March 2011 1

    Original URL path: http://ndesoft.dk/tag/revisit/ (2016-04-28)
    Open archived version from archive