Problem/Motivation

The Title field is disabled in the bulletin content-type so all bulletins appear in the /admin/content page with the same (no) title, which makes identifying a given bulletin nearly impossible, especially when the update date is unrelated to the actual date of the bulletin.

Proposed resolution

Ideally the bulletin date could be used to generate a title, but any solution starts with including a Title field. The attached patch does that.

CommentFileSizeAuthor
parish_bulletin_title.patch479 bytesWolfeworks
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wolfeworks’s picture

Status: Active » Closed (won't fix)

Forget the patch, if you really want to enter a title for every bulletin you add you can edit the bulletin content type to enable/require it, but the solution I found is to install the auto_nodetitle module. I use a 1-liner to automatically insert a title based on the bulletin date:

return 'Bulletin for ' . substr($node->field_bulletin_date['und'][0]['value'], 0, 10);

This module also allows you to update existing bulletins to give them a title too.

I'm closing this issue but it might be worthwhile to add a note about auto_nodetitle to a README.txt file.

geerlingguy’s picture

Title: Bulletins are difficult to identify in the /admin/content page without a title » Mention method for changing pattern for generated Bulletin node titles
Version: 7.x-1.0 » 7.x-1.x-dev
Status: Closed (won't fix) » Needs work

Sounds like a good suggestion - I'll keep this issue open to add a line about auto_nodetitle, like "If you would like to customize the titles for generated Bulletin nodes, you can install auto_nodetitle and configure the title for the Bulletin node type."

Another possibility is adding a 'pattern for generated bulletin titles' to the admin page so people could put in !date or some other variables and set the title how they like without using an extra module.

geerlingguy’s picture

Title: Mention method for changing pattern for generated Bulletin node titles » Allow editing of automatically-generated Bulletin node titles

Changing the issue title; I think I'll just add a simple configuration field in the settings where you can put in a string with a placeholder (like the bulletin creation date) for the title. That way the configuration is still simple, auto_nodetitle isn't required for this simple change, and people should be happier :)

geerlingguy’s picture

Title: Allow editing of automatically-generated Bulletin node titles » Allow editing of automatically-generated Bulletin node title pattern
Issue summary: View changes

  • geerlingguy committed 20efa82 on 7.x-1.x
    Issue #1586352 by Wolfeworks, geerlingguy: Allow editing of...
geerlingguy’s picture

Status: Needs work » Fixed

  • geerlingguy committed c6b1937 on 7.x-1.x
    Issue #1586352 by geerlingguy: More helpful help text for the Bulletin...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.