Mackski Posted August 20, 2017 Share Posted August 20, 2017 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: Once saved I get an error: Any ideas? Is there a way I can enable subselectors for PageLister? Link to comment Share on other sites More sharing options...
abdus Posted August 20, 2017 Share Posted August 20, 2017 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 // ... } 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now