Users.getTemplateGalleryPrefs (Method)

Returns a structure containing template gallery preferences for the current or default user.

Returns:

Users_GetTemplateGalleryPrefs_Result (struct)

Each row of the returned query results has the following fields:

Field Name Type Description
DefaultView TemplateGalleryView String identifying how CommonSpot should display the template gallery; for example, 'Listing' or 'Categorized'.

Arguments:

Name Type Required Description
forDefaultUser Boolean Optional. Defaults to '0'. Boolean flag which when set to true tells CommonSpot to return the default settings for users who have personalized template gallery settings. If this is false, CommonSpot returns the current user's settings.

Context:

License Requirements (none)
Permission Requirements (none)
Deny Context (none)
Require Context Authoring
Author Lock (not required)
Transaction Logging Transaction logging is disabled for this method
Customization Customization is not supported for this method.

Error Codes:

None

Notes:

None