The above code will create a list of all the nodes with a document type of Employee. It's not at all the most beautiful solution, but if you could show us your content structure we could maybe make a little more effective code.
But you can place the above code on any of your pages to show the list of Emplayee's. I hope it makes sense :)
get Employee by sorting in xslt
I want to sort the employees who are Founder/director and put it in main page or home page
from The employees docuemtn types i added
how can i put it in main Home page any ideas of creating an xslt for that
Hi Max
As I don't know your structure of your content, I'll just show you how you can grab all nodes of the type "Employee" in the entire tree.
Try this:
The above code will create a list of all the nodes with a document type of Employee. It's not at all the most beautiful solution, but if you could show us your content structure we could maybe make a little more effective code.
But you can place the above code on any of your pages to show the list of Emplayee's. I hope it makes sense :)
/Kim A
i solved it using this
<xsl:for-each select="$currentPage/ancestor-or-self::root//* [name() = $documentTypeAlias and string(umbracoNaviHide) = '1'] ">
</xsl:for-each>
u can use =1 in case ur hiding a page usign UmbraconaviHide
Thanks Guys
<xsl:variable name="documentTypeAlias" select="string('EmployeeRecords')"/>
Hi Max
Yeah that makes perfectly sense to me. You can change the code a bit, to make it shorter and delete the documentTypeAlias variable like this:
/Kim A
is working on a reply...