drupal

Execute Javascript code in Drupal descriptions

Is it possible to execute Javscript code in the Body/Description of a Drupal node? It won't be in PHP input mode. ...

Drupal Views Bonus Pack export issue

Hi, In trying to solve the problem of getting data from Drupal into XML, I found the Views Bonus Pack module, which with a little figuring out works great. Except... When setting the Style property in the Basic settings of Feed view to XML file no items show up unless I am authenticated. If I log in, I see all the entries. If I log ...

Drupal Views how to filter items overlapping a date range

Hi, in Drupal I have used CCK to add a datetime field to my custom data type. It inserts start date and end date fields. That is what I want. Now, I want Views to filter and show only the items that have the daterange (start date and end date) overlapping today's date. Any ideas on how to set it up on Views? What I think is strange is th...

how to configure multi site with drupal on main server

how to configure multi site with drupal on main server ...

Drupal. Get path alias from current url without the installation's folder arguments

Hi guys, I'd like to retrieve the current page path alias without the installation's folder arguments. I'm using: drupal_get_path_alias(request_uri()) But this returns installation/whatever/actual/path and I want to retrieve the actual/path only no matter what installation/whatever is. Thanks in advance :) ...

Unpredictable CCK field name in returned View data

I'm using views_get_view_result to directly access the data in a view. I've stumbled upon this odd behavior where cck fields are prefixed with the first field name as a query optimization. Explained here. What's bizarre though is that fields are named differently depending on whether I retrieve that data as Anonymous or as Admin. I'm...

Drupal, Lightbox2, callback function ?

hi, is there any callback function for lightbox2 in Drupal ? I need to trigger some functions when the lightbox content is ready thanks ...

Custom Drupal Module not creating any tables

Anything specific I need in the module file? Install File function module_install() { //lets create the school database $create_table_sql = "CREATE TABLE IF NOT EXISTS `table1` ( id int(11) NOT NULL, principal_name varchar(300) NOT NULL, school_name varchar(300) NOT NULL, address1 varchar(300) NOT NULL, address2 varchar(300)...

Add a tab to Drupal node

Hi, I want to add a tab to Drupal node like in the following picture: The picture has 3 tabs, Views, CVS Instructions, Revisions. I want to add another tab "Translation". What module should I use? The picture was taken from http://drupal.org/project/panels_tabs Thank you. ...

Drupal limit number of menu items in primary links

Is there a way to set a limit on how many menu items users can add to Primary Links menu? I'm working on a Drupal site and I have a horizontal primary links nav bar. There is only room for no more than 7-8 links in the nav bar. I don't want the future maintainer of the site to add more than 8 items to the menu. Is there a way I can set a...

drupal user login redirect

hi i wrote a module for user page generation. After login the path goes to users/[user-name] and i want to customize it using my module. how to handle it? ...

Drupal: Whow to forward argument to block-exposed-filters results?

I have a typical views page displaying nodes, with a taxonomy tid receiveid as an argument through the url: cat/% Now I want to further narow the results with an exposed filter by a cck field. All goes well and for tid=10 (for instance), the filtered page url is cat/10?field_no_people_value=5 Now, when I expose the filter in a block, t...

Drupal 6 fails to build menu router and links

When I enable a new menu in Drupal (for example, mymodule), Drupal should be able to get the menu items from mymodule_menu (hook_menu), process the items and insert the menu items to menu_router and menu_links table. However, my Drupal fails to do so. Each time I enable a module (written by me or modules contributed by others, or core m...

Drupal: move it from Apache server to Microsoft server

hi, can I easily move my drupal installation from Apache to Microsoft server, or I do need to run the install.php script and reinstall all modules ? I'm having troubles to connect it to the database, that's why I'm asking. (I get technical problems without specific error messages) thanks ...

Dynamically burn Feedburner feeds?

We have a Drupal website with a seperate RSS feed for every blogger on the site. There will be an indeterminate number of new users signing up and blogging in the future. Drupal automatically generates an RSS feed for each new blog. Is there a way to automatically burn each feed as well? We'd like to avoid manually adding a new feed t...

removing extra stuffs from content creation page (Drupal 6.x)

Drupal 6.x How do I remove collapsible frames - "Authoring information","Revision information", "Publishing Options" - from content creation page? For what is worth, I'm logging in as a regular user and I don't want these controls to be presented to regular users. P.S : I also like to remove save/preview buttons as well. ...

Drupal filter_form form input

This drupal form snippet will give me a textarea with user able to change filter to full html/wysiwyg mode. My Questions: How can I default to to full html mode? function MY_MODULE_admin() { $form = array(); $form['format'] = filter_form($form->format); // MY_MODULE - ** Image 1 ** $form['MY_MODULE_image_1'] = array( '...

Drupal UC "Quoting / Estimate" error

Hi, I was playing around with Drupal UC and installed a module called "Quoting / Estimate" (http://drupal.org/project/quoting), I tried to run it and got this error: **warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'quoting_quote_clear_page' was given in /home/ergospec...

Drupal 6 - I am using drupal_execute to insert a CCK node into my site. Everything is working except taxonomy.

$form_state['values']['field_prx_mp3_labels'][0][value] = $mp3_labels; $form_state['values']['taxonomy'][0][value] = array('tags'=>array('1'=>'Music')); $errs = drupal_execute('prx_content_node_form', $form_state, (object) $nodeTmp); This is a Drupal 6 site. I am using drupal_execute to create a node programatically. The f...

Magento versus Drupal/Ubercart

Hello, Can anyone tell me what is the best e-commerce solution between these two products. Has anyone has made a study and compare their own functionnalities ? thank you for your answer. Regards. ...