drupal

Create a "Products Listing" page that embeds a context-aware View of specific type of products

I have the following page structure: Product listing for type 1 |-> Product 1.1 |-> Product 1.2 ... Product listing for type 2 |-> Product 2.1 |-> Product 2.2 ... so I have created a content-type "Generic_Product_Listing" which has a field_type and would like to embed a view that only gets the products of that specific type. How can ...

Facebook module for Drupal 6

Hi there! Could you recommend a Drupal module that provides similar features like http://drupal.org/project/twitter for Facebook? Thanks ...

Can I have nodereferences with thumbnails in Drupal?

Can I have nodereferences with thumbnails? By default I only get title+link. ...

Publishing a node to a specific page ?

Hello I have created a new content type "Quote". Now the user should be able to link a specific "Quote" to a specific page where the user wants the quote to be shown. Is this possible? thx ...

drupal teaser starting position

Is there any way to control and manual specification for start of teaser?. for example: This is my test paragraph to find the solution.i need to know how to control the starting position of the teaser............<--!break--> i want to stat my teaser from 'i need' . is it possible ? ...

Open form for node/add with taxonomy terms set, no user changes wanted.

Hi, I use a hierarchical taxonomy with taxonomy menu and want to add to my view a simple link to the form for adding mynodetype "in this directory"=with this term lineage. (up to 4 terms) outside of drupal one would put a hidden form field.... what would be a good and drupalish way to accomplish this ? Do i need an own .tpl.php ? Fir...

Call to drupal_render() returns NULL

I have been looking since yesterday but can't understand why a call to drupal_render() is returning NULL. In my node theme function, when I call drupal_render($element) with $element being defined like below, it renders nothing! <?php Array ( [#type] => textfield [#title] => Label [#default_value] => [#post] => Array ...

Drupal: Sharing content across Multisite

I have 2 websites with similar content types. Let's say an event-content type with some cck fields in it. site1: events ( title, body, image ) site2: events ( title, body, image, onsite1) by the extra field at site2-events i want to give the possibility to the user to post his event on the ( main ) site1. Site1 and site2 are both on...

How we can lock a table using PHP / Drupal

Hi iam developing a module in Drupal, which needs to have a locking machanism, When one user operating on form submission other should nt take action, How do i can achieve this in php/drupal iam using mysql database with MyISAM/INNODB Please help me Thanks in advance Kamal ...

Drupal: Views showing duplicate content for anonymous users but not authenicated users

I have a strange problem with views. For anonymous users it is listing the results twice and for authenticated users only once? Any idea what might be going wrong? I have cleared the cache. ...

Firing a Drupal Rule (or any PHP logic) based on a threshold

I am creating a Rule in D6 to notify a person when "approved" volunteer hours reach a multiple of 8. Hours are logged as a custom content type with a numeric CCK field, and "approved" is a Flag. I was doing a modulo 8 calculation but realized that won't suffice. If a user has 7 hours approved and puts in another 2, the Rule returns false...

what's the best (php-based) platform for creating a portfolio site?

I've got a very simple site -- a few content pages and an image gallery. The design for the gallery calls for multiple albums, with thumbnails on the image page. We want an extremely simple, clean design. Usability of the back-end is a priority. My first instinct is drupal, because that's how I've been building my sites lately, but maki...

Drupal permissions not showing for custom content type

I have a custom content type in Drupal which was created using CCK. The create/edit permissions for this type are not showing up in the node module permissions, although other cck types are. This content type is also bound to a module, but this module doesn't have any admin screens, all node creation is done through the standard cck in...

Drupal: Template Files, Modules and Content Types for Advanced Theme

Intro I am in the process of trying to convert my first HTML/CSS design into a theme for Drupal. I have used ModX for quite a few designs and appreciate the ability to create different page templates and custom variables to be assigned to those templates. However I seem to be having some issues making the transition. The site I am work...

Drupal: Getting user name on user account page without breaking performance

I have multiple blocks shown on the user profile page, user/uid On each of them, I need to print the user name. I've been doing a $user = user_load(arg(1)); print $user->name; on each block. Since there is no caching, as you can image the performance is HORRIBLE. Is there either a way to get the user name more efficiently or to cache ...

Drupal node form customization

I have a node type 'review' which is attached to two vocabularies and are appearing in a fieldset named VOCABULARIES in the node form. But what i don't want them to be in a fieldset. I am using the function in a module and have also increased the module weight but no success till now. Can any one tell me what i am doing wrong here..? <...

.htaccess - Rewrite a request to one directory before the request is handled by that directory?

I'm trying to exclude all BUT one directory from a rewrite rule. I want the request to be handled by the index.php file in the root directory which will then include the subdirectory's index.php file as part of a script after wrapping it with it's own code. This is a really strange problem, since I'm trying to wrap Drupal within a Word...

Getting two different fields from a thumbnail generated by Drupal´s Image Cache and the original image

I have an image field, which imagecache automatically creates a thumbnail for. I am creating my own node view, in which I would like to show both the full size image and the thumbnai, but drupal treats them as a single field (one or the other will be shown depending on which option you choose in "Display Views"). How can I make ImageCac...

Creating Drupal taxonomy terms from code?

What is the function used to create taxonomy terms in Drupal from the code? ...

Cannot see my drupal page, when set with online server.

I have installed kloxo control panel, this is the address http://173.212.227.142:7778/. Then I made domain for my test site, which shows me preview from this link, http://173.212.227.142:7778/sitepreview/kids.com/index.html, which is right. Now I have installed drupal but it is very hard for me to set here. I have made changes in config...