Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stuart 11 posts 34 karma points
    Feb 27, 2015 @ 21:55
    Stuart
    0

    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!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 28, 2015 @ 06:12
    Jan Skovgaard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft