Using XSL to display all element fields in Sitecore CMS

I am using a debug device in the sitecore (6) file that will display the page "developer" view when the URL is added with a specific query string (which activates the device). On the page, I have the element name, template, branch wizard, information about the workflow, etc.

I would like to list all the fields in an element using xsl rendering - preferably not including hidden (__) fields, but it doesn't matter if they exist.

I tried:

<xsl:for-each select="$sc_item/fields/field">

but this list only lists five fields for each item:

  • __ created
  • __ revision
  • __ updated
  • __ updated
  • __ lock

Sitecore files use sc functions to access field values, but I need to get the field names first.

Any help is much appreciated!

[Edit] - xml, !

+3
1

, : XML!

+4

Source: https://habr.com/ru/post/1706713/


All Articles