Page MenuHomePhabricator

Add "include subpages" param for "values from namespace"
Open, LowPublicFeature

Description

Author: van.de.bugger

Description:
I have a field in a form to enter user name:

{{{ field | User | property=User | input type=text with autocomplete | values from namespace=User | existing values only | remote autocompletion | default={{REVISIONUSER}} }}}

The minor issue is that if user page has subpages, they are shown in autocompletion list. In this particular case it is not good, because I want to have user entered, not it's subpage. At the same time, sometimes it is desired (for example, I organized hierarchy of regions using subpages).

This, my feature request is: It would be nice to have a control over it. Something like "subpages = yes" or "subpages = off".


Version: unspecified
Severity: enhancement

Details

Reference
bz32375

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:02 AM
bzimport set Reference to bz32375.

Hm - thinking about it more, maybe it should just be that subpages get handled for the main namespace, and ignored for all other namespaces? Would that work in your case?

van.de.bugger wrote:

…subpages get handled for the main namespace, and ignored for all other
namespaces? Would that work in your case?

No. At my site, main namespace is used for articles (text). Entities are represented by pages from namespaces: User, Region, Attribute, Object, etc. In some cases (Region, Attribute) subpages represent natural hierarchy of entities, in other cases (Objects) subpages are not enabled, in other cases (Users) subpages are enabled, but subpages does not represent entities at all.

Thus, I would like to specify whether subpages should be used for autocompletion explicitly.

Thanks for attention.

Aklapper triaged this task as Low priority.Feb 4 2022, 10:51 AM
Aklapper changed the subtype of this task from "Task" to "Feature Request".
Yaron_Koren renamed this task from Including subpages in autocompletion should be settable by namespace to Add field param to include subpages in "values from namespace".May 3 2023, 4:51 PM
Yaron_Koren subscribed.

Renamed again - I see now that my previous rename was not that accurate. (Although neither was the original title: "Autocompletion on pages: no subpages".)

Yaron_Koren renamed this task from Add field param to include subpages in "values from namespace" to Add "include subpages" param for "values from namespace".Jun 1 2023, 3:21 PM