Copied to clipboard

Flag this post as spam?

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


  • AWatters 33 posts 174 karma points
    Jan 25, 2022 @ 18:07
    AWatters
    0

    Bulk change to umbracoNaviHide on 600 random nodes.

    Umbraco site version 7.7.4, using uSkinned

    Client wants to exclude a load of random pages from the sitemap, around 600 altogether. There is no common document type - a few of these, a few of those. I was wondering was there a straightforward way of doing this via the database, but my knowledge of the schema is a bit lacking. I think I have figured out the relevant tables:

    [cmsPropertyType] where Alias is umbracoNaviHide = 278, say
    
    join to [cmsPropertyData] where propertytypeid = 278 
    
     join to [cmsDocument] where nodeId = 10127 and newest = 1 - join on versionId
    

    (Please excuse above, I haven't actually written any SQL yet, just figuring out how they all fit together)

    But then I still need all the node Ids - if we are going to have to scrounge up all the node Ids we may as well just change the setting in the admin area. However we do have the URLs they want to exclude - would there be an easy way to use the URLs instead of the node Id?

    Or is there a package which would allow bulk updates like this?

    I am only sussing out feasability at this stage so really just wondering if it's realistic at all.

    Thanks

  • AWatters 33 posts 174 karma points
    Jan 25, 2022 @ 18:40
    AWatters
    0

    I found this: https://our.umbraco.com/packages/developer-tools/content-maintenance-dashboard-package/feature-requests/86135-bulk-edit-property

    and think it might be easier to do it in code rather than in SQL. But would still appreciate any insights or pointers :) Thanks

Please Sign in or register to post replies

Write your reply to:

Draft