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.
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.
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?
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:
The above for-each will only run through the nodes that has an empty SEO field.
/Kim Andersen
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.
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
Yeah, making this report into a Dashboard report would be the perfect solution.
Just need to figure out how to do that with XSLT.
is working on a reply...