I have been trying to get an entry form, popup from a button click within a document view. I can get the surface controller instantiated within a template like so:-
@using ctrevents.Controllers
@using ctrevents.Models
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@Html.Partial("RenderEventEntry", new EventEntryFormViewModel ())
(COULDN'T GET THIS TO WORK WITH SURFACE CONTROLLER INCLUDED?)
This appears to work fine, but I would like to call this from a button click on an event item page.
need to replace below with HTML.Action to point to surface controller with eventitem id
Where is the box you want to popup placed? Is it placed in an external template? If so you should try to include the markup in the template where you have your link to the popup instead and just make sure it's hidden untill the click event is triggered.
Surface Controllers
I have been trying to get an entry form, popup from a button click within a document view. I can get the surface controller instantiated within a template like so:-
@using ctrevents.Controllers
@using ctrevents.Models
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@Html.Partial("RenderEventEntry", new EventEntryFormViewModel ())
(COULDN'T GET THIS TO WORK WITH SURFACE CONTROLLER INCLUDED?)
This appears to work fine, but I would like to call this from a button click on an event item page.
need to replace below with HTML.Action to point to surface controller with eventitem id
<div class="col-sm-3">
<a href="#" class="btn btn-warning btn-xs "><i class="fa fa-book"></i> book!</a>
</div>
Any ideas would be greatly appreciated!
Hi Stuart
Where is the box you want to popup placed? Is it placed in an external template? If so you should try to include the markup in the template where you have your link to the popup instead and just make sure it's hidden untill the click event is triggered.
/Jan
is working on a reply...