Copied to clipboard

Flag this post as spam?

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


  • Maurice Fink 6 posts 26 karma points
    May 14, 2014 @ 08:35
    Maurice Fink
    0

    How to publish in Umbraco 7

    Hi guys, does anybody now how to publish in Umbraco 7?

    I've tried with SaveAndPublishWithStatus. But when i looked into the backend -> document properties -> Link to document: Oops, this document is published but is not in the cache (internal error).

    Can someone help me to solve this problem?

    Thanks

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    May 14, 2014 @ 08:47
    Dennis Aaen
    0

    Hi Maurice,

    Have you seen the documentation for the ContentService, there is a method called .SaveAndPublish, maybe is this one that you should use. I must say that I´m not a .NET developer but I working as frontend developer,

    http://our.umbraco.org/documentation/Reference/Management-v6/Services/ContentService

    Hope this can help you.

    /Dennis

  • MK 426 posts 902 karma points
    May 14, 2014 @ 08:48
    MK
    0

    Hi,

    Do you get the same error when trying to publish from backend?

    Is your parent node published?

    Also, check the log file to see any errors.

    Regards,

    Moshe

  • Sören Deger 726 posts 2833 karma points c-trib
    May 14, 2014 @ 08:49
    Sören Deger
    0

    Hi Maurice,

    I use SaveAndPublish in Umbraco 7.1.1 and it works. Can you test if it works with this instead with SaveAndPublishWithStatus? Which version you are using?

     

    Sören

  • Maurice Fink 6 posts 26 karma points
    May 14, 2014 @ 09:01
    Maurice Fink
    0

    @ Sören: I use Umbraco 7.1.1 version as well but it did not work for me. I've also tried SaveAndPublishWithStatus...

    @ Dennis: Visual Studio gives a warning by using SaveAndPublish because it is obsolete.

    @ Moshe: No when i publish from backend it works, the parent is Home and published.

     

    this is my code that i use: http://pastebin.com/vak38dmu

     

     

  • MK 426 posts 902 karma points
    May 14, 2014 @ 09:18
    MK
    0

    Do you check the log file? (\App_Data\Logs)

  • Maurice Fink 6 posts 26 karma points
    May 14, 2014 @ 09:29
    Maurice Fink
    0

    Yes but for me there is nothing important for this problem. Only this: "Couldn't find any page with nodeId=1113. This is most likely caused by the page not being published."

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    May 14, 2014 @ 16:50
    Sebastiaan Janssen
    0

    Looks like you're trying to publish content from outside of Umbraco (I see you're inheriting from Window, which is a WinForms thing if I'm not mistaken)?

    In that case it's probably not going to work, read more here: http://issues.umbraco.org/issue/U4-1879

  • 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