I can't get autopulish to work when importing. The nodes appear as published but even a "Republish entire site" or "Publish" all subnodes works - it's doesn't display in the frontend.
The nodes appear in the cache BUT under the "autopublished" node it says <umbracoNaviHide></umbracoNaviHide> instead of a manually "Save and Publish"'ed node where is says <umbracoNaviHide>0</umbracoNaviHide>. Is that CMSImport that has an error or is it the Umbraco core, that doesn't publish properly?
This is changed in the Umbraco core then. I assume you din't assign a value for UmbracoNaviHide? In previous versions the default value 0 was assigned by the core, don't know why it doesn't now. I'll add this to my issue list for the next release.
For now as a workarround what you could do is add a dummy column in your datasource and then always assign the value 0. Or use an event handler on the BeforeSave event to set the value top 0. This section of the Wiki describes the Event model
I did some further testing. When I use Document.MakeNew(), .Save(), .Publish() the true/false properties dont get populated with a value (0 or 1), just blank. I tested in 4.5.2 and it's the same, although in 4.5.2 it puts <umbracoNaviHide /> in the cache file, instead of <umbracoNaviHide></umbracoNaviHide> in 4.6.1
Problem with autopublish in 4.6.1?
Hi Richard
I can't get autopulish to work when importing. The nodes appear as published but even a "Republish entire site" or "Publish" all subnodes works - it's doesn't display in the frontend.
The nodes appear in the cache BUT under the "autopublished" node it says <umbracoNaviHide></umbracoNaviHide> instead of a manually "Save and Publish"'ed node where is says <umbracoNaviHide>0</umbracoNaviHide>. Is that CMSImport that has an error or is it the Umbraco core, that doesn't publish properly?
Regards
Bo Kingo
Hi Bo,
This is changed in the Umbraco core then. I assume you din't assign a value for UmbracoNaviHide? In previous versions the default value 0 was assigned by the core, don't know why it doesn't now. I'll add this to my issue list for the next release.
For now as a workarround what you could do is add a dummy column in your datasource and then always assign the value 0. Or use an event handler on the BeforeSave event to set the value top 0. This section of the Wiki describes the Event model
Demo 2 of this page shows an example of the BeforeSave Event.
Hope this workarround helps you for now,
Richard
Hi Richard
I did some further testing. When I use Document.MakeNew(), .Save(), .Publish() the true/false properties dont get populated with a value (0 or 1), just blank.
I tested in 4.5.2 and it's the same, although in 4.5.2 it puts <umbracoNaviHide /> in the cache file, instead of <umbracoNaviHide></umbracoNaviHide> in 4.6.1
Wonder if it's a bug then, or just by desgin.
/Bo Kingo
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion