drupal

WordPress vs Drupal

I am going to be developing a site for a client and am torn between using WordPress or Drupal. I have moderate experience with WordPress, a little less with Drupal. The site will feature regular postings from the site administrators, but also needs to allow easy postings from authorized members. Members can join via the site or via Face...

drupal exposed filter with jquery datepicker popup

Hello, I have a view that I created based upon a content type in my drupal instance. I have then went and added some exposed filters. Two of these filters are date fields that use the jquery ui datepicker popup. Functionally, everything is working fine. Aesthetically, everything is not fine.... With the date picker, The label is sho...

Unable to print CCK field in template in Drupal

Hi, I'm trying to print CCK field in my node.tpl.php -file like this; print $node->field_name_here[0]['view']; But when I navigate to that page, I can't see the contents. Even when i use print_r($node); I can't see any info about the variable. Drupal only renders everything else in node.tpl.php -file. BUT... if I stop the executi...

Drupal. Two question from newbie.

Hello Could somebody give an answers for my question? How to count clicks on outside URL to another webpage. I have content type that can have one category (taxonomy). In node view I want to add block below with listing of links to nodes from current node category. How can I accomplish this? Regards ...

Drupal Webform Validation (webform_form_alter)

Hey all, I'm doing some webform validation using webform_form_alter. I'm using webform_form_alter because I switch certain content on a "select" field. In my webform-form-317.tpl.php I defined new fieldsets I set my fields into this new fieldset and unset the original from the webform. $form['submitted']['ContactInfo'] = array( '#type...

drupal include php file from web

Hi I want to include("http://domain.com/file.php") in either my drupal module or theme. but I get Failed opening required 'http://domain.com/file.php' (include_path='.:/opt/lampp/lib/php') what is the correct way to do this? thanks! ...

How to find out the optimal memory limit in a web server for a Drupal based site

I have a multisite Drupal based magazine sites and I would like to know is how can I choose the optimal memory limit to be set so that maximum numbers of users can access the site without affecting the speed and the server is also able to handle the requests. ...

Custom sort in Drupal Views

I have a View that uses fields from the Biblio module and those are unfortunately all defined as text fields. I need to sort my view according to the accession number, but if define the sorting in the View it sorts the numbers wrong like 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20 ... instead of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11...

Drupal: is Devel module safe for online websites ?

is Devel module safe for online websites ? Can I leave it enabled ? ...

Drupal: how can I avoid this form item being collapsed !?

I really don't get why this is not working. I want to avoid a specific form item being collapsed. This is my element I want to modify (after the change with the code below): [taxonomy] => Array ( [tags] => Array ( [1] => Array ( ...

Drupal: How to build a categorized menu tree

I need to build a custom menu structure based on taxonomy terms. The Problem is that only the first level should be a Taxonomy-Term. All nested items must be a node. Each node can have only one Term. And Terms without any nodes associated should not appear in the menu. How could i do that? Any suggestions for me? Example Menu: TERM-1 ...

Drupal View - Don't render some fields for some nodes

What I'm trying to achieve is very simple, but a bit difficult to explain: I want to create a view to return the last 5 nodes based on some condition The fields I want to show are "Title,Abstract & Thumb" I want to show the thumb for only the first node, I don't want the thumb to be displayed for the rest Of course hiding the thumb v...

Enabling a Feature via Drush

When I enable a Feature through the site UI, everything goes as expected. However, when I enable a feature from drush with drush pm-enable, the following don't happen: Strongarm configurations not applied module_disable (in a new custom module) not performed Why is this? ...

Where do these <em> elements are coming from in my HTML code ?

For some reason elements are added to my html code and the text is rendered as italic. http://109.72.95.174/astudio/sites/lancelmaat/performanceinstallation?tid=22(see bottom lines, or content of menu "Contact") I'm using CKEditor in Drupal for the input of some text areas. But it is strange, because the elements are added only for ...

Basic Drupal Question

I have been trying to figure this out for days. Hope someone can help. I am implementing a new theme for a site. I added the html to a page.tpl.php file, populated it with the appropriate variables, and it works OK so far. It consists of a header, footer, and a left and right div. The left div successfully displays the output of the...

handling the display of choices in dependent select elements, in html

Hi guys! Firstly, I am sorry, i just can't seem to phrase my question well. Setup: I am using Drupal to build this location-based application. i have a form which allows the user to select his/her location. the form has 3 'dependent' select elements e.g. country, city, state. they are dependent in such a way, that selecting a partic...

Using drupal profile date in vb.net

I am using drupal databas ein one of my application. Drupal profile saves date in following format: a:3:{s:5:"month";s:1:"2";s:3:"day";s:2:"18";s:4:"year";s:4:"1995";} I can read this with data reader but how to convert in a proper display like DD/MM/YYYY or YYYY/MM/DD ...

Drupal, Views: trimming text doesn't work because tags are not closed properly

hi, I have a node with a text area editable with CKEditor. THis means my customer can add italic style with it. Then I have a VIew in which I'm trimming this text area for each node to 140 characters. The problem is that if my customer adds italic style right before the treshold, the text is not closed, and I have html errors (for exa...

How to reference parent node of cck referenced node in drupal

I have a new content type called 'A' which has a cck reference node field that makes reference to type 'B'. I have a custom template that renders out all node types 'B' in a very specific way.. the problem is that for this template, I need to know who the current node belongs to. type B will always have a parent (of type 'A').. but I ...

Pathauto based on Primary Links

I'm trying to set up pathauto to generate clean URLs based on my primary links. So About > Executives / Board would be about/executives-board. I've used the [menupath-raw] token for this which is creating the alias: About/Executives / Board It's not removing the slash and leaving in spaces. Also, it's not converting to lowercase. I've ...