drupal

Drupal: where can I get the $content Array in my theme ?

hi, I need to modify the node content Array before it is rendered into html. For this reason I cannot use the $content variable in my node template. I'm looking for it in template.php file, but I cannot find it. thanks ...

Running a different CMS system under drupal folder.

Hi friends, I'm a drupal newbie... I completed my first drupal site. then client wanted to run their old CRM under new drupal site, they uploaded CRM folder into drupal folder, and when I try to address the CRM admin, as below, it redirects drupal 404 page (which is search page). www.blablabla.com/crm/admin Error message from dru...

Drupal: is the output of the dprint_r() only visible to administrators ?

hi, is the output of the dprint_r() function (introduced by devel module) visible only if I'm logged in drupal system (as administrator user) ? thanks ...

How implement a single login system for drupal and another CMS

I am trying to implement a login share between a Drupal site and another CMS - kayako in particular. Are you aware of any guide or reference? Thanks. ...

Drupal Calendar views display

Hi, I am working on a project which has events calendar. I am using date and calendar module for that. On calendar month page, we can display titles of events on that day. That is simple. But suppose there are 10 events on one day, then that day column becomes too long. So, instead of displaying titles, I want to display no. of events ...

Override Privatemsg Module Message View Layout

The Privatemsg module is great, and the default list of messages and message-creation form are fine, but the form for viewing a message (in my opinion) is horribly unattractive and confusing for most site users - to the point of being unusable. Is there any way of using Panels or Display Suite to design an override, or is the only way to...

Is the Rails ecosystem a suitable replacement for drupal

I want to make a community based site, which is Drupal's strength. However I also want to try other frameworks, especially Rails. One of the best things about drupal is its huge modules library. If I were to switch to Rails, would I be able to find similar functionality freely available as plugins, or would I have to rebuild? Does Rail...

How to have a three column home page in Drupal

The home page of this site will have basically a 3 column layout. I can create these as either content or blocks. I like using content because its easy for the user to understand, they login to the site, they browse to the page they want to edit, they click edit, but with blocks they have to go into Administer > Blocks etc Any suggesti...

drupal user email

hi i want to know whats the best way for sending newsletter in drupal. And i implemented a module ( user page )for each registered user . how to send the page as newsletter to that user as newsletter? ...

Module to highlight the source code shown in a node

What are the possible module candidates for highlighting the source code shown in a node? Is there any module that does the task using Javascript? ...

issue with panel override for specific node

I have a node view panel that overrides nodes. My variants are setup to only override certain content types. One variant only overrides a specific node. I am using a php selection rule to achieve this. The node id is 2856. So the url is domain.com/2856 I also have a view setup that creates a feed whose path is domain.com/2856/feed ...

How do I download the javascipt library for mapstraction v2?

I am setting up a map on a drupal website using the mapstraction module. I am planning to use the 6.x-2.x-dev development branch of mapstraction because I need some of its additional functionality. In the instructions for installing the module, it says to download the mapstraction v2 library from mapstraction.com Navigating through the...

Deploying multisite Drupal install with Capistrano?

The problem I am having is whenever I deploy a Drupal site from a git repository, I have to log in to the server and change permissions on a ton of folders by hand. That is something I want to automate. I am considering Capistrano, which I heard great things about, but the downside is it creates several folders in the "sites" folder and ...

Print Terms in Node in Multiple Columns Sorted in Downward Order

I have approximately 20 content-taxonomy check boxes from one field ("features"). The checked terms display in node-example.tpl.php. I am trying to show these content-taxonomy terms in two columns displayed/sorted in a downward order instead of across. I am trying to cobble two bits of code to accomplish this...but my php skills are not...

drupal php: problem with hosting a new drupal site

I am a newbie to drupal. I try to host it on a free hosting (german) kilue.de.(apache, mysql5.0) To test what I have done locally , on the site : 1- I create the database using phpmyadmin 2 -I copied what I have under /var/ww using FTP Once I launch my site using given uurl , I have this message : * warning: realpath() [function.real...

Adding a JOIN statement in hook_views_query_alter()

I need to modify a query Views generates so that I can use highly custom filters. I have implemented the add_where() function with some ORs thanks to this question: http://stackoverflow.com/questions/1340423/or-operator-in-drupal-view-filters However this only solves a part of my problem. There are some fields that I cannot filter on be...

drupal theming a view for Customfield: PHP code

I have a view called "contests_slider" with a block display. I'm hiding all fields and using a "Customfield: PHP code" field instead which calls a function called display_front_contests(). In that function, querying the database and building some html and returning it. I'm displaying the output in a block. The problem is Drupal is adding...

Taxonomy based navigation and URL namespace in Drupal

I am trying to upgrade an old-school PHP site (http://cordair.com/) to work with Drupal running Ubercart. One of the key things is making sure URLs that people have bookmarked stay the same. My taxonomy looks something like this Catalog + Artists + Pablo Picaso + Lenardo DaVinci + Medium + Sculpture + Painting + ...

Drupal: Return SQL string from db_query

Is it possible to return the actual SQL query as a string from the result of db_query? Or otherwise take the returned resource ID from db_query and get the SQL string? ...

Drupal Node relationships

I have two nodes, one is kind of a parent to the other node. For example, I'm displaying information about Plants. There are two nodes, Plant_Parent which has the latin name and some common names which is moderated, and then there is the Plant_Info which is not moderated and it has information like bloom time, growing experience, water r...