Copied to clipboard

Flag this post as spam?

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


  • Darren Wilson 229 posts 597 karma points
    Mar 14, 2019 @ 09:38
    Darren Wilson
    0

    Umbraco Forms: Add page headings to email templates

    Hi,

    Is it possible to add the page (or sector) headings to the email template that contains the form results? I've built a massive 10 page form and it would be useful for the client to be able to easily identify the content from each page.

    Thanks Darren

  • Lewis Logan 21 posts 132 karma points
    Mar 27, 2019 @ 16:17
    Lewis Logan
    0

    Hi Darren,

    What do you exactly mean by page headings? Today I needed to add the page name to a template. I was able to do this with the following:

    var pageName = UmbracoContext.Current.PublishedContentRequest.PublishedContent.Name;
    

    The I just need to use @pageName in the html.

    Hopefully this gets you started. Kind Regards,

    Lewis

  • Darren Wilson 229 posts 597 karma points
    Apr 11, 2019 @ 14:25
    Darren Wilson
    0

    Hi Lewis,

    Sorry for the delay. Thanks for this - I'll give it a try.

    Darren

Please Sign in or register to post replies

Write your reply to:

Draft