This project is read-only.

CreateTag.cshtml and button attributes?

Topics: Writing modules
Mar 7, 2011 at 11:47 AM

My question is, Looking at Orchard.Tags, since this is similar to what I am needing.  Where or who is loading CreateTag.cshtml? Also, what are these attribute values used for in the CreateTag.cshtml button?

<button class="primaryAction" type="submit" name="submit.Create" value="yes">@T("Add Tag")</button> 
I don't see anything in the css or Scripts that would utilize the attribute values!
Mar 7, 2011 at 5:21 PM

I found the answer to this.  

Here is how to Display the CreateTags:

@Display.EditorTemplate(TemplateName: "Parts/CreateTags", Model: ViewData["CreateTag"] != null ? ViewData["CreateTag"] : new TagsAdminCreateViewModel())


Here is the button attribute for the submit.Create this is located in the AdminController:


        public ActionResult IndexCreatePOST() {