Enabling the XSLT extension for use in your XSLT templates.
Add the following XML snippet to your ~/config/xsltExtensions.config
file:
<XsltExtensions>
...
<ext assembly="uComponents.XsltExtensions" type="uComponents.XsltExtensions.Members" alias="ucomponents.members" />
...
</XsltExtensions>
Here are available methods in the Members
library:
Gets the members by CSV. Returns: Returns an XPathNodeIterator of the member nodes from the CSV list.
| Name | Type | Notes |
|——|——|——-|
| csv | System.String
| |
<xsl:value-of select="ucomponents.members:GetMembersByCsv(csv)" />
Gets the usernames of all the members in the specified group. Returns: Returns a list of all the member names.
| Name | Type | Notes |
|——|——|——-|
| groupName | System.String
| |
<xsl:value-of select="ucomponents.members:GetMembersByGroupName(groupName)" />
Gets the members by node type alias. Returns: Returns an XPathNodeIterator of the member nodes from specified node type alias.
| Name | Type | Notes |
|——|——|——-|
| nodeTypeAlias | System.String
| |
<xsl:value-of select="ucomponents.members:GetMembersByType(nodeTypeAlias)" />
Gets the members by an XPath expression. Returns: Returns an XPathNodeIterator of the member nodes from specified XPath expression.
| Name | Type | Notes |
|——|——|——-|
| xpath | System.String
| |
<xsl:value-of select="ucomponents.members:GetMembersByXPath(xpath)" />
Gets the published Xml. Returns: Returns an XPathNodeIterator of all the member nodes.
<xsl:value-of select="ucomponents.members:GetPublishedXml()" />
Gets the unique id of a member node. Returns: Returns the unique id of a member node.
| Name | Type | Notes |
|——|——|——-|
| memberId | System.Int32
| |
<xsl:value-of select="ucomponents.members:GetUniqueId(memberId)" />
Checks if a member is member of a specific group. Returns: Returns true if member is a member of the group.
| Name | Type | Notes |
|——|——|——-|
| groupName | System.String
| |
| memberId | System.Int32
| |
<xsl:value-of select="ucomponents.members:IsMemberOfAGroup(groupName, memberId)" />
Gets a list of group names from the specific member. Returns: A node-set of all the member-groups from the specific member
| Name | Type | Notes |
|——|——|——-|
| memberId | System.Int32
| |
<xsl:value-of select="ucomponents.members:GetGroupsByMemberId(memberId)" />
Performs a basic/quick search against the Examine/Lucene index for Members. Returns: Returns an XML structure of the Members search results.
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
<xsl:value-of select="ucomponents.members:Search(searchText)" />
Performs a basic/quick search against the Examine/Lucene index for Members. Returns: Returns an XML structure of the Members search results.
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
| useWildcards | System.Boolean
| |
<xsl:value-of select="ucomponents.members:Search(searchText, useWildcards)" />