drupal

ubercart VS drupal commerce VS Magento

Drupal + UC VS http://www.drupalcommerce.org (still in dev) VS Magento anyone running all 3 and have opinions? ...

When not to use a Drupal node?

I've recently created a very simple CRUD table where the user stores some data. For the data, I created a custom node. The functionality works great for creating, editing, and deleting data in the CRUD table using the basic node functionality (I'm actually amazed how fast and easy it was to program the basic functionality with proper a...

Restricting Taxonomy vocabulary for lower roles

This seems like a simple question but I forget. When you have a low access role like a member, and want to only show a particular vocabulary on a node form, what controls this? Is it a contrib module? ...

Which Drupal module to use for two-way referencing nodes (to each other)

There are a lot of modules that enable two-way referencing nodes to each other. In the descriptions I read about those modules, they do not functionally seem to differ from each other. The modules I found are: Reverse Node Reference Corresponding Node References Node Relationships BackReference Node Referrer You can find links to the...

Can drupal router handle PUT requests ?

I have a module that will be using some restfulness and i'd like to know if drupal's menu router handles PUT requests without problem...? ...

How to organize Drupal templates?

I created a few custom templates while modifying a theme (Acquia Prosper), and my usual practice is to put all my templates in this fashion: theme-name/templates/page/page-front.tpl.php But it didn't quite work this time. So I'm wondering why. I looked through the templates.php for a clue, but there is nothing there. My base theme ...

Drupal Clean Urls break randomly for arbitrary paths.

I've done everything right. My server has mod_rewrite enabled, my virtualhost path has AllowOverride set to All, and I have the .htaccess file in place with the rewrite rules same as everyone. But I have trouble accessing some pages using their clean url paths. So for 90% of the pages, clean urls work fine. But for that 10%, they don't. ...

A PDF viewer with a toolbar actions

I want a Drupal Module who let to the Adminintrator to upload pdf files and the users to read them in a viewer with a Toolbar that contains print, download and quit boutons like the calameo website. The possibility to have statistics on user's Toolbar actions will be appreciated. ...

Drupal Get Nodes by Author ID

Is there a function in the Drupal API that I can use to get nodes by author ID? I am trying to create a block that shows the current user a list of their authored pages and I'm having a surprisingly difficult time with it. ...

Assign default language custom URL to translated Drupal nodes

My Drupal site is in English, but supports user contributed translations. When users create a translation of the page /About, I'd like the translated version to get automatically assigned the same URL instead of being Node/123. The two versions of the page can have the same custom URL because the i18N / internationalization system append...

Drupal's Ubercart redirecting to a custom order complete/thank you page

While using ubercart I need to insert some javascript tracking codes to the order complete/thank you page the user sees after checking out an order. Problem is, there is no .tpl file for this so I'd like to know if there's a way of redirecting users to a custom page I would like to build with all my js inside. ...

Add JS file on a certain page on Drupal

I've got a JS file that I want to add to Admin>Add Content>Certain Content type After looking at template.php and checking out the function theme_preprocess_node I tried to add the JS through drupal_add_js(...) but no go. Now, I know that there's a similar question however my case is about adding a JS file to a certain page and nothi...

Drupal Module Themes - Default CSS?

There's tons of documentation out there on how to override the appearance of Drupal modules, but I keep finding the docs for writing the original theme to be a little lacking. On this note, how can I tell Drupal to use a specific CSS file for my custom module's block output? ...

Drupal SQL injection attacks prevention and apostrophe handling in Forms

in typical PHP applications I used to use mysql_real_escape_string before I did SQL inserts. However I am unable to do that in Drupal so would need some assistance. And without any sort of function like that, user input with apostrophes is breaking my code. Please suggest. Thank You My SQL is as follows: $sql = "INSERT INTO some_tabl...

PHP code in Drupal 6

A very standard example of the problem that I am facing is that of a custom content say blog type. Now there is a view namely "My Blog Posts". In that view i take the argument as User:uid. Now, for the link part i simply write the code below: global $user; and send $user->uid as the argument to User:Uid. This give me link for "My Blog P...

Creating content in a block in Drupal 6

By default for creating content a new page is opened. I want to do this inside a block. A block where there will be some fields like title body taxonomy terms and a create content button. How can I do this? ...

Drupal - How can I edit a field?

We have a web site designed by a third-party and based on Drupal. I'm reasonably familiar with Drupal but I'm going nuts trying to find a way to edit a bit of text. It appears on the home page and can be found in the database as the only row in the table content_type_home_page. I can also find it in the cache where the text is prefixed ...

Collapse taxonomy fieldset on node form by default

While creating a (custom) content in Drupal, I have three vocabularies. But these make my create content page very heavy. I want to collapse the Vocubalary fieldset by default and want it to expand only if user chooses to. ...

Drupal 6 FusionChart PHP database data display

Hello, I am trying to get a pie chart display correctly but have found there to be not much documentation / guidance for drupal 6 and fusioncharts. anyways im aiming to query the database with this: $query = mysql_query("select * from content_type_engage"); Then i want to loop through the results and retrieve one specific value wi...

Allowing users/administrators to update content management themselves

Is there an option besides Drupal or Wordpress to use to allow the user or administrators of a site to update and manage content on the site themselves? Is it possible to use Drupal or Wordpress for a particular section of the site that I want to allow the above mentioned but not the rest of the site. Basically I am just looking into o...