drupal-6

Generating forms from the database

Hello I'm trying to teach myself Drupal and I've found something I can't find any tutorials for. I am trying to generate a form, with a dynamic number of text fields, to populate and edit the contents of my custom table. In regular PHP I would achieve this with: $count = '0'; while ($row = mysql_fetch_array ($result) { echo "<input ...

drupal: [title] token... not filtered !?!

hi, I'm using path auto module to automatically stores images in the projects subfolder. I'm using the [title] token and I had a unpleasent surprise: the title "abc / dce", creates 2 folders. I was not expecting this because in the pattern descrition, [title] is clearly distinguished by [title-raw]. [title] Node title [title-raw] Unfi...

Drupal 6: display CCK Field value with php in views_customfield

SORTED http://drupal.org/node/467190#comment-2068324 Hi friends, I've spent all day to find but can't find :( How can I display CCK Field value with php in views_customfield? I tried the ones below, but no result $node->field_homepage_linking[0]["view"] $node->field_homepage_linking[0]["value"] value_get('field_homepage_linking...

Limit frontblock to display articles/stories only in Drupal

I am new to drupal, so sorry for this noob question, but I was wondering how to display articles only in the central column. Currently there are also blog entries, etc and I would like to get rid of them. I have a Views plugin installed but I am not sure how to do this. ...

how to Theme Catalog page in ubercart?

I would like to change the drupal ubercart catalog page from default grid to list. Is there any shortest way? Thanks & Regards, Satya ...

Drupal: $form['#redirect'] = FALSE; doesn't work.

hi, I've tried to change the redirection when I submit my edit-node form, by addming the following line to my template.php file, in my theme $form['#redirect'] = FALSE; I'm sure the template.php file works well because I have other lines in which I change, for example, the weights of some elements. But the redirection doesn't work. ...

No title node in Drupal

I want to have a content type namely quote usign CCK. But quotes in general don't have a title. But since the title is a required field, how can I avoid being putting the title while creating a new node. ...

displaying text in case of Low Voting

Is there any module in drupal which provides low rating feedback. eg If someone wants to vote a content as <= 2 (out of 5). Before he does so, there will be a pop up window displaying text "Are you sure you want to rate so low?" etc. If there is no such module then is there any easy way of doing it through coding or otherwise? EG: ...

When not to use a Drupal node?

I've recently created a very simple CRUD table where the user stores some data. For the data, I created a custom node. The functionality works great for creating, editing, and deleting data in the CRUD table using the basic node functionality (I'm actually amazed how fast and easy it was to program the basic functionality with proper a...

Add JS file on a certain page on Drupal

I've got a JS file that I want to add to Admin>Add Content>Certain Content type After looking at template.php and checking out the function theme_preprocess_node I tried to add the JS through drupal_add_js(...) but no go. Now, I know that there's a similar question however my case is about adding a JS file to a certain page and nothi...

Drupal SQL injection attacks prevention and apostrophe handling in Forms

in typical PHP applications I used to use mysql_real_escape_string before I did SQL inserts. However I am unable to do that in Drupal so would need some assistance. And without any sort of function like that, user input with apostrophes is breaking my code. Please suggest. Thank You My SQL is as follows: $sql = "INSERT INTO some_tabl...

Creating content in a block in Drupal 6

By default for creating content a new page is opened. I want to do this inside a block. A block where there will be some fields like title body taxonomy terms and a create content button. How can I do this? ...

Collapse taxonomy fieldset on node form by default

While creating a (custom) content in Drupal, I have three vocabularies. But these make my create content page very heavy. I want to collapse the Vocubalary fieldset by default and want it to expand only if user chooses to. ...

Need to have separate "complete" Drupal theme for each page on a site.

I want to build a Drupal demonstration site where I can create several custom themes and display each on a separate page of the site. Access can be either via links or menu items. The "simpler" the solution the better. ...

Modules for Laying Out Content-submission Forms

In reviewing Drupal layout modules, I'm left with the impression that while many exist for formatting existing content (e.g. Panels, Views and Display Suite), there are very few (if any) that focus on changing the layout of content-submission forms - and therefore there's no alternative but modifying the associated templates themselves. ...

drupal user names and url

How special characters in username converted to user path (users/username). i'm asking because when i use . in user name its removed in user path. for ex: stefan.z path will be users/stefanz ...

Changing the Header of a Matrix Table on Drupal CCK.

I have a Matrix Table in a content type on Drupal CCK. That content type also has 5 Node References, I want the headers to be the node references (link to it) I tried adding a JS file that would change the headers automatically But it doesn't submit them, is there an already built solution to this or just some other way? The thir...

Drupal 6: create a custom node tab with a custom path

Is there anyway I can customize the paths to a node's tabs? When using either pathauto or hook_menu_alter, I can change the path to the node view to from node/node_id to, well pretty much anything, but let's say xyz/node_title. The node tabs, however, still stay with the path /node/node_id/tab_name I'm trying to add a custom tab to th...

drag to share module

I can't use the drag to share module. I downloaded and enabled it. But then my content page goes 'blank'. It doesn't show anything. Somebody help please. ...

Drupal 6: sorting specific date chronologically...

Hi friends, I'm a drupal newbie... I have created a block with View Module to list events (title, event date) at homepage. dates are being entered into textbox and such format as below; December 5-7, 2010 December 4-6, 2011 July 17-19, 2011 ... When I set Sort Criteria as date, it just mess :/ it doesn't sort chron...