+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / MVC Detail View with ActionName Attribute

MVC Detail View with ActionName Attribute

3 posts, 0 answered
  1. Joe
    Joe avatar
    21 posts
    Registered:
    01 Dec 2010
    30 Apr 2014
    Link to this post

    I have a page created for a list MVC widget.  On that page I have an MVC widget that has an Index method that returns a view with a list of content.  In the same control I have  a details action method that has an ActionName attribute tied to it.  The action method is LessonPlan but the ActionName is lesson-plan.  This action method accepts a parameter called urlName so I expect an input URL of /lesson-plan/{name of lesson plan}.  If I have the ActionName attribute on the method the input parameter is never populated.  If I remove the ActionName and simply make the url /lessonplan/{name of lesson plan} the parameter is populated as expected.  Any ideas as to why the ActionName attribute would cause the parameter to be dropped?

  2. Veronica
    Veronica avatar
    125 posts
    Registered:
    30 Jan 2015
    01 May 2014
    Link to this post
    Hi,

    I have already provided you with an answer in the support ticket that you opened.

    Please note that the ActionName attribute is supported in Sitefinity since version 6.2. Could you please confirm that you are using this version. 

    Also please take a look at our MVC-related BugTracker sample located here -> https://github.com/Sitefinity-SDK/Telerik.Sitefinity.Samples.BugTracker 


    Regards,
    Veronica
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Joe
    Joe avatar
    21 posts
    Registered:
    01 Dec 2010
    01 May 2014 in reply to Veronica
    Link to this post

    I replied to the ticket.  I opened the forum so others could see the answer if this was something they ran into.  I am using version 6.3.

3 posts, 0 answered