Copied to clipboard

Flag this post as spam?

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


  • Alberto Sartori 1 post 71 karma points
    Dec 13, 2022 @ 12:39
    Alberto Sartori
    0

    Setting Tags values from code behind

    I'm trying to set the value of my contentTag property (type Tags, using package YoyoCms):

    enter image description here

    I set the value as:

                        var newContent = contentService.CreateContent(
                            parentId: nodeNumber,
                            name: nomeAttivitaNodo,
                            contentTypeAlias: "Attivita",
                            userId: -1
                        );
                        newContent.SetValue("contentTag", "tag1, tag2");
    

    all works fine but the propery is not valorized, any help?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies