public function findPublishedCollectionPageBySlug($collectionSlug, $pageSlug)
    {
        $this->makeCollectionPageSelect();
        $this->sql .= " and p.published_date <= '{$this->today()}'";
        $this->sql .= ' and c.slug = ? and p.slug = ?';

        $this->bindValues[] = $collectionSlug;
        $this->bindValues[] = $pageSlug;

        return $this->findRow();
    }
public function findPublishedCollectionPageBySlug($collectionSlug, $pageSlug)
    {
        $this->makeCollectionPageSelect();
        $this->sql .= " and p.published_date <= '{$this->today()}'";
        $this->sql .= ' and c.slug = ? and p.slug = ?';

        $this->bindValues[] = $collectionSlug;
        $this->bindValues[] = $pageSlug;

        return $this->findRow();
    }
public function findPublishedCollectionPageBySlug ( $ collectionSlug , $ pageSlug ) { $ this -> makeCollectionPageSelect ( ) ; $ this -> sql .= " and p.published_date <= '{$this->today()}'" ; $ this -> sql .= ' and c.slug = ? and p.slug = ?' ; $ this -> bindValues [ ] = $ collectionSlug ; $ this -> bindValues [ ] = $ pageSlug ; return $ this -> findRow ( ) ; }
Find Published Collection Page By Slug

Finds collection page by collection slug and page slug
@param  bool  $published Filter on published collection pages
@return mixed            Array | null
Find Published Collection Page By Slug