I would be great to have a option to activate the user titles only on user profiles
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | user_titles-694936-7.patch | 2.45 KB | rooby |
| #2 | user title.png | 4.41 KB | Babalu |
I would be great to have a option to activate the user titles only on user profiles
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | user_titles-694936-7.patch | 2.45 KB | rooby |
| #2 | user title.png | 4.41 KB | Babalu |
Comments
Comment #1
Babalu commentedComment #2
Babalu commentedor maybe per node-type
on two node-types i have deactivated the use of the submitted by ...
just the user title looks a little strange (e.g. in terms of use)
Comment #3
rooby commentedBecause user titles are displayed from your theme you have complete control over where they are displayed and where they are not.
If you don't want titles to display on nodes don't print them in your node.tpl.php file.
Or if you want titles only to display in some nodes you can either use an if statement with node type or have a node-[type].tpl.php files for each type.
As for the user profile screen, There could be an option on the settings screen to disable the display on that screen.
Comment #4
Babalu commentedit would be much easier to have a option for that.
i'm not a not a programmer :)
can someone please make a patch to have a node type option for that ?
Comment #5
rooby commentedIt would be possible to populate the template variable for specific node types based on a setting but you still have to print
the title in the theme.
Having to print things from modules in themes is not uncommon in drupal.
I have an idea about how to fully automate the process so there is no need for copy and paste of code into theme.
I'll try it out when I get a chance.
I think that would be good for users who don't need to put the title somewhere specific or don't want to look at code at all.
It would still be flexible for people to print anywhere if they want but they wouldn't have to.
I'll create an issue for that.
Comment #6
rooby commentedI'll look into doing this one too.
Comment #7
rooby commentedHere is a patch that adds this functionality.
This applies over the the patch in #453190: Role based titles so you have to apply that one first.
Comment #8
agileware commentedCommitted and in 6.x-1.0-beta3