CMS Ametys provides integrators with numerous methods accessible from XSLT files, facilitating the integration of user-related information.

For more information, click here.

  1. How to use these methods
  2. Reference
    1. getUserContent
    2. getCurrentUserContent
    3. getCurrentUserPage
    4. getUserPage
    5. getUserPage

How to use these methods

Add this code to the header of XSL files:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"                                   ...                                   xmlns:ametys="org.ametys.plugins.userdirectory.transformation.xslt.UserXSLTHelper"                                   ...                                   extension-element-prefixes="... ametys ...">                             

So that you can call any of the functions defined below, using "ametys:functionName(argument1, argument2)"
For example:

TODO                       

Reference

getUserContent

Description:
TODO
Result can be empty if TODO.

Signature :
String getUserContent(String lang, String userIdentity)

Arguments:

Name

Type

Description

lang

String

TODO

userIdentity

String

TODO

Example:

TODO                           

getCurrentUserContent

Description:
TODO
Result can be empty if TODO.

Signature :
String getCurrentUserContent(String lang)

Arguments:

Name

Type

Description

lang

String

TODO

Example:

TODO                           

getCurrentUserPage

Description:
TODO
Result can be empty if TODO.

Signature :
String getCurrentUserPage(String lang)

Arguments:

Name

Type

Description

lang

String

TODO

Example:

TODO    

getUserPage

Description:
TODO
Result can be empty if TODO.

Signature :
String getUserPage(String contentId)

Arguments:

Name

Type

Description

contentId

String

TODO

Example:

TODO                           

getUserPage

Description:
TODO
Result can be empty if TODO.

Signature :
String getUserPage(String contentId, String siteName)

Arguments:

Name

Type

Description

contentId

String

TODO

siteName

String

TODO

Example:

TODO                           

                       

Back to top

User directory