ProcessWire icon indicating copy to clipboard operation
ProcessWire copied to clipboard

InputfieldPageAutocomplete does not query id

Open valieand opened this issue 9 years ago • 2 comments

If you have thousands of pages and these pages do not have unique identifier other than page id, then it should be possible to use InputfieldPageAutocomplete (as other inputfields simply run out of memory) with query-able {id} field (as the only unique identifier).

But it doesn't work.

valieand avatar Apr 30 '16 23:04 valieand

The InputfieldPageAutocomplete is meant for matching text fields only. You might be able to get it to work if you change the operator to "=" (exact match), but there's a good chance that still won't work because this Inputfield was created specifically for text matching, not for numbers. Number indexes and text indexes are fundamentally different things at the database level.

ryancramerdesign avatar Jun 02 '16 15:06 ryancramerdesign

Does it mean that problem should be resolved through CUSTOM inputfield (a-la InputfieldPageAutocomplete but that works on number indexes)? Or right solution is to have it in CORE (updated InputfieldPageAutocomplete or new inputfield)?

valieand avatar Jun 02 '16 15:06 valieand