Closed (fixed)
Project:
Page Title
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
21 Nov 2007 at 19:56 UTC
Updated:
1 Feb 2008 at 12:22 UTC
I've created a page that needs to run node_load to pull information onto a page. For a category, I've defined a node reference field to have a featured article on a category page. And perform a node_load a view's argument field to to get the referenced node's information.
So the category page node/5 references node/10.
node/5 has a page title: "I'm a category page"
node/10 has a page titel: "I'm a node reference"
When node/5 is loaded, the titlebar will have a title of "I'm a node reference" but should have "I'm a category page"
Is there a way to tell page title to NOT run?
Comments
Comment #1
keylope commentedI think I've solved my own problem, perhaps if it's worthwhile you could add it.
I added another condition for the view. I found that when the other nodes were being viewed, they were teasers and pages and so, were going through the page title module. I don't know if my implementation was incorrect, but because the main page was just a page and not a teaser, I added the following to make sure that it only displayed the current page's page title.
case 'view':
if ($page && $teaser == NULL) {
page_title_set_title($node->page_title);
}
break;
Comment #2
nicholasthompsonI shall add this fix to 1.1 and 2.0alpha - thanks for spotting it!
Comment #3
keylope commentedNo problem. Glad to have helped!
Comment #4
nicholasthompsonFixed in Page Title 2 Dev. This will appear in Page Title 2 Alpha 4.
http://drupal.org/cvs?commit=96284
I decided to do...
... rather than checking if teaser is NULL.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.