solved Pass extra parameter to template

sbhadauria
@sbhadauria
10 years ago
129 posts
How can I pass extra parameter in below mentioned function:

{jrCore_list module="module" search="search something" template="some_template.tpl"}
updated by @sbhadauria: 09/04/14 10:36:03PM
michael
@michael
10 years ago
7,746 posts
Check out the docs here:

"{jrCore_list}"

https://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

The part you want is the ??? ?? in the function definition:
Quote: anything you pass in as a parameter will be returned in the template. eg: pink_elephant="hello world" will output "hello world" if you use {$pink_elephant} in the template.
sbhadauria
@sbhadauria
10 years ago
129 posts
{jrCore_list module="module" search="search something" template="some_template.tpl" pink_elephant="hello world"}

Not working...
michael
@michael
10 years ago
7,746 posts
Try {$_params.pink_elephant}

Also check out the {debug} docs, probably useful.

"{debug}"
http://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug
sbhadauria
@sbhadauria
10 years ago
129 posts
Thanks michael.
{$_params.pink_elephant} is working.

Tags