Jump to content

Inputfield Selector Select ID


Robin S
 Share

Recommended Posts

Inputfield Selector Select ID

Uses the Page List Select inputfield for user-friendly input of page IDs into Inputfield Selector.

Overview

This module adds a feature to Inputfield Selector, which is most commonly seen in Lister (Find) and Lister Pro.

When adding a filter row for "Parent", "Has parent/ancestor" or "ID" the user is expected to enter a page ID to match against. But this is not as user-friendly as it could be because the user may be able to identify the desired page by its title or location in the tree but not know its ID. This is particularly the case for site editors who may not even understand the concept of a page ID.

So this module adds a thunderbolt icon to relevant rows in Inputfield Selector. When the icon is clicked a Page List Select inputfield opens in a modal window, allowing the user to visually select a page from the tree. When the modal is closed with "OK" the ID of the selected page is inserted into the filter row.

select-id

Tip

After a page selection has been made in the modal window the "OK" button will automatically receive focus so if you prefer you can close the modal by hitting the Enter key rather than mousing to the OK button.

Installation

Install the Inputfield Selector Select ID module.

 

https://github.com/Toutouwai/InputfieldSelectorSelectID
https://modules.processwire.com/modules/inputfield-selector-select-id/

  • Like 8
  • Thanks 2
Link to comment
Share on other sites

On 2/4/2020 at 6:13 PM, Jens Martsch - dotnetic said:

A page autocomplete field would be even more userfriendly.

Depends a lot on the use case: if you already know the title of the page you're going to pick (and only have a single item named like that), autocomplete is nice. Otherwise it can be pretty useless (as a selection mechanism): in some cases I've actually had to open a separate tab to browse to the page in the page tree just to find a name I can then type in an autocomplete field ?

  • Like 1
Link to comment
Share on other sites

1 hour ago, bernhard said:

I guess a Page Autocomplete combined with that nice VEX-modal-PageListSelect that Robin shows in his screencast would be a great addition in general for PW ? 

Was actually going to suggest that perhaps the modal window could have both options, but this would be much better ?

  • Like 2
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

×
×
  • Create New...