Jump to content
SwimToWin

Un-global Title field has unintended consequences

Recommended Posts

When webmaster un-globals the Title field (for instance to have a person template with first and last name), there are some unintended consequences. For a site that uses Title on 90% of templates, un-global isn't really useful because it makes adding a new page harder for novice editors:

  1. Title field disappears from "Add New" dialog.
    1. When I "Add New" page using a template that DOES use the Title field, then the Title field is no longer shown in the Add New dialog window (in this window, an editor will enter Title and Name - and the page is then created and shown to the user in edit mode).
  2. No other "pseudo-title" fields can be added to the "Add New" dialog (and it's not possible to skip the two-step page creation process).
  3. (There is no simple way to pre-populate the Title field on templates.)

Consider these flows:

When Title field is global:

Steps:

  1. From Page Tree, press New to create a new page,
  2. "Add New" page is shown with Title and Name fields,
    1. (User may need to select Template)
    2. Enter Title (Name is automatically set),
  3. The new page is shown - start editing fields

Observation: Title and Name are shown on same page (good!). Page is created with little mental effort.

When Title field is un-global and Page Template has a Title field:

Steps:

  1. From Page Tree, press New to create a new page,
  2. "Add New" page is shown with Name field (but Title is no longer shown when template DOES have the Title field),
    1. (User may need to select Template)
    2. Enter Name,
  3. The new page is shown - start editing fields ("where am I?").
    1. Enter Title (user no longer sees Title and Name at the same time)

Observation: Redundant entries (Name and Title are often identical). Name and Title are separated across pages.
Better: Show Title and Name on "Add New" page, use Title to set Name (as when Title field is global).

When Title field is un-global and Page Template doesn't have a Title field:

Setup:

  1. Webmaster goes to Template -> Advanced to set "List of fields to display in the admin Page List" (example: "{foo} - {bar}"). Thanks to Robins S for pointing this out.
  2. Webmaster cannot specify "Title" fields to be filled in on the "Add New" page.

Steps:

  1. From Page Tree, press New to create a new page,
  2. "Add New" page is shown with Name field,
    1. (User may need to select Template)
    2. Enter Name,
  3. The new page is shown - start editing fields ("where am I?").

Better: Setup allows webmaster to specify "Title" fields to be filled in on the "Add New" page.

Even better:
Skip the "Add New" dialog page and go directly to the resulting Title page (when only one Template can be selected).
Maybe by adding a GUID or other temporary page name that is later renamed?

Also I don't think it's possible to pre-populate the Title field in the Administration? (for details, see Pavle's comment).

See also: Creating a page without a title? (from 2012 - so I think it's OK to begin a new thread).

Share this post


Link to post
Share on other sites

I think you should post this in processwire-requests, so we are able to vote for this feature and it does not get burried here in the forums. 

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By SwimToWin
      I love nice urls - but I also recognize that they are not always needed nor desired due to the additional steps in page creation.
      Suggested solution:
      Page ID Page ID is a per-template auto-incrementing number. No. series might be added on a per-template basis (to be configured by webmaster). Page url Replace the full page url with an ID (as an optional configuration). Page url might then change to something like: www.example.com/page/1234 Editing (Page Tree is much less important in this scenario.) Like Drupal's Node IDs (nid).
      Why this change? Name may reveal confidential info. Name may not matter on certain templates. Page creation is no longer a two-step process; much like adding a row in MySQL.
      Benefit: This change will make it easier to use ProcessWire for other purposes than websites ("Oh - so ProcessWire is also a finance system!").
    • By SwimToWin
      Skip the "Add New" dialog page on Page Tree and elsewhere and go directly to the resulting page that shows all page fields right away. Page creation is now improving from being a two-step to becoming a one-step process.
      Scenarios:
      When only one Template can be selected: Skip the intermediate "Add New" dialog page by adding a GUID or other temporary page name that is later renamed. Show the final editing page so user can start editing all fields right away On Save: Page name is renamed with title When multiple Templates can be selected: Ask user to select Template on clicking New (before leaving the Tree Page). Then use the "one Template" flow above. (I am aware why the Page Name is needed.)
    • By Robin S
      In response to a wishlist request...
      Field Save + Add New
      Adds a "Save + Add New" button when editing a field.

      Usage
      Install the Field Save + Add New module.
      When editing a field, click "Save + Add New" if you want to save the current field and start the process of adding a new field.
      Note: The button will not redirect you to "Add New" if you are performing some special action such as duplicating a field or adding a field to a template.
       
      https://github.com/Toutouwai/FieldSaveAdd/
    • By Orkun
      Hi Everyone
      Can I change the type of the title field from PageTitleLanguage to PageTitle per template and not only global? 
      Greetings
      Nukro
    • By benbyf
      How does one set a new field's global flag in a module?
      i.e.
      // create new field object $f = new Field(); // get a field type $f->type = $this->modules->get("FieldtypeCheckbox"); $f->name = $this->fieldName; $f->label = 'Publish Page later'; // somehow set flag to global??? $f->save(); // save the field  
×
×
  • Create New...