arr.create
- Build an array
- It returns: array
Syntax:
1 2 3 4 |
[arr.create set=”variable”] [key1]value1[/key1] [key2]DESC[/key2] [/arr.create] |
E.g – “variable” you need to place variable name from which you can access an array
1 2 3 4 5 |
[arr.create set=”template.args”] [post_type]psuedo_poetries[/post_type] [order]DESC[/order] [orderby]ID[/orderby] [/arr.create] |
_________________________________________________
aw2.set_array | module.set_array | template.set_array
Set an array
Syntax:
1 2 3 |
[aw2.set_array <scope>.variable_name key1=”value1″ key2=”value1″ /] [template.set_array variable_name key1=”value1″ key2=”value1″ /] [module.set_array variable_name key1=”value1″ key2=”value1″ /] |
Example:
1 2 3 |
[aw2.set_array module.args key1=”value1″ key2=”value1″ ] [module.set_array args key1=”value1″ key2=”value1″ ] [template.set_array args key1=”value1″ key2=”value1″ ] |
_________________________________________________
arr.set
Set a value in an array
syntax –
1 2 3 4 |
[arr.set setting_variable key1=”value” key2=”value3″ key3=”value3″ /] |
Example:
1 |
[arr.set module.args post_id=”{template.post.ID}” content=”{template.post.post_content}” /] |