Difference between revisions of "Carma newest"
From TMM Wiki
Jump to navigationJump to searchm |
(No difference)
|
Revision as of 12:35, 17 December 2008
carma_newest
- Purpose: Display the newest content available.
- Usage: {carma_newest count=5 section=1 type=any}
- Required: none
- Optional: count, start, section, site, type, tpl, easy_keys, data_only, assign_prefix, assign, display_on_assign, actors, locations, categories, groups, dupe
- Default Templates Used: newest_items
- Variables created: $carma_newest_content, $params
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
count | Show this many comments | Any whole number greater than zero | 5 (Shows 5 comments) | count=20 |
start | Don't show the comments lower than this number | Any whole number, zero or greater | 0 (Shows all comments) | start=20 |
section | Get items from this section. | A comma-delimited list of section I.Ds. or a specific section I.D.. | None. Uses all sections | section="123" |
site | The site ID to use | Any valid site I.D. | None. Get results from all sites | site="123" |
type | What type of items to display | gal, video, any | any | type="gal" |
tpl | Template to use | Any valid template name | newest_items | tpl="my_template" |
easy_keys | Use continuous keys instead of keys based on the gallery's I.D. in the $carma_content array | 1 | None. Does not use continuous keys | easy_keys="1" |
data_only | Put the comments in an array | 1 | None. Displays comments | data_only=1 |
assign_prefix | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | None. (No prefix is used) | assign_prefix="myvar" |
assign | Name of the Smarty variable that stores the output | Any valid Smarty variable name | None. Output is displayed, not stored | assign="my_var" |
display_on_assign | Display comments even when the assign parameter (above) is used | 1 | None If assign is used, no comments are displayed | display_on_assign=1 |
actors | Get information about actors | 1 | None. Does not get this information | actors="1" |
locations | Get information about locations | 1 | None. Does not get this information | locations="1" |
categories | Get information about categories | 1 | None. Does not get this information | categories="1" |
groups | Get information about groups | 1 | None. Does not get this information | groups="1" |
dupe | Don't publish duplicate sets | 1 | None. Will publish duplicate sets | dupe="1" |