Active
Project:
Page Title
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2008 at 12:55 UTC
Updated:
11 Oct 2011 at 16:17 UTC
I have a problem by using PAGE TITLE with sites made by panels. My problem:
under "website information" I left name of website blank
for panel sides I added the requested page title but nothing appears in title tag
For non-panel sites everything is fine.
What is wrong?
:o
mauk
Comments
Comment #1
nicholasthompsonHuh?
Whats Website Information? Are you referring to the
admin/settings/site-informationpage?What Panel "Sides"?
I need a bit more of an explanation about this before I can begin to diagnose where the problem is.
In any case, Page Title DOES work with Panels - its in use on http://www.pponline.co.uk/ which EXTENSIVELY uses the Panels and Page Title modules.
Comment #2
mauk commentedHi,
yes, I refer to admin/settings/site-information page. I left name of website blank because I do want to show this in header of website and title tag of
all pages.
I mean by panel sides, pages which are consisting of various panels.
I have settled this matter by adding now the name of website to site-information site and deleted in template.php to show name of website. So name
of website is now shown in title tag.
:o
mauk
Comment #3
nicholasthompsonI still dont understand what the problem is... Do you not want the Site Name to show in the Page Title? If so - you could remove the token from the pattern in the configuration...
Comment #4
nicholasthompsonAssuming fixed - no reply for a month.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
tbisciglia commentedI think I can make this issue make sense, as I had the same issue, I believe.
The problem has nothing to do with site information. The problem is that the Page Title module does not properly read the title of content created in the Pages (that is, panel pages) module. In those cases, the default of [page-title] | [site-name] is used, and it displays as:
| My Website
I saw some other posts that supposedly have patches for this module, but they don't seem to match my version (6.x-2.3). If there is a good patch out there, could someone respond and post? Thanks.
Comment #7
ayalon commentedI have the same problem and I use the following fix:
Add these lines to your customtheme_preprocess_page() function, and everything is fine.
Comment #8
EvanDonovan commentedI am still experiencing this issue as well on the latest version of the Page Title module for 6.x. It appears that the [page-title] token is still not getting set for Panels pages, at least when the panel's title is set to "Manually set".
In my case, I am using the following code in THEMENAME_preprocess_page:
I can do this since all panels pages on my site have blocks disabled. I don't think checking
if(is_object($panels_page))would actually work since that variable wouldn't be set in the preprocess function's scope. Also, the latter part of the code ayalon posted is not good since Page Title can set page titles for things besides nodes.Does anyone know why [page-title] is not available in the Panels context? It's supposed to be a global token...
Comment #9
crea commentedPlease see if the patch in #1306206: Remove page title cache and change token logic to only process tokens in the final stage. helps.