Closed (fixed)
Project:
Automatic Nodetitles
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Dec 2009 at 21:05 UTC
Updated:
7 Aug 2018 at 05:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
zythyr commentedHelp???
Comment #2
bassplaya commentedI have come up the exact same problem and after a three hours search and trial and error I found a solution.
I have to say that it works for me now on my local install of Drupal 6, so let's hope it's going to do the same thing on the server.
I'm also not really a coder so I'm not sure if I'm doing this correctly. If anyone knows how to do it better, please correct me.
Here's the code you'll have to use and it will do exactly what you want it to do: truncate characters of a replacement pattern for automatic node titles.
The $mystring is something you can name whatever you want but make sure it doesn't conflict with any other string coz I might think that it could.
Comment #3
fagono patch.
Comment #4
mototribe commentedexcellent, that worked for me too (Drupal 7).
Thank you!
Comment #5
giorgio79 commentedWould be great to have this as a checkbox option next to the auto title field :)
Similar to #668308: Trim the title to limited amount of characters and add ellipsis
Comment #6
manish-31 commentedWith this patch I have restricted the maximum length of the generated title to be 70 characters, which was 255 characters earlier. Please review this patch.
Comment #8
gaurav.kapoor commented