Copied to clipboard

Flag this post as spam?

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


  • Vincenzo 1 post 71 karma points
    Oct 24, 2019 @ 15:31
    Vincenzo
    0

    insert umbraco content from the frontend

    Hello, I created a contact form, I would like the messages that are sent by the form to be saved also in the umbraco backend below in the "Contact" content node. How can I do this? I read something about "Content Service" but I didn't understand it very much :)

    Many thanks in advance!!

  • Amir Khan 1282 posts 2739 karma points
    Oct 24, 2019 @ 20:56
    Amir Khan
    0

    If you happen to be using the Umbraco Forms package, you can just create a workflow for this.

    If you need to do it programmatically, give this thread a look: https://our.umbraco.com/forum/templates-partial-views-and-macros/76724-create-nodes-programmaticaly

    You might also need these includes if you're calling it from a template directly:

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    @using Umbraco.Core;
    @using Umbraco.Core.Models;
    @using Umbraco.Core.Services;
    
Please Sign in or register to post replies

Write your reply to:

Draft