Jump to content

PageLister Sub-selectors disabled problem


Mackski
 Share

Recommended Posts

Using the page lister to select some custom fields for reporting purposes, all works as expected until I save the bookmark.

This works and returns expected results:
page-lister-1.thumb.jpg.d19fd223492f292b0ffc6f457a2b2e58.jpg

Once saved I get an error:
page-lister-2.thumb.jpg.4ded08a94ee54db1c27410670d1b7108.jpg

Any ideas? Is there a way I can enable subselectors for PageLister?

Link to comment
Share on other sites

I couldn't replicate your error, but reading the source, InputfieldSelector gives that error when allowSubselector is set to false.

// /wire/modules/Inputfield/InputfieldSelector/InputfieldSelector.module

public function sanitizeSelectorString($selectorString, $parseVars = true) {
    // ...
    foreach($userSelectors as $s) {
        
        if($s->quote == '[' && !$this->allowSubselectors) {
            $this->error("Subselectors are disabled"); 
            $userSelectors->remove($s);
            $userSelectors->add(new SelectorLessThan('id', 0)); // forced non match
        }
    
        // ...
    }

    // ...
    return $selector; 
}

Turns out subselectors were actually exclusive to ListerPro module.

// /wire/modules/Process/ProcessPageLister/ProcessPageLister.module

public function getInputfieldSelector() {
    // ..
    $s->allowSubfieldGroups = false; // we only support in ListerPro
    $s->allowSubselectors = false; // we only support in ListerPro
    // ...
}

 

  • Like 1
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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