Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Kingo Damgaard 157 posts 456 karma points
    Mar 04, 2011 @ 11:56
    Bo Kingo Damgaard
    0

    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

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Mar 04, 2011 @ 12:18
    Richard Soeteman
    0

    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

     

  • Bo Kingo Damgaard 157 posts 456 karma points
    Mar 08, 2011 @ 13:55
    Bo Kingo Damgaard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft