drupal-6

Drupal: wrapping blocks together

hi, can I group blocks in Drupal 6 ? I need to wrap two adjacent blocks in a single parent element in my page. thanks ...

Retrieve Current Drupal Theme?

Within the context of a module, how can you determine what theme is loaded for the current user? drupal_get_path path_to_theme Neither of these are any good because they seem to only work in the template.php of a theme. ...

Move node $links to a sidebar

How can I print a nodes $links in a sidebar? What function can I call to retrieve them from outside the node.tpl.php and print them? I am still on the node. Also, I can't use Panels. ...

How to insert GMap macro to a page in Drupal with Gmap module?

I created a GMap macro but I do not know how to insert it on the page. When I try to put it in the body field of a page, it does not work. Any ideas? ...

Display Menu Title in Drupal please

I have a custom menu in Drupal. Here is the code I use to display it inside my theme (page.tpl.php): <h4>Site Information</h4> <?php print theme("links", menu_navigation_links("menu-teaser-05")); ?> Rather than display Site Information I would like to be able to pull out the Menu Title. Short of doing custom SQL/code can anyone help...

How to add a custom class to all drupal anchor elements

Hi, I'm new to Drupal and have been looking for a way (function or template method) to add a custom class(html attribute) to ALL anchor elements of the drupal site. I want to manipulate the anchors with jquery and need to be able to remove this class later on. Thanks ...

No reaction for Menu trail condition for Drupal Context module

I'm using Development Seed's fantastic Context module (version 6.x-2.0) for Drupal 6 on a site that I am developing. Everything is working fine except in the case where I need to set a context for a particular menu trail. Perhaps I am misunderstanding the menu trail condition, but the context only exists when the defined menu item is a...

Drupal: Create Content Link Missing in Admin Menu

Hi ! The Create content link in my admin menu is missing. Any ideas ? Update: I am using Drupal 6.17 and the admin account. Previously I was using the 6.x-1.5 version of the admin menu. I updated to the 6.x-3.0-alpha4 to see if the problem was solved but nothing changed. ...

Drupal: unwanted duplicated nodes

hi, I'm experiencing some bugs with Drupal on a server. Sometimes when I update a node, a copy of this node (with the same title) is saved and I have to delete the wrong copies. I suspect this is caused by the fUpload (multiple upload) CCK field, that allow you to upload multiple images. But I'm not sure about that, there is nothing in...

Drupal 6- Parent term id of the term of a node

I have been struggling to put the parent term id of the node's term in views argument. Let me explain why am I trying to do such a weird thing. Well, on the term page I am showing a block with list of all the nodes under that term. But the moment one clicks at any node, that block disappears as the default argument (for term id) in the v...

How do I set up my first view with Draggable Views module?

I'm learning how to use Draggable Views for Drupal 6 for the first time, following this tutorial: http://thedesignspace.net/MT2archives/000666.html . I'm encountering a problem though: in part 4, once I set up the draggable table ( http://thedesignspace.net/MT2archives/000708.html ) the entire preview disappears, showing no table. Switch...

Is it safe to switch theme in drupal on my site?

I have a website with Drupal CMS behind it. I use a custom theme and I would like to change it but I am not sure if it is entirely safe, i.e. is it possible to lose some data, design, etc if I switch it back to my theme? What about blocks and their position if the theme uses different blocks layout. Thanks. ...

Range search based on price field in drupal.

I have a CCK field price which the user can fill in. I would like to create a search form with dropdown price field with different ranges (such as below 100$, 100$-1000$, more than 1000$). The problem is that the user input is an integer so I cannot achieve range search using filter exposure. The user would have to specify the exact valu...

Drupal 6.17 just showing admin blocks

Hi ! I am using Drupal version 6.17 with RootCandy Dark 6.x-1.8 as the administration theme what happens is that Drupal shows the rootcandy regions on the blocks page even if I click on the site's theme. If I disable the administration theme everything works. I already tried to clear all the caches and nothing changes. Any ideas ? Tha...

What is a path from Ctools Modal to Modal Frame API

I wrote a module that uses the Ctools Modal Window to serve a form wizard. I would like to switch to using the Modal Frame API (which uses the JQuery UI Dialog as the modal). If someone has some experience making this type of switch in their code and can give me some pointers, I would appreciate it. Thanks, David Update: So I fin...

Multiple Styles within one View in Drupal

I am creating a search functionality in Drupal by exposing filters within View. The problem is that I would like to add also a Google Map that display the location of nodes, apart from the search results (node title and some other fields). I can easily do one or the other but I find it difficult to display both search results in a standa...

Drupal, How to change user profile html structure.

Hello I want to change default user profile values to table. Could somebody tell how can I do this? I try create user-profile.tpl.php But after printing $profile I am getting already formatted values (dl) Regards ...

Drupal. How to show list of referencing nodes in parent node view?

Hello It's probably very basic but I didn't figure out how to do this. I tries NoreReferrer module but with no luck. I created content type (let's name it Superdnode) that have only title and icon and is a container for content type Childnode. On my homepage I have a block with listing Supernodes. What I am trying to do is after clic...

Drupal Importing Content from Feed

I need to import Twitter posts (single account) into a Drupal site to display in a sidebar. Obviously I can use the pluggable JS script, but I don't want the page to hang waiting for a response from Twitter. I installed the new Feeds module, but I am a little confused. I want to create a content type. This content is created from the RS...

How to show nodes of specific term only and not nodes of children or parent terms

I have taxonomy structure like: TEAM -> INTERNATIONAL -> AUSTRALIA - Further Sub-terms of AUSTRALIA are : -> ARTICLES - (with Nodes) Story 4, Story 5 -> PHOTOS - (with Nodes) ImageGallery1 -> DOMESTIC-TEAMS - (with Nodes)...