I've found that to get the correct order of items, and to get my content properly showing up on the site, that I have to either delete the umbraco.config file, or publish the entire site, or both. Is there a reason for this?
When you change the sort order in the content tree you need to refresh the XML cache in order for these changes to take effect on the website itself.
Since the umbraco.config is where umbraco "looks" in order to know what and how to show the site it makes sense that the changes needs to be reflected in this file I think.
But you should not need to delete the umbraco.config file each time...just right click the "content" node and hit "Republish entire site", which refreshes the XML cache. (Maybe that's what you're already doing but I mention it to make sure that's how since I think the "Republish entire site" can be a bit confusing since you could also publish the pages over again by right clicking the root node of the site and make an new publish of all the nodes).
No refreshing the XML cache does not publish your unpublished nodes. It only updates the umbraco.config file.
If it's not published to the database it will not appear in the umbraco.config file.
But once you have got your sort order the way you want it (published and not published nodes) only the published nodes will be shown. Once you publish the unpublished nodes they will be shown in the order you have placed them in the back office...if that makes english? :-)
Think it's a bug in the software also. When you sorted nodes it shoudl update the document cache automatically. Might be worth to file a bug on Codeplex umbraco.codeplex.com.
Why do I have to keep publishing entire site?
Hi,
I've found that to get the correct order of items, and to get my content properly showing up on the site, that I have to either delete the umbraco.config file, or publish the entire site, or both. Is there a reason for this?
Is there a way around having to always do this?
Cheers,
Sean
Hi Sean
When you change the sort order in the content tree you need to refresh the XML cache in order for these changes to take effect on the website itself.
Since the umbraco.config is where umbraco "looks" in order to know what and how to show the site it makes sense that the changes needs to be reflected in this file I think.
But you should not need to delete the umbraco.config file each time...just right click the "content" node and hit "Republish entire site", which refreshes the XML cache. (Maybe that's what you're already doing but I mention it to make sure that's how since I think the "Republish entire site" can be a bit confusing since you could also publish the pages over again by right clicking the root node of the site and make an new publish of all the nodes).
/Jan
Ah, ok. Thanks Jan, that makes some sense. By clicking 'Republish entire site' will that publish my unpublished items as well?
What do I do if that's the case, and I don't want them to be published, however I want the correct sort order to show up for my other nodes?
Hi Sean
No refreshing the XML cache does not publish your unpublished nodes. It only updates the umbraco.config file.
If it's not published to the database it will not appear in the umbraco.config file.
But once you have got your sort order the way you want it (published and not published nodes) only the published nodes will be shown. Once you publish the unpublished nodes they will be shown in the order you have placed them in the back office...if that makes english? :-)
Hope this makes sense.
/Jan
Awesome, thanks Jan. That makes perfect sense, and makes things very easy for me.
Thank you for explaining it to me, I appreciate your help.
- Sean
Think it's a bug in the software also. When you sorted nodes it shoudl update the document cache automatically. Might be worth to file a bug on Codeplex umbraco.codeplex.com.
Cheers,
Richard
OK cool, thanks Richard, I'll have a look at putting it in there.
Cheers,
Sean
is working on a reply...