Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Apr 01, 2011 @ 18:56
    Connie DeCinko
    0

    Query/Report of empty fields

    I need to create a list of pages where my SEO fields are empty.  How do I query the xml to find this?

     

  • Kim Andersen 1447 posts 2197 karma points MVP
    Apr 02, 2011 @ 10:21
    Kim Andersen
    3

    You want to run through all of your nodes and then list the ones that doesn't have a value in the SEO field?

    If that's the case try something like this:

    <xsl:variable name="root" select="$currentPage/ancestor-or-self::root" />
    <xsl:for-each select="$root//*[@isDoc and SEO='']">
    <!-- All of the nodes that has an empty SEO field will be run through in this for-each -->
    </xsl:for-each>

    The above for-each will only run through the nodes that has an empty SEO field.

    /Kim Andersen

  • Connie DeCinko 931 posts 1160 karma points
    Apr 04, 2011 @ 19:42
    Connie DeCinko
    0

    Thanks Kim.  That gave me enough to be dangerous.  I created at least a temporary page that our authors can use to do some housekeeping.  Later, I need to make it secure since no one but authors need see that list.  It would be nice if I could run this in the back end and link right to the content node for editing.

     

  • Kim Andersen 1447 posts 2197 karma points MVP
    Apr 04, 2011 @ 20:28
    Kim Andersen
    0

    Hi Connie, you're very welcome!

    I think you need to make a user control for that if you want it to be a part of the backend as you describe. But it should for sure be possible.

    /Kim Andersen

  • Connie DeCinko 931 posts 1160 karma points
    Apr 05, 2011 @ 17:08
    Connie DeCinko
    0

    Yeah, making this report into a Dashboard report would be the perfect solution.

    Just need to figure out how to do that with XSLT.

     

  • 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

Please Sign in or register to post replies