umbraco api, update/save doc Options
duckie
Posted: Sunday, November 05, 2006 5:12:57 PM
Rank: Devotee

Joined: 8/14/2006
Posts: 212
Hi

Working with umbraco.cms.businesslogic.web.Document, i have to say the api is bit messy/confusing :-/

Say, i changed the text-property, and i want to save it. But how without publishing it?

/Anders

Signatures suck. No reason to have one.
berndroessl
Posted: Sunday, November 05, 2006 7:44:08 PM
Rank: Devotee

Joined: 7/20/2006
Posts: 39
why wouldn'd you republish it?

<b style="font-weight: normal;"">I'm not fat, my chest has slipped a bit!</b>
duckie
Posted: Sunday, November 05, 2006 8:53:16 PM
Rank: Devotee

Joined: 8/14/2006
Posts: 212
Because it should not show up on the site yet / it should not be published :whistle: :)

Signatures suck. No reason to have one.
berndroessl
Posted: Sunday, November 05, 2006 9:00:06 PM
Rank: Devotee

Joined: 7/20/2006
Posts: 39
hmm, ok.

does the following code not work?

d = umbraco.cms.businesslogic.web.Document(PageID)
d.getProperty("bodytext").Value = "This is the new body text"

<b style="font-weight: normal;"">I'm not fat, my chest has slipped a bit!</b>
duckie
Posted: Monday, November 06, 2006 1:57:52 PM
Rank: Devotee

Joined: 8/14/2006
Posts: 212
Its the Text-property on the document itself i need to change :)

Signatures suck. No reason to have one.
duckie
Posted: Monday, November 06, 2006 1:58:37 PM
Rank: Devotee

Joined: 8/14/2006
Posts: 212
Currently i publish and unpublish, and that works, seems wrong tho :)

Signatures suck. No reason to have one.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.