drupal

What are the most common pitfalls for a beginner Drupal user?

I'm just starting to learn Drupal, and I am really liking it. What are the most common pitfalls for a beginner? How can they be avoided? ...

How can I associate many existing files with drupal filefield?

I have many mp3 files stored on my server already from a static website, and we're now moving to drupal. I'm going to create a node for each audio file, but I don't want to have to upload each file again. I'd rather copy the files into the drupal files directory where I want them, and then associate the nodes with the appropriate file. ...

Syntax Highlighting in Drupal

Which is the best module for Syntax Highligting in Drupal. I am using GeSHi for syntax highlighting my code. It was working fine then I installed a second module FCKeditor. Now GeSHi filter is not working with FCKeditor. Do anyone have any idea why these modules are not working together. Thanks in advance. ...

Drupal search engine does not index my custom nodes!

Somebody has posted an hour ago or so a question that was about the drupal search engine and was about like this: I know drupal should index anything that is returned by node_view() but this is not happening for my custom content. Also: are there better alternatives to Drupal built-in functionality? As the question has been removed...

Retrieving names of over-ridden theme hooks in views 2 (Drupal 6)

I have a created a view (lets call it my_view). In the theme: information section if the view I have noted one of the suggested template names (views-view--my-view--default.tpl.php (or close to that)), and created my own template file with that name. This all works fine and when I visit the theme registry, I can see there is a hook the...

Sorting cck fields in drupal6 views by 'revision date'

I'm looking for a way to construct a view in drupal6 by letting it grab the 'added date' from a nodereference cck field which has multiple values. What I need is a list of titles of referenced nodes, sorted (desc) by the date they were added to the reference-list. I've tried setting up a 'node' view, letting it grab a node ID from the...

Drupal Taxonomy Module - Limiting the number of links that are displayed per tag

I've got a site with tags like robotics, programming, simulation, quizzes etc. and I want to limit the number of links being displayed for a certain tag to a number. For example if there are 20 nodes that actually have quizzes as a tag then only 10 nodes should b displayed that have quizzes as a tag and the rest of the nodes can be displ...

attach multiple images to a taxonomy term

I have installed "Taxonomy Image" module. but i can not find a way to attach multiple images to one taxonomy term my drupal version is 6 ...

Usng enum in drupal

I have a mysql table id,name,gender,age religion( enum('HIN','CHR','MUS') ,category(enum('IND','AMR','SPA') where last 2 are enum datatype and my code in drupal was $sql="SELECT * FROM {emp} WHERE age=".$age." and religion=".$rel." and category=".$categ; $result=db_query_range($sql,0,10); while($data=db_fetch_object($result)) ...

upgrading drupal 4.7 to 5.2

When I was upgrding my webite from drupal 4.7 to 5.2, I am facing an issue - Fatal error: Call to undefined function node_get_base() in ../question.module. Can any one help me to solve it... Thanks in advance ...

Download attachments in one file

Is there a contrib module or Drupal option to allow users download all attachments in one zip file? ...

Is it possible to script for data entry with Drupal?

Hi, I'm planning on putting a store's inventory on a Drupal site and I'm wondering if it's possible to create a script (maybe in python/php?) to enter the data automatically to Drupal with CCK? Thanks in advance! ...

Drupal CCK filefield variable access

Hey Everyone, Just wondering can anyone tell me how to access the file field variable in drupal? I can access the rest of the node's variabels with the following php: $node->field_event[0]['value']; But I do not know how to access the content of a file field called field_pdf. I know it is created with something like: $node->field_p...

Drupal CCK field not visible to anonymous users

I added a field to a nodetype using CCK, but when I try to view the node as an anonymous user the field is not visible. I can see it when I am logged in with my admin account. What could be the problem? ...

drupal form textfield #default_value not working

I am working on a custom module with multi-page form on drupal 6. I found that #default_value is not working when my '#type' => 'textfield'. However, when '#type'=>'textarea', it displays correctly with the '#default_value' specified. Basically, I wrote a FormFactory to return different form definition ($form) based on the post param...

Different Roles for 2 different type user in Drupal

I have to 2 different roles setuped in drupal. 1) Backend Users 2) Authenticate Users Backend Users I want backend users to be redirected to admin section (were all admin related work is done) Authenticate Users Authenticate users to be redirected to front page. What is best way to achieve this. ...

Drupal Add Static link to a view

Hey all, I have a drupal view that lists a node called publication. At the top of the page I'd like to have a link 'new publication' instead of having it in the navigation block. Can somebody direct me on how to go about this? There seems to be several ways but I'm having little luck. Thanks, j ...

What are the best practices for a small distributed team which will work on a Drupal project?

Hi, after some research, we opted for working with Drupal on our next project and we are a distributed team. Since Drupal stores (based on what we saw until now) all it's content on a database, how can we, as a distributed team work together on this project? What are the best practices we should take? We thought about using a shared...

Multilingual settings form radio buttons not showing on Drupal site

I have a Drupal site where the "Multilingual support" options don't show up when editing a content type. I've checked to make sure that the line that adds the options executes (you can see it at http://api.drupal.org/api/function/translation%5Fform%5Falter/6 ). I also have another copy of the same code on a different server which has the...

Does DotNetNuke have anything similar to Drupal's CCK?

I'm building a content website whose basic elements are not just plain text but rather structures containing multiple fields. I want it to be based on open source CMS so that I can extend/tweak it as I wish. Drupal's CCK module gives me exactly what I need, and I'm trying to understand if I can get this capability with DNN (or do I hav...