Jump to content

Recommended Posts

Posted

I can't find out this "bug"

$query = 'template=shop_item,item_category=1101';
$items = $pages->findMany($query);
echo count($items);

if user is logged in. The result is 1, But if not the result is 0. 
 

Posted

findMany() behaves like find() in that it does hide unpublished/hidden or otherwise inaccessable pages from non-privileged users. Try include=hidden or check_access=0 if you need to alter that behaviour.

  • Like 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...