|
|
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.
|
|
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>
|
|
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.
|
|
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>
|
|
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.
|
|
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.
|
|
|
Guest |