Copied to clipboard

Flag this post as spam?

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


  • Mohammad Khan 23 posts 81 karma points
    Jan 15, 2015 @ 15:50
    Mohammad Khan
    0

    Email to a friend Contour form broken in Umbraco 7.2

    I just recently converted our intranet Umbraco site from v4 (Webforms) to v7.2 (MVC) and I am not sure how to get the "Email To a Friend" form working again. The old way was that you targeted the masterpage for that form with the form GUID macro and it would work fine but now it seems that alternative templates have been removed ? Is there a work around for this ?

    I also found this: http://our.umbraco.org/forum/using/ui-questions/37937-What-shall-we-do-with-AltTemplate?p=1 but I am not 100% sure if these are connected.

    Thank you for the assistance.

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Jan 15, 2015 @ 16:05
    Dennis Aaen
    0

    Hi Mohammed,

    You are saying that you have upgraded Umbraco from 4 to Umbraco 7.2

    In Umbraco 7.2 the Contour package is replace by Umbraco Forms, did you have upgraded your Contour to the new Umbraco forms, if not the I think that you should have a look at the Umbraco-forms-migration package developed by Tim Geysens http://our.umbraco.org/projects/developer-tools/umbraco-forms-migration

    If you use the migration package you should be to following these steps

    1. Duplicate DB

    2. On the website Umbraco, remove Contour v3

    3. On the website Umbraco, install Umbraco Forms v4

    4. Install Umbraco Froms Migration Tool

    5. Connect migration tool to duplicated database

    6. Delete duplciate DB

    I found the steps here in this post: http://our.umbraco.org/projects/developer-tools/umbraco-forms-migration/computer-says-no/59800-Steps-to-use

    Hope this helps,

    /Dennis

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Jan 15, 2015 @ 16:19
    Dennis Aaen
    0

    Hi Mohammed,

    And in this older blogpost from Umbraco there is an little section about the new Umbraco Forms. http://umbraco.com/follow-us/blog-archive/2014/10/28/umbraco-720-beta-out-now and here is a uHangout episode about the Umbraco forms. http://uhangout.co.uk/video/iTKb4k4UJqU

    There are also video on Umbraco TV http://umbraco.tv/videos/umbraco-v7/implementor/extending/umbraco-forms/intro/, and you will find the documentation here: http://our.umbraco.org/Documentation/Products/UmbracoForms/index

    Hope this helps,

    /Dennis

  • Mohammad Khan 23 posts 81 karma points
    Jan 15, 2015 @ 18:00
    Mohammad Khan
    0

    Hey Dennis,

    Thank you for the quick reply, I was not aware of this, I thought Contour was upgraded to support Umbraco 7.2 as I should have mentioned I upgraded it to 3.0.23. Didn't realize I had to switch to "Umbraco Forms". Will try out the solutions and see how it pans out.

    Thank You!

  • Mohammad Khan 23 posts 81 karma points
    Jan 28, 2015 @ 15:40
    Mohammad Khan
    0

    Hi Denis,

    I was able to get Umbraco Forms up and running but I am still not sure how to get the alternative template going. I swapped out the macro import for the "Email A Friend" master page to Umbraco Forms but it still doesn't work. The form itself works fine if I embed it on a regular content page but how can I get it to work from any page that a person may want to send the link to a friend to?

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Jan 28, 2015 @ 16:13
    Dennis Aaen
    100

    Hi Mohammad,

    If I understand your questions correctly then you want a template with a form from Umbraco Forms where you can send the link to a friend.

    So first you create the new template for Email a friend, after this then you insert the form from Umbraco Forms, It will look something like this

    @Umbraco.RenderMacro("umbracoforms.RenderForm", new {FormGuid="4bc435c0-0c91-496e-abaf-ef187a4c24cc"}

    Remember to change the FormGuid, so it match your form Id.

    And my template looks like this.

    If your template has the name Email A Friend, then you can access it from here: http://www.yourdomain.com/EmailAFriend

    Hope I don't misunderstood your question.

    /Dennis

  • Mohammad Khan 23 posts 81 karma points
    Jan 28, 2015 @ 16:49
    Mohammad Khan
    0

    Hey Dennis,

    That's actually exactly what I was doing but I just realized after your response that I was calling the page url as http://www.yourdomain.com/email-a-friend instead which is how it was called when using Contour. Called it without the dashes did the trick.

    @inherits UmbracoTemplatePage
    
    @{
       Layout = "~/Views/MasterPage2.cshtml";
    }
    
    @section Content {
       @Umbraco.RenderMacro("umbracoforms.RenderForm", new {FormGuid="938938d9-57ca-4f33-81af-e62f21289c54"})
    }
    

    Thanks for the quick response!

    Finally got this working now need to do some styling and get the surfacecontroller to work.

Please Sign in or register to post replies

Write your reply to:

Draft