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).
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,
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?
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."
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)?
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
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
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
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
@ 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
Do you check the log file? (\App_Data\Logs)
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."
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
is working on a reply...