Jump to content

How would I $pages->count this find: $pages->get("$page->rootParent")->find("pageManufacturer!=");


Recommended Posts

Posted

So I am finding the pages from a given rootparent that have a manufacturer assigned, I then turn this into a unique array to display logos, but how would I count this first?

$pages->count("???");

Cheers.

  • cb2004 changed the title to How would I $pages->count this find: $pages->get("$page->rootParent")->find("pageManufacturer!=");
Posted

 

$manufacturers = $pages->get("$page->rootParent")->find("pageManufacturer!=''");
// $count = $manufacturers->count;
$count = $pages->count("has_parent=$page->rootParent, pageManufacturer!=''");

 

 

  • Thanks 1

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...