drupal-6

Drupal form validation not working for me

I am trying to modify some Drupal 6 form code and incorporate some native form validation. Code looks like this, but validation does not work. I never even get into function thisFormName_form_validate. Any Drupalians have some good ideas? function thisFormName_form_alter(&$form, $form_state, $form_id) { $form['email_address'] = arr...

Changing Drupal notifications e-mail address

Hello, I am using built in Drupal 6 user module, fore user registration, forgot-your-password-emails and all that stuff. When a notification is sent by e-mail for confirming reistration, resending passwords, etc, these are sent from a different e-mail address to the one I want. I dont remember where I configured this setting, and canno...

How do I use theme preprocessor functions for my own templates?

I have several .tpl.php files for nodes, CCK fields, and Views theming. These template files have a lot of logic in them to move things around, strip links, create new links, etc. I understand that this is bad development and not "The Drupal Way". If I understand correctly, "The Drupal Way" is to use preprocessor functions in your templ...

drupal function theming for custom menu

i have a custom menu with three levels. It is in format: - a/b1/c1 - a/b2/c2 - a/b3/c3 I want to have same css formatting for all the b1, b2, b3 and same formatting in c1,c2,c3 but different between them. I have found that the function that renders that menu is: theme_menu_item_link() But the same function renders the b1 and c1 too....

Drupal 6 primary links: how do I link to my latest news?

I've defined a custom content type - news. I also have a menu item - latest news - that links to one of the news nodes. I want it to link to the latest of them. How would I do that? ...

Add custom message in Drupal

I want to add a custom message once someone saves a specific content-type telling them that it is going through an approval process. This will let them know as well as prevent them from re-submitting. ...

Open form for node/add with taxonomy terms set, no user changes wanted.

Hi, I use a hierarchical taxonomy with taxonomy menu and want to add to my view a simple link to the form for adding mynodetype "in this directory"=with this term lineage. (up to 4 terms) outside of drupal one would put a hidden form field.... what would be a good and drupalish way to accomplish this ? Do i need an own .tpl.php ? Fir...

Appending Text to the body field in Drupal

I am trying to append a string to the body field of a CCK node after it has been submitted or edited. However, I'm having trouble working with the body field in the form alter. My initial attempt was to modify the body field in the submit handler by using the .operator to append a string to the body field. //Calling this submit functio...

Drupal: Views showing duplicate content for anonymous users but not authenicated users

I have a strange problem with views. For anonymous users it is listing the results twice and for authenticated users only once? Any idea what might be going wrong? I have cleared the cache. ...

Drupal permissions not showing for custom content type

I have a custom content type in Drupal which was created using CCK. The create/edit permissions for this type are not showing up in the node module permissions, although other cck types are. This content type is also bound to a module, but this module doesn't have any admin screens, all node creation is done through the standard cck in...

Drupal: Template Files, Modules and Content Types for Advanced Theme

Intro I am in the process of trying to convert my first HTML/CSS design into a theme for Drupal. I have used ModX for quite a few designs and appreciate the ability to create different page templates and custom variables to be assigned to those templates. However I seem to be having some issues making the transition. The site I am work...

Drupal node form customization

I have a node type 'review' which is attached to two vocabularies and are appearing in a fieldset named VOCABULARIES in the node form. But what i don't want them to be in a fieldset. I am using the function in a module and have also increased the module weight but no success till now. Can any one tell me what i am doing wrong here..? <...

Getting two different fields from a thumbnail generated by Drupal´s Image Cache and the original image

I have an image field, which imagecache automatically creates a thumbnail for. I am creating my own node view, in which I would like to show both the full size image and the thumbnai, but drupal treats them as a single field (one or the other will be shown depending on which option you choose in "Display Views"). How can I make ImageCac...

Drupal node_save and special characters.

Hello, i'm trying to create nodes and taxonomy terms through a custom php script by using the node_save() function. I'm working on drupal 6. It's working well (thanks to previous questions on stackoverflow) except for accented letters. Indeed, when a title or a taxonomy term contain "é", "è" or "à", the sentence is cut before those sp...

Customize link for add content

When I have a custom node type and I want to create a page, can the link be something other than what Drupal automatically assigns? i.e. Currently to add a node-type it is: www.example.com/node/add/node-type but can it be customized to just www.example.com/node-type ? ...

Drupal Background Image as Block or Node

Hi There. I am having trouble wrapping my head around how to make editable background images in my custom Drupal 6 theme. My client wants to use a different background image on each main section on his website (with multiple content types: page, blog, image gallery), and to keep everything dynamic, I want the background images to be edi...

Drupal setup for proofreaders - "Revision Moderation"

I would like to have external proofreaders to work directly inside my Drupal site. Basically they should be able to create new revisions, annotate, comment etc without affecting what users see without my approval. Particularly the node might already be public. "Revision Moderation" module sounds a bit like what I want, but it seems no...

How do I add a body onload javascript function for a create content page in drupal?

I want assign certain values to some of the cck fields through Java script while the form is loaded. I think it is best to use the body/ form onload attribute. But how do i define that in drupal? Could someone help me with this or a better solution? ...

How come my email link in drupal footer message doesn't work?

This is what I have typed in the footer message section from the site configuration, sight information page: Copyright Sage 2010 | Contact Us: < a ="mailto:[email protected]" >[email protected]< / a> | < a="www.mysite.org/contactoptions" >other contact options< / a> However, when i click on the links nothing happens. I was told all I nee...

Drupal Nodes shows 404 when it exists

Some nodes are showing a 404 status when they exist in the database. You also get a 404 if you type in the url to edit that node in the admin page. These nodes are being created in an automated fashion in the database, from CSV files. What I'd like to ask is which db fields would trigger a 404 on a node? I have checked the url_alias ta...