Copied to clipboard

Flag this post as spam?

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


  • Devin 87 posts 251 karma points
    Sep 24, 2013 @ 11:46
    Devin
    0

    Query - Select all nodes using specific image

    Hi guys,

    Apologies if this is being posted in the wrong section. I didn't know where else to put it.

    I have multiple websites running under one Umbraco installation. Is there a way to query every node to see if it uses a specific image?

    I need to remove a specific image from every page on every website, but it would be difficult going through each one to find if it's there or not.

    Thank you.

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Sep 24, 2013 @ 12:04
    Jeroen Breuer
    1

    Here are some query examples: http://our.umbraco.org/documentation/Reference/Mvc/querying

    You can probably use something like Descendants() from the top node to do a check if the image property exists and has a specific image.

    Jeroen

  • Devin 87 posts 251 karma points
    Sep 24, 2013 @ 12:28
    Devin
    0

    Thanks Jeroen, that's a great help.

  • 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.

Please Sign in or register to post replies