drupal

drupal views: how to add generate pdf link in views

i have to add generate pdf links in the view how to that.. when the user clicks on the generate pdf links pdf should be generated which contains the content information of that node... ...

drupal: how to generate doc files in drupal is there any possibility to that

how to generate doc file in drupal files.. do we have module for that... as pdf generation module... ...

Drupal - Webform element theming

Another question about Drupal webforms -- The form itself is built in by /includes/form.inc's function theme_form_element($element, $value) and adds a <label> element to the $output. I want to remove that label only for one webform, so I have to override the function. How can I override it for only one webform, while leaving it the sam...

Drupal CCK add another item callback

I'm trying to get the last field item to focus when doing a 'add another item' on a CCK multiple value field. Here's my code: $("#node-form table.content-multiple-table tr.draggable input[type='text']").live("keydown", function (e) { if (e.which == 13) { $(this).closest("table.content-multiple-table").siblings("div.content-add-m...

Most efficient way to store simple data in drupal 6 and share with views?

I have a simple form that allows users to select an option from a select menu and then save it in the database. I need to store the full name so that views can use it. So the table in my database might look like this: nid | uid | type ------------------ 1 | 2 | 0 2 | 2 | 3 1 | 3 | 5 3 | 1 | 4 and so on... I was thinkin...

drupal views: how to create a web form for each user

in my website each manger(role) needs a webform, to get enquiries from users.. the webform which have created is for complete website... how to do this... ...

drupal views: how to save the node ids of the selected items using views bulk operations

i need to save the selected node ids when i use views bulk operations... how is that possible.... ...

PHP/Drupal Gotchas?

Hi guys, I'm starting to switch from ASP.NET to PHP, and also Drupal. In ASP.NET, if the user has Cookies or Javascript turned off, this can introduce a lot of unforseen problems and complications. Most users have the default settings (on,on) but when they don't, mud hits the fans and it can be confusing as to where the "bug" is. What ...

Drupal: customizing user registration workflow for communicating with another webapp

Hi all, I'm new to Drupal6 and spent long time searching how to implement the following feature without success: I use Drupal as front-end/doc board for a web-app. I want to mirror all user account creation, update and deletion on this web-app, i.e. send user name and password. I started coding a little module implementing hook_user (h...

Drupal views: Allowing users to choose sort criteria on node display

I have some nodes I am displaying in a view. They are displayed as nodes, unformatted. I would like the user to be able to choose from some predefined sort criteria ( via drop down list or similar). So they could pick recently active, most commented, newest, etc., and re-query for new results. Its easy with tables because you can make...

Views in Drupal: ignore arguments

In Drupal I am working with a view that takes a couple of arguments; the nid argument is just passes along to the next page, but the other three arguments it uses to retrieve content. The problem seems to be that the view uses all arguments to retrieve content, which obviously doesn't work since the presence of nid will always return one...

Drupal Views: limiting content to arguments

So I am using views to get content based on a couple of arguments. These arguments are mapped to text, taxonomy and what not. The problem is that views ignores filtering the content list based on the arguments, which means that my filters have their default values (often none or all). ...

drupal rules i have to create a history table when users does some action

can any tell me how to perform this task i need to create history table when ever user performs certain task like when he creates a content, browse a specific page, perform search... i have started with created a content type history and i have written a rule to insert one row in the table.. it works fine but when i create a view to...

Drupal 6 Hide Revision Information

I'm trying to hide "Revision information" from my users who do not understand what that is in relation to this content type. I've read numerous posts online that suggest anything from changing a template to setting style="display: none". I'd prefer to actually remove the field from access so that injection techniques aren't still viable....

Views (Drupal): arguments don't filter content results

A follow-up to my previous question. I have a view (a page, not block) that gets fours arguments as part of the url, e.g. foo/bar/baz/arg1/arg2/arg3/arg4 where arg1 is nid and arg2-arg4 are text/taxonomy fields. The path of the page looks like this: foo/bar/baz/%/%/%/%`. Per my previously asked question, I've been able to prevent the ni...

Drupal 6 Validation for Form Callback Function

I have a simple form with a select menu on the node display page. Is there an easy way to validate the form in my callback function? By validation I don't mean anything advanced, just to check that the values actually existed in the form array. For example, without ajax, if my select menu has 3 items and I add a 4th item and try to submi...

Implementation of Drupal Memcache in custom modules

Hi, I am developing lots of custom modules for my web application and needs to implement memcache with it. I have installed and enabled memcache module in my drupal installation but now I have to see what data is being cached. Is there any additional work required to cache my module specific data? Also, What is the exact work flow of c...

Very large drupal page execution time

Hello again! I'm on VPS hosting with dreamhost and am experiencing very high page load times. Here is the output from Devel module for mysql queries. Executed 190 queries in 227.67 milliseconds. Page execution time was 21969.43 ms. Using the module profiling at http://2bits.com/articles/measuring-memory-consumption-by-drupal-bootstr...

Moving a non-core theme from /themes to /sites/default/themes safely in Drupal 6.14

Recently I am told by my friend that putting a non-core theme in /themes (the one that contains core themes) is a bad idea and I should instead put it in /sites/default/theme. Is this safe to simply move the theme folder from /themes to /sites/default/themes? In doing so, will the original settings for the theme be lost? I am using thi...

Drupal Help - Warning: Unresponsive Script - Everytime Goes into or out of Block Edit Mode

Every time goes in and out admin-build-block page, the annoying "Warning: Unresponsive Script" pop-up shows up along with such details: A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: http://domain name/sites/default/files...