I'm using this with Advanced User Profile. Under "Automatic title generation", I have it set to "Automatically generate the title and hide the title field" and the pattern is "[author-name]".
So I want my site to store the user name as the title of the page but not display it. Although it is successfully hiding the title from the panels view of the user profile (as I want), it is also hiding it from the title that shows up on Firefox.
ie. Across the top bar of my browser window, it should read "User Name | Site Name" when viewing user profiles. Instead it reads only "| Site Name" which looks messy.
Under the Panel settings, I have "Title type: No title".
Is this the expected behavior for these settings? Is there any way around it?
Thanks.
Comments
Comment #1
uomeds commentedUpdate: The Panel title settings seem to dictate the heading title in the browser. No Panel title, no browser title.
Comment #2
Drake commentedI've got the same issue...
I've enabled the option " Automatically generate the title and hide the title field" in conten profile.
But the title is visible in user profile -> view!!!
is there an workaround???
Comment #3
3dloco commentedsubscribing
Comment #4
Kristina-2 commentedI'm having something similar occur.
I'm using:
drupal 6.15
content profile 6.x-1.0-beta4
auto nodetitles 6.x-1.x-dev
When someone registers some of the fields from the user profile display and are required on registration. This creates the user profile.
The title is set to automatically become the user name of the author by using token [user-name] and to automatically generate the title and hide the title field.
Problem for me is the title generated ends up being "Guest" instead of the username. How could I fix this?
Comment #5
pnigro commentedsubscribing
Comment #6
fago>Problem for me is the title generated ends up being "Guest" instead of the username. How could I fix this?
Maybe with some custom PHP code, but with tokens there is no way out as when the title generation runs, the user doesn't exist yet.
Comment #7
muschpusch commentedsubscribe... I did some testing... Tokens are empty but custom text appears... So the automatic nodetitles function is called but it seems like tokens aren't available when using content_profile...
EDIT: you can use custom php. Check the checkbox "Evaluate PHP in pattern" and you can access the $node object like this
echo $node->fieldname[0]['value'];
Comment #8
Hunabku commentedI discovered a very simple solution for assigning the username to the node profile title. The solution works for all three use cases:
I was very surprised to NOT find this solution in the forum or in the documentation since it is so simple:
Comment #9
kip stanning commented@Hunabku #8: hi, i am not that much of a coder, but i don't think you need token to embed php code to return the username? so i am trying to find any tutorial how to make use of token in combination with automatic node title. i inserted [name] into the title field but no name appeared, just the two brackets and the string name inside of them.
any help? thx
karl
Comment #10
Hunabku commentedWell my solution at #8 works EXCEPT when a user changes their username. However, after changing their username (by clicking the Save button), if the user then clicks the "Profile" tab and clicks the Save button at the bottom of their profile form - it ALL works and their profile title(name) is updated to match their username.
Unfortunately that is not an acceptable requirement to have users click their profile tab, etc.. Any ideas or solutions would be greatly appreciated - perhaps we need a conditional token to handle this?
Also if the user registration form and content profile form were integrated into one page that might also work it but i can find no way to do that.