(primary question)
How and where does one override the default 'personal blog' title string without hacking the core drupal code directly, which would be an unacceptable hack IMO?
For example, what if someone wants personal blog title strings to appear without the user name in the title string and without the -'s blog- text appended to the blog title string - as the blog.module code does with the hardcoded text string at line 127 of the blog.module code (as noted below)?
(secondary question - but tightly coupled with primary question above)
What if an administrator would like individual users to be able to provide their own custom blog title strings (one's that don't include the "{user name}'s blog" information above)? How does one go about providing a facility for individual user's to customize their blog title strings, thereby overiding the hardcoded logic within blog.module?
(this is NOT a localization usage...)
(tertiary question - don't answer without answering primary question first)
Why isn't there are a user interface accessible setting for this within some part of the blog admin section of the administration area ?
/* drupal core code excerpt - blog.module - line 127 */
if ($account->uid) {
drupal_set_title($title = t("%name's blog", array('%name' => $account->name)));
Comments
answer to all three..
You'd have to make a module. That line of links is both a blessing and a curse.
IMO if there were an admin setting for this it would have to be in the user profile, where a user/admin could 'name their blog'.
Mod
Answer to your primary question: http://drupal.org/node/47205#comment-90021
Unfortunately, this is a site-wide setting not per-user setting. To enable that you'll have to make a module and use that instead of blog.module or make a module that injects a page-title when the blogpage is rendered (but I think this last one would be *really* messy and depend on the theme).
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
locale.module..
Hi
(your primary question)
A better way of changing text fields in Drupal sites is to create your own "language". I always create a [client] language in Drupal using the locale module so they can bespoke the English for example to suit the site.
that for me is a far better way of doing it than hacking modules.
It also allows you to change "joe blogg's personal blog"...which appears as
%username 's personal blogin the MANAGE STRINGS page of the localisation module.As an example, on an artist/band site, most prefer to call a "blog" a "Journal", which is a less geeky term. Using the locale.module you would just search for the string "blog" and change text strings that have "blog" in it, to use "journal" instead.
By making a new copy of the default language, it means you can always revert back and keeps everything tidier.
hope that helps
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate