Warren Buckley
Warren Buckley
Hi @JasonEspin I would agree with @KasperHolm here as I am sure that the Umbraco core does not support MVC5 officially yet. So with your project type being set to...
@JasonEspin from that same partial can you try & retrieve the dictionary keys as per normal please. I am curious to see if there is any issues or problems there...
@JasonEspin it is possible to inherit your ViewModel like so public class ContactFormViewModel:RenderModel You should then get Umbraco.GetDictionaryValue() available to use etc...
Partial View reference http://our.umbraco.org/documentation/Reference/Templating/Mvc/partial-views
So can you show me your class/model for this please JesperHannibal.Models.NewsletterModel
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Application.Common.Helpers; using Application.Common.Validation; using Umbraco.Core.Models; using Umbraco.Web; using Umbraco.Web.Models; namespace Application.Common.Model.ViewModels { public class ContactFormViewModel:RenderModel, IValidatableObject { public ContactFormViewModel() : base(UmbracoContext.Current.PublishedContentRequest.PublishedContent) { ``` } public...
There are many ways to skin a cat & do the same thing :) You have said you have had this working previously. Is there anything you have done differently...
Hi All, I will try to spend sometime at lunch today to get to the bottom of this and see what is happening and compare what is happening
This is a sealed class so cannot inheritate, in two minds to do this then. Thoughts @kholm ?
Hey @leekelleher this looks perfectly good to me mate and I would love a Pull Request if you want to do it. I need to make/find time as there is...