solved Using the Form designer checkbox with a jrCore_list

Developer Networks
Developer Networks
@developer-networks
8 years ago
566 posts
I have a check box that allows the administrator to check a forum post to be featured.

so in my jrCore_list i have
 {jrCore_list module="jrForum" search1="forum_featured = on" search2="forum_cat like %" template="featured_forums.tpl" limit="10"}

search1 should be sorting out and listing the featured checked forums in the array but it dosent.

In my debug it appears the array returns with nothing at all. However there are in fact "featured_forms that do = on"

Moreover,
if I change search1 to "forum_featured != off" it lists them but also lists the nulled ones
so... any ideas why this is happening and how I can resolve?

Thanks


updated by @developer-networks: 01/19/17 10:51:36PM
paul
@paul
8 years ago
4,326 posts
Try adding the quota_check=false to the call -

{jrCore_list module="jrForum" search1="forum_featured = on" search2="forum_cat like %" template="featured_forums.tpl" limit="10" quota_check=false}

Just by way of an explanation, the forum posts likely belong to profiles who do not have the Forum module enabled in their quota, so that is why the jrCore_list is not returning those items. The quota_check parameter overides that test.


--
Paul Asher - JR Developer and System Import Specialist
Developer Networks
Developer Networks
@developer-networks
8 years ago
566 posts
That worked. I will add that one to my notes. Thanks so much!

Tags