Closed (fixed)
Project:
Parish Bulletin
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 May 2012 at 04:01 UTC
Updated:
9 Jun 2015 at 02:34 UTC
Jump to comment: Most recent
Comments
Comment #1
Wolfeworks commentedForget 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.
Comment #2
geerlingguy commentedSounds 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.
Comment #3
geerlingguy commentedChanging 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 :)
Comment #4
geerlingguy commentedComment #6
geerlingguy commented