Carma gal custom
From TMM Wiki
Revision as of 16:16, 12 November 2010 by TMMStephenY (talk | contribs) (Created page with '{{CARMA1 Manual | show_template_functions_section = true }} * Purpose: display custom data for gallery and video content * Usage: {carma_gal_custom galid=1} * Required parameter…')
- Purpose: display custom data for gallery and video content
- Usage: {carma_gal_custom galid=1}
- Required parameters: galid
- Optional parameters: tpl, site, name, assign_prefix, data_only, assign, display_on_assign
- Default Templates Used: gal_custom_fields
- Variables created: {$carma_custom_data}
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
galid | Display this gallery's extended data | Any valid gallery number | None. You must provide a valid gallery number | galid="123" |
tpl | Template to be used other than gal_custom_fields | The name of the template used to display this. | gal_custom_fields. | tpl="template_name" |
siteid | Overrides the default siteid | Any valid Site ID number | None. | siteid="123" |
name | Sets the name of the custom field | Any valid name accepted by NATS | None. | name="custom_field_name" |
assign_prefix | Sets the prefix of the variable returned | Any text you want to use as a prefix | None. | assign_prefix="prefix_text" |
data_only | Loads up data for the template. | 1 or 0, true or false | 0 | data_only="0" |
assign | Assigns the custom output to a different variable | Any text you want to define the variable. | None | assign="variable" |
display_on_assign | Displays the custom template only if the assign variable is used. | 1 or 0, true or false | 0 | display_on_assign="0" |
You must set the galid in order to use this template function.
Description
Retrieve Custom Data from a content set, a single picture, or an actor. The custom data can be accessed using the following variable created:
- $carma_custom_data