Closed (works as designed)
Project:
Drupal core
Version:
7.x-dev
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2010 at 15:28 UTC
Updated:
22 Apr 2013 at 17:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
tim.plunkettThis only happens when a site has no published nodes, and is independent of the theme. I'm leaving this in the bartik queue for now, feel free to move it.
The title is set to "Welcome to @site-name" in node_page_default() in node.module, not sure where the " | @site-name" is getting appended.
I'll post back when/if I figure that part out.
Comment #2
tim.plunkettIf a title is set with drupal_set_title(), template_preprocess_html() appends " | @site-name" to it. If not, it goes on to check for a slogan. This only happens when there are no published nodes.
The problem with changing it is that it also determines the contents of h1.page-title. So if we change it to "Welcome" so that the title becomes "Welcome | @site-name", the page title is just "Welcome".
Comment #4
tim.plunkettOh, I guess that would mean we'd have to change the tests too. I really don't know if this is worth it, but that's not really my call.
Comment #5
Jeff Burnz commentedMove to right queue.
Comment #6
raghib.suleman commentedHi
This is good news, this is the simple way to solve the problem site name and site slogan...
Description *
Go to step by step:
1. Click Configuration (Administer settings.)
2. Page titles
3. Click Frontpage
4. and set your site name and slogan (Delhi Wonders | A Delhi Heritage City).
Comment #7
bobbyaldol commentedWorks as desired.Using the steps in 'steps to reproduce' in ISSUE SUMMARY it works well and fine..
Comment #8
knalstaaf commentedYou lost me at "2. Page titles", Raghib.