When we create a new document in a user control (document.makenew()) what is the best way to publish a node so it's avaliable on the front end straight away with out causing slow downs for other users?
We have a job posting board which potentially could have new jobs posted ever 5 minutes. If the the whole site xml needs to recached what is the impact of this going to be?
Also what is the prescribed way to "save" and "publish like below?
This is 90% working however I have a situation where 1 property in the document that isn't getting published. The page is active on the front end and a custom datatype(checkboxlist) is fine but a property of type rte isn't getting publish. I'm forced to manually go into the gui and press publish and then works fine. The text is getting saved just not published. ANy idea's?
That is interesting. I know there have been some issues using the RTE as custom control in user controls, but as far as the publishing goes I have not seen this.
.net Publishing Nodes
When we create a new document in a user control (document.makenew()) what is the best way to publish a node so it's avaliable on the front end straight away with out causing slow downs for other users?
We have a job posting board which potentially could have new jobs posted ever 5 minutes. If the the whole site xml needs to recached what is the impact of this going to be?
Also what is the prescribed way to "save" and "publish like below?
d.Save();
d.Publish(new umbraco.BusinessLogic.User(0));
umbraco.library.UpdateDocumentCache(d.Id);
Hi Skiltz,
If you are trying to publish individual items, you should take a look at the following:
So, the process would be something like this:
Hope this helps as this should not force an update of the document cache everytime you post a new job.
Thanks,
Nik
Nik
This is 90% working however I have a situation where 1 property in the document that isn't getting published. The page is active on the front end and a custom datatype(checkboxlist) is fine but a property of type rte isn't getting publish. I'm forced to manually go into the gui and press publish and then works fine. The text is getting saved just not published. ANy idea's?
And if I open umbraco.config its in there.
That is interesting. I know there have been some issues using the RTE as custom control in user controls, but as far as the publishing goes I have not seen this.
@Dirk, didn't you have something on this?
Cheers,
Nik
I have posted a Tweet for Dri k to chime in here. Thx.
I'm not actually using RTE in the front end yet. This was just a normal asp:textbox but saving to a property of type rte.
You need to update the XML cache afte you publish:
umbraco.library.UpdateDocumentCache(doc.Id)
Ups i didn't see the post that you already checked that is is in the umbraco.config, so my previous post is probably not correct.
Anyway, i thought you had to call UpdateDocumentCache before it would be "properly published"??
When I changed the control to the RTE it actually published correctly. Thanks for the comments/suggestions.
is working on a reply...