drupal-5

Drupal 5.x migrate content from one type to another

I have a bunch of content in the page content type that I would like to migrate to a new custom content type. I don't need to add or remove fields or change the data stored in the content type at all, just straight copy them over. Is there a module to do this? ...

Drupal and Google Search Appliance (Google Mini)

I have a Druapl site with pages indexed by a google mini search appliance. The earlier in the week I noticed that a bunch of links were marked as indexed, but excluded because there was a 'print this page' link back to the same page and had a rel="nofollow". I took the nofollow out and let the GSA reindex the site 2 days ago. Now, the...

How to show inactive task tabs in Drupal

Is there any way to show local tasks to user if they doesn't have necessary permissions? Right now it seems like Drupal just excludes them from page code. I want to show them, but with different CSS class. Version of Drupal is 5.20 ...

Drupal 5 FileField not attaching files

I recently inherited a Drupal 5 site, and I'm having some trouble with the FileField module. I click Browse, find my file, then click upload. The file is an .mp3, which is a valid file extension, and is about 5MB. It looks like it's uploading it, but then it finishes and nothing is there. Here are the things I checked: * I checked my ...

drupal Generate a PDF catalog from a bunch of nodes

i have to generate the pdf file with bunch of nodes, i can generate pdf files with print pdf modules but i want to generate the i m using views bulk operations i want to generate the pdf files with all the selected nodes. any one knows how to do this stuff ...

Drupal: hiding the view to display the results?

i m newbie to drupal i have a view which displays the list of cars , i have 2 filters which are exposed make users to search for the car model and price. it works fine, now i want this view to be home page, by default views gives list of all the nodes. i dont want that, the results should display after users presses apply button can a...

drupal search on the top taxnomy term

i have designed a view with 2 exposed filter name(textbox) and place(taxnomy term with xxxxx -yy -yy -yy these terms it works fine when i search for -yy terms, but the problem when i select on xxxxx it should perform search on all the child terms (it should search even in -yy terms) but it seem to be happen , it only searches in the ...

Drupal Exclude taxonomy listing pages from search.

I have a Drupal 5 site that needs to have has taxonomny listing pages excluded in the search results. For instance http://site.com/category/role/guest-speaker returns a listing of all of the nodes tagged with guest-speak in the vocabulary role. I tried Advanced Search module. This just prevents searching for terms. I then had a hunc...

Drupal 5 Search not working on 404 pages.

I have a <?php print $search_box; ?> in my page.tpl.php page. On pages that exist, the search works, but on 404 pages, it does not. I saw some bugs/patches threads over at drupal.org for D6.15, but none of them seem to work according to the thread and they weren't really relevant to D5.x I have a theory that the because the <?php print...

Drupal 5: CCK fields in custom content type

I have module that implements custom content type via NodeAPI hooks (hook_insert, hook_update etc). I want to add CCK field to this content type and populate it via hook_nodeapi calls like create or update (to show content nodes in Views). Problem is, I cannot access CCK fields for this content type. Sure, it's enabled on "Manage Fields...

Drupal 5 CCK field not loaded into node

[Drupal 5.22, CCK 5.x-1.10] I have a Sermon content type that accepts a CCK text field labeled Minister. After creating a new Sermon, the Minister field label is shown, but not the value. I've verified that the value is being stored in the database. I am logged in as user1 with all permissions, but the field still does not display. How...

Get CCK values, without the html in Drupal templates

I'm storing a string in a CCK field. The problem is getting it back out. I have a node-node_type.tpl.php and ask it $node->content['field_custom_map_data']['#value'] That returns html, three nested div's and uses HTML entities, I want the pure text, as entered. What is the Drupal 5 way to fix this? ...

How do I deal with drupal hook_views_tables?

For the title field,I want to return node.title,but what I tried is not working: return array('og' => array('name' => 'og', 'join' => array('left' => array('table' => 'node', 'field' => 'nid' ), 'right' => array('field' => 'nid' ), ),...

What is the trick to have 2 separate user registration formin Drupal using different templates ?

I have a default user registration form that cannot change. However my boss wants a second registration form that is laid out differently than the first. I am new to Drupal so some explanation would be great. Thank you in advance ...

Drupal - How can I edit a field?

We have a web site designed by a third-party and based on Drupal. I'm reasonably familiar with Drupal but I'm going nuts trying to find a way to edit a bit of text. It appears on the home page and can be found in the database as the only row in the table content_type_home_page. I can also find it in the cache where the text is prefixed ...

Drupal 5.x site shows > 550 MB memory consumption of every page. How to speed up Drupal 5.x site.

I developed a site in Drupal 5.x and now its done and working fine, but its very slow. Working fast some time, but for imp modules it takes time. When I see the performance logs, its consuming my memory for 150 MB per page MINIMUM. This is the minimum. Most of the pages its shows 550~700 MB consumption. What I did till now. Javascr...

Drupal redirect user (also uid 1) to "page not found" for unpublished nodes. Cannot view, cannot edit.

I'm having some strange behaviour on one of my Drupal sites. Usually when I'm logged in as admin (uid 1) I can always see and edit nodes even if they are unpublished (makes sense). However on one of my sites I always get redirected to the "page not found"-page (404 redirect) even when i'm logged in as uid 1. Any ideas?? This is a Drupal ...

Have trouble creating an hello-world module in drupal 5

Here're the steps I did to create an mudule: create a directory groups under sites/all/modules in the above directory groups, create two files groups.module and groups.info The content of groups.info: ; $Id: groups.info,v 1.3 2006/11/21 20:55:36 dries Exp $ name = groups description = Test Groups Listings. package = "test groups" v...

Key of radio-button into json view

Hi there, I am using the view_datasource module with drupal5 to get a json view. Now I have a cck-field with radio-boxes and want the key to be displayed in the json. However, it always displays the label. My allowed value list: http://dummyimage.com/960x240&amp;text=foo|&lt;img src="http://dummyimage.com/96x24&amp;text=foo"&gt; http:...

deploying changes on a living drupal site

Hi folks! I really like drupal somehow. But what disturbs me most is that i can't figure out a clear way of deployment. Drupal stores a lot of stuff inside the database (views, cck, workflow, trigger etc) that needs to be updated. I've seen some modules that could be used for this task (eg features) and I'm not sure if they are suffic...