Support for 4.6, 4.7

cybe - September 13, 2005 - 10:24
Project:Title
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I've really enjoyed using this module.

One is able to access/find articles on a site VERY quickly by accessing http://site/title/foo the way the title.module allowed one to do This is a GREAT feature that I would gladly still use.

Please, someone make this one work on newer versions of Drupal

#1

tomski - November 6, 2005 - 11:04

Have you tried to install the 4.5 version in Drupal 4.6? The BBCode filter 4.5 version for example works so it might be also the case for the title filter. I am going to try, and I will come back here later to tell you what has happened!

#2

kurkuma - November 10, 2005 - 17:15

It works for me in 4.6.3

But I had to patch it as in:
/title/something should redirect to /node/1234 instead of displaying the node by itself

I also had to add $may_cache to title_menu() to make it pass the parameter to the callback to title_page(). As simple as:

<?php
function title_menu($may_cache) { //added $may_cache
 
$items = array();
  if (
$may_cache) {
     
$items[] = array('path' => 'title', 'title' => t('search'),
   
'callback' => 'title_page',
   
'access' => user_access('access content'),
   
'type' => MENU_CALLBACK);
  }
  return
$items;
}
?>

#3

cybe - November 11, 2005 - 12:22

Oh =) It does work now.. Strange, last I tried it didn't... Thanks for the patches

#4

cybe - November 11, 2005 - 19:33

does your rss feed work ? title.module seems to be responsible for:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/modules/title.module:7) in /var/www/html/includes/common.inc on line 99.

 
 

Drupal is a registered trademark of Dries Buytaert.