Display a New Module Template?
Design and Skin Customization
douglas:
Yeah, you shouldn't have to make it a search parameter... this should work.
{jrCore_list module="xxSales" template="campaign_list.tpl" order_by="_created desc"profile_id=$_profile_id pagebreak="10" pager="true" page=$_post.p }
Hi Douglas,
This first one gave me a syntax error which turned out to be the lack of a space between desc" and profile. After I added the space the syntax error disappeared but it showed ALL items not just mine.
Then I added user. to it and it worked. So the working code is:
{jrCore_list module="xxSales" template="campaign_list.tpl" order_by="_created desc" profile_id=$_user.profile_id pagebreak="10" pager="true" page=$_post.p }
douglas:
Or this:
{jrCore_list module="xxSales" template="campaign_list.tpl" order_by="_created desc" search1="profile_id = `$_profile_id`" pagebreak="10" pager="true" page=$_post.p }
Also, I'm not 100% sure why you would need the search1="_item_id > 0" in the jrCore_list either.
The second code gave me a blank. So I added .user to it and the working code is:
{jrCore_list module="xxSales" template="campaign_list.tpl" order_by="_created desc" search1="profile_id = `$_user.profile_id`" pagebreak="10" pager="true" page=$_post.p }
Aside from that you are absolutely correct. Two search parameters were not necessary, in fact it can be done without any like your first example.
Oddly enough, both your versions did not require the { } brackets but if I remove them from my version it just gives a blank. Go figure - lol.
updated by @ken-rich: 05/31/16 08:10:35PM