drupal

Drupal: how to let the customer to add specific nodes to a view ?

hi, I want to let my customers to add specific nodes to a view. I was wondering what's the best way to select which nodes belong to the view. I was considering to use a custom tag, "inView". I actually need a similar option to "Promoted to front page". Can I maybe have a front page which is not the home page of my website, but just an...

Creating custom paths in Drupal

I'm trying to create custom URLs for my menu items, such as mysite.com/aboutus rather than /node/2 or however it has it by default. In the menu configuration I changed the paths to what I want them to be, but I don't know how to change the paths of the pages to a custom name, rather than what Drupal defaults it as. ...

Break up taxonomy on node form

Hello! I want to theme a node form for a blog. I've got two vocabularies for the blog type, one with categories and one with tags. I'd like to display the category choices in one place and the tags input in another place. Is it possible to break up the taxonomy field like that? I've tried with <?php print drupal_render($form['taxonomy'][...

Using Email Addresses (Not User Name) When Adding New Organic Group Members

I do not want Organic Group Administrators to have access to user names, only email addresses. But the Add New Members form only accepts user names. I've tried unsuccessfully to use two modules which allow invitees to enter OG keys/codes, but could not get them to work properly. Any suggestions for allowing me to use email addresses woul...

drupal module_list on every page load

In my devel query info I see module_list being run on every page. This should not be right? I feel like there's a whole bunch of incorrectly ran queries being run on my site, (there's some unidentified problem), and this is the function that stood out to me. ...

Scroll block with page in drupal

Is it possible that if i scroll down on drupal the block should also scroll along with the page. Because i have to display long results on the node and i want to scroll the block so that user can see the data on left sidebar everytime. Please help me out ...

Drupal - Node-form objects visibility by role

I'm in the process of theming a node form. I want authenticated users to have as few fields as possible, while I as an administrator want to see all fields. How do I write a php if statement that checks if the current logged in user is an administrator? ...

Drupal: how to set role permissions for specific content types and views ?

hi, how can I set role permissions (content access) for specific content types, rather than CCK fields ? I actually want the login page to appear of the user access to pages of a specific content type, or a specific view thanks ...

Please, reccomend a CMS to build a craigslist style site with?

I've been trying to build a site similar in function to craigslist in Drupal. The idea, is to make a geo-aware platform centered around bartering, instead of general classifieds or sales. I love Drupal, but I'm struggling to get location/googlemaps integration to play with the listings and ended up using too many custom snippets I got f...

jQuery ajax function not working in Safari (Firefox, Chrome, IE okay)

I'm no javascript wiz, but am a bit puzzled as to how this is working in three major browsers, but not Safari... is there something wrong with this code? Basically I'm just using this in conjunction with a php/mysql callback at the given url to track link clicks. Drupal.behaviors.NodeDownloadCounter = function() { $('a.ndc-link').c...

Custom theming for content type in Drupal

Hi, I can apply a custom theme to a certain content type in Drupal by copying the node.tpl.php file and placing the name of my content type right after the "node" in the file name and appending an hyphen. Ok, the new name is: node-page_two_columns_images.tpl.php. But that won't give me much flexibility if I am not able to edit the way e...

Django apps equivalent to Drupal's CCK and Views modules?

Are there any Django apps equivalent to Drupal's Views and CCK modules? I find Django much more flexible and logically organized than Drupal. But I think Drupal's Views and CCK modules are killer apps. They let the webmaster very rapidly to build new data models and queries through GUI without touching the code. These modules are very u...

Filter a view by user-created tags in Drupal?

I'd like to add a block to the user profile that shows them content listings in their groups based on tags that they have in their profile. (ie: someone puts a bike up for sale, the user has listed "bike" on their wishlist, it should show up to get their attention) Since these tags vary user-to-user, I'm not sure exactly how to set up...

Drupal location gmap node map not showing up on the node page.

Hi! I am using gmap and location modules to support my content type's location. I have configured those modules (Map API key, etc...) so when I edit / add new node I get pretty google map to choose/set lattitude jus by mouse pointing. I can put also address, etc.. But when I view my node map is not showing up. I can only see address fiel...

Drupal, creating a view for Ubercart customers ?

hi, I want to customize the Ubercart customers list, displaying more fields enabling multiselection, actionsm etc.. I already have a view for drupal authenticated users, but I cannot display informations such as billing addresses from ubecart (or see orders) Any tip ? thanks ...

drupal: logged in status message ?

hi, when an user login in Drupal, the login block disappear from my pages. I would like instead to keep it there with a message stating the user is logged in. Something like this (with logout link): "Welcome Patrick. Logout" thanks ...

Drupal Zen subtheme creation problem: sidebars, header and footer regions disappear

I am currently trying to create a Drupal theme as a Zen subtheme, by doing the following: I created a new Zen subtheme by following instructions in "How to build your own sub-theme (6.x-2.x)" documentation The problem is that when I enable the new theme, no header, footer or sidebars are displayed. When the new theme is enabled, these ...

How-to count nodes based on cck filed data in Drupal

Nodes with cck checkboxes need counting nodes based on cck data and displaing via views field In drupal6 + taxonomy - there is a simple and fast function taxonomy_term_count_nodes() But I`m thinking about d7 without taxonomy via cck custom field Are there any API functions for counting nodes based on CCK fileds ? ...

How to change "site_name" in Drupal 6

Hi. This is probably a really obvious question, but it's driving me nuts. We have a drupal installation and we need to change the site_name and site_slogan variables. It sounds like it should be easy, but I just can't find an option anywhere in the admin panels to do it. The only place I can find is in the initial installation script ...

Drupal: full cycle form with parameters and response page.

I am trying to make a full cycle form with parameters and response page. Form is working OK, but response page is coming up black. Anyone have a suggestion or model example. function module99_menu(){ $items = array(); // inital form $items['module-99'] = array( 'title' => t('Export'), // Page title ...