drupal

Drupal views add form to add record

Hi! I have some view which lists my module table entries. What is the most elegant way to attach a form below the view to add record? Waht I am trying to do know is: I created dedicated form in my module: function my_module_form_add_record($form_state) { form fields..... } I added to the view theme file: $add_form = drupal_get_form...

How to prevent non-ascii characters from being saved in Drupal database?

I've noticed that in Drupal after some users enter content into the body of a node, characters like quotes and apostrophes get saved as: ’ “ This is due the user entering odd characters or something... Does this mean the Drupal database hasn't been configured for utf8? How can this be corrected so ’ is actually saved as just '? ...

Drupal admin tasks throwing 404 after 10 seconds...

I noticed running some Drupal admin tasks if they take usually more then 10 seconds result in a 404 error. For example, I was running "Search and replace" and it always throws a 404 after about 10 seconds even though the task apparently works. I only noticed this after migrating my Drupal install to Dreamhost. I've increased the max_exe...

Changing order of fields in Drupal's content type

I am using Drigg on Drupal 6.17. Drigg has a content type called as "Scoop". I try to change the labels and order of fields. Normally, this is done in Content Management > Content Types > Manage Fields . But some fields that are shown in Create Content screen are not shown in Manage Fields screen. The screenshot of Manage Fields is her...

Creating AR model for Drupal database

how do I change my activerecord model default behavior for the find method? For example, i want to search for all books inside drupal nodes database, but drupal uses only one table for all data, and uses the 'type' column to find out the type class Book < ActiveRecord::Base set_table_name 'node' def find(*args) :conditions => {...

Position div on top of another and not flow around

On my homepage I have a slideshow of pictures that are user selectable. I don't want the user to have to modify the image at all. http://homespun-at-heart.com/ is the example except that the way that it currently is, the user has to modify the image. What I would like to do is to have a div that is layered on top of the image so that ...

Drupal: importing thousands of lines from a mysql database. Easy ?

hi, I need to import a big databases into Drupal CCK nodes. Let's say I have 1 million of lines to import. Each line is a Drupal node, and each field is a CCK field. (this is the mapping I have in mind). Is this something risky to do, or do you think I can easily import the data in my new Drupal installation ? Could you suggest me to...

Drupal: Drush module.. how to enable it ?

Hi, Is Drush supposed to be listed in Modules administration pages when I copy its folder there ? I cannot see it. Thanks ...

Drupal - how to disable "Input Format" fieldset in node edit form

Hi! I am using hook_form_alter to disable some publishing options whet authors adds or edits the nodes: /** * hook_form_alter () */ function mymodule_form_alter(&$form, $form_state, $form_id) { global $user; if ($form['#id'] == 'node-form') { unset($form['comment_settings']); unset($form['path']); unset($form['revision...

Drupal Views does not show some nodes

I have a view that has the following settings: Style: Unformatted styleRow style: Fields ... Filters Node: Published Yes Node: Type = Image Node revision: Title begins slideshow_q ... Fields Node: Title Title Image: Image Image I also have 6 image nodes. Yet only one of them--the...

Drupal: Loading AJAX content in Drupal

hi, I've recently been told to use Panels to dynamically load content into different sections with Drupal. However, I've just realized that there is an easy way to do it, I've added this jQuery code to all menu items: $('.menu a').click(function(){ $('#content').load($(this).attr('href') + " #content"); return false; //to avoid...

GoogleGroups-like Drupal Forum

I am looking for a tighter integration between forums and email. i wanted to setup my drupal instalation to: send an email to users when a new answer is posted to the topic create a new node when users answer by email (optionally, to a mailgroup) what are the best modules to do this? how would i accomplish this? ...

Send content from node.tpl to page.tpl

Hi all, I have a div container in the page.tpl file, which I want to use as a popup layer for images. These images are recieved from the nodes. So every time i hover over the images i want to show the popup layer with content from the specific node. How can I send content to that specific popup div from the node.tpl? //Kris ...

Drupal: add drag and drop ordering for CCK fields

hi, is there any way in Drupal to add drag and drop ordering functionality to CCK fields in a specific node ? My customer would like sometimes to change the order of the items for some nodes. Thanks ...

Drupal: Views, can the displays have different styles for the view ?

hi, I've created several displays for my View. I thought that I could assign different styles (Gallery, Table, etc) of the view for each display but I realized that only 1 Style is used for all Displays. The reason I wanted to change is because I'm using DraggableViews, and I would like to keep the same order for all displays, when th...

Drupal - How to change input format for comments?

This issue irritates me much. Somehow after installing wysiwig editor my comment body form turned into rich.. bla bla area. I do not want this but I can not find the place where to turn back comment input format to the plain text (or filtered format). I know how to change filter options for different content types but turning back commen...

Taxonomy images in Drupal, Is there a way to manually add a thumbnail image?

We have the taxonomy image module installed, uploaded some taxonomy images a made a happy dance. Thumbnails where needed so we used the taxonomy_image_display() which does a fairly good job (although constrained to 150 x 150px). What we need now is a way to manually add a taxonomy image thumbnail for those special cases where the designe...

Take data from a field from exsisting node and make that the default value of a field in different content type.

I don't know if I'm on the right track but I'm trying to let users of my web site create there own versions of pages on my web site. Basically I'd like to make our documentation used as a starting point where they just add details and make a new page for themselves in the process. I have a 'book' content type that I have changed with CCK...

Drupal: automatically add menu items when new nodes are added

hi, can I automatically add a menu item when I add a node to the page in Drupal? In other words, can I associate a menu parent with a node content-type, and then automatically add the children if new nodes are added ? thanks ...

Drupal: do an unstable module introduce bugs that are still present even after the module is removed ?

hi, If I download a module which is not stable to run in Drupal (red color over download link), is this causing issues to my drupal installation even if it is not enabled ? In other words, if I enable it, and use it.. could it cause issues to other modules or drupal core that remain there even after I've disabled it ? thanks ...