drupal-7

Has anyone checked out Drupal 7?

Has anyone checked out a copy of Drupal 7 yet? What do people think? I'm pretty excited about the PDO and all of the designers I work with a very excited about the new admin interface/structure. Do we have any Drupal core developers here on Stack Overflow? ...

Upgrading from Drupal 6 to Drupal 7: best programmer's practices?

Although I am using drupal since the D4 series, I only started developing professionally for it with D6, so - despite I did various site upgrades - I was never faced by the task of having to port my own code to a new version. I know the Drupal community will come up with lot of technical support about changed API's and architectural cha...

Drupal: Url alias for language frontpage

I have set Drupal to determine the language from the URL (path prefix), thus / is english and /da is Danish. This works fine for all pages except /da The frontpage for Danish is /node/14 but it doesnt show when I go to /da Also content marked Language neutral is not showing for any language. Any ideas? p.s. I'm using Drupal 7.0 Alpha...

Drupal 7 programming advancements, differences from Drupal 6 upgrade or wait

I was just wondering if there were any changes in the Drupal 7 code that effect server load and speed for large sites. Also, with 7 nearing beta release, should I wait to build the sites with Drupal 7? I'm a future kinda guy. I would like to be able to develop Drupal sites for a freelance business I am owner of, and would like to start ...

Drupal 7 Install Error

Guys, I was hoping that someone can shed some light on why I am getting this error: Parse error: syntax error, unexpected '{' in /homepages/22/d223624283/htdocs/drupal_new/includes/install.core.inc on line 74 Could it be something that I missed? Thanks, Matt ...

Drupal pass argument to page

I have a custom Drupal module displaying some data in a table. Each row has a link which if clicked will delete the relevant row. Specifically, when the link is clicked it will take the user to a confirmation page. This page is really just a drupal form which says 'are you sure' with two buttons: 'Yes', 'No'. I figure I will need to p...

Build a new Drupal site using D7

Hi there! I'm planning to rebuild a site I've got, from self-hacked to Drupal. I'm planning to dive in to Drupal and later on work as a freelancer (using Drupal). And here's my question. After spending some time reading about, and testing, Drupal I really got that feeling, "WOW", with Drupal7! I know that D7 isn't really "out" yet but ...

Which version of drupal should I study, 6 or 7?

I have been planning to try to build a shopping store with Drupal 7 just for fun and have been studying it for a few days now. But with its current status(alpha5), I doubt if my time and effort would be worthwhile. If I use 6, I am afraid I can't apply my experience with it to 7 because, you know, the latter is way way better and differe...

Proper way to include a jQuery library

I am working on a module for Drupal 7. I am using some of the jQuery UI modules which are included. my natural way to include these is to use drupal_add_js() and drupal_add_css() with the relevant files. However this feels a little wrong. Is there an official (or better) way to include these libraries, either from Drupal or jQuery. I ...

Add 'rel' Attribute to Drupal Views Link

I am currently using Drupal 7 with the Views module. I have built a photo gallery that is running properly, but I am trying to integrate a lightbox. However, to use a lightbox I need to image links to have the 'rel' attribute. Can anyone please help me with my problem. How do you add the 'rel' attribute in Drupal Views?? ...

Possible uses of CCK node-reference and user-reference

CCK is gone from Drupal7 and was replaced with the Fields API which is now part of core, but nodereference and userreference were not ported. This creates a problem for me because I use those 2 modules extensively. There's an effort to work something out to replace these 2 modules with something more compatible with drupal7, but the so...

Getting the field_image path in Drupal 7

Hey everyone, In Drupal 6, I would do the following to get images in my node--articles.tpl.php page: <?php $cck_images = $node->field_image; if (count($cck_images)>0) : foreach ($cck_images as $cck_image) : $image = theme('imagecache', 'large', $cck_image['filepath'], $cck_image['data']['alt'], $cck_image['data']['title'])...

How to attach an image to a node while creating it with node_save($node);

Hi i am working with drupal 7 and trying to import data from xml by parsing it using php and later on creating nodes with node_save($node). So far i have been succeeded to create nodes from xml without any images. I want to attach image to the node while i am importing it. I know drupal 7 is still in alpha 6 but its good. node_save($n...

how to attach image and tag with the node

HI. i am working on a project to import xml contents into drupal 7. i have parsed all the data in php. so far i have been succeded in importing node body and its title. There is no documentation for drupal 7 on how to attach image to the node and tags. i really need help i have spend two days finding it tried a lot. i will be very thank ...

How to insert term into vocabulary named Tag

I am trying to populate nodes by writing a script...i am using following code $node->field_tags['und'][0]['textfield'] = 'first_tag'; $node->field_tags['und'][0]['textarea'] = 'This is tag'; $node->field_tags['und'][0]['tid'] = 2; node_save($node); whatsits doing is nothing and the term is not being added to vocabulary named tag...if ...

Where is Drupal 7 termpath?

Using the pathauto and token module in Drupal 6 allowed you to create url aliases using a pattern like so: [termpath-raw]/[title-raw]. However, this is not the case in Drupal 7. I understand that D7 is still in alpha, but the beta looks to be here pretty soon and it is soooo much nicer that D6 IMO. Is this functionality not available y...

How to add multiple images to the node programmatically in Drupal - if possible

I am trying to attach multiple pictures to the node programmatically in drupal 7 but have no idea how. i am not even sure its possible. Here is my code for attaching one picture to the node and it works. Please if someone can help me how to attach multiple pictures more than one to the image field $node->field_image['und'][0]['fid'] = $...

How to ask input file browser from user in Drupal 7

Hi i need some help with it. I have created a php script which i am running from copy paste into node as php code. I need a file path for a file to process like i am using '\birds\birds.xml'. I dont want to include the file path instead i am thinking, How to create a simple small form with browse button and selecting a file than submit w...

How to make a custom module make available in the defalut content creation area in Drupal 7

I have a custom module enabled in Drupal 7. Now what I want is, when a user is trying to create content using 'Add content'(be it article/basic page/custom page created by user), I want my module to appear as an option for the user to use it. How can I possibly do it? Thanks in advance. ...

Drupal Views 3 rescan template files

Hi, I am having some issues with Views 3 on Drupal 7 Beta when rescanning template files. I've put a new template in my theme folder called views-view-fields--blog--block-1.tpl.php which is the filename Theme Information suggests. When I click "Rescan Template Files" the pane disappears and it doesn't bold the new template (and doesn't ...