drupal

Add HTMl to CCK within Drupal

Hello im a newbie at using Drupal, and have come across a block in my progress. I have been using CCK to add new content types to my forms. I was wondering if there was any way to add to the form that is generated so that i may contain the elements and also insert visual html code like head rules etc. I have dabbled with the hook_form_a...

drupal open id - how to get details

I'm try to use drupal open id module. When i used to login using any provider id(yahoo,google,facebook..) it goes to registration page of my site. My question is how to populate details of the user to my form without additional burden to the user ?. For ex name,email-id etc. Is there any module associated with it ? ...

Theming certain pages in drupal

I need to theme tabs on a certain number of pages "user/*". If i simply use theme_menu_local_task in template.php, it will use the function on all pages, not only on "user/*". Is there a way to theme only "user/" pages and leave others alone? ...

content type wise search in drupal

content type wise search in drupal ...

Adding js to a drupal node form

In Drupal you can create your own nodetype in a custom module. Doing this you get to create your own form which is all very nice. However if you want to add js the form things get a bit more tricky. If you add the js in the form, the js will only be added form the form when it is loaded. If the user would post the form with validation e...

What does 'engine' refer to in Drupal Theming?

I've been reading about Drupal theming and preprocess functions and noticed they listed engineName_engine_preprocess & engineName_engine_preprocess_hook in the order of preprocess functions but I'm not entirely sure what the engine layer is? I understand about the core, includes, modules and themes. Many thanks ...

Drupal - building a photo gallery for voting with Fivestar voting module.

How would I be able to use the Drupal Fivestar voting module for voting on photos in a gallery without each photo being a separate node. I've used the Fivestar module for voting on seperate nodes, but making each photo in a gallery a node doeasn't seem logical. thanks ...

Drupal Nodereference in a custom form

I have a custom Drupal FAPI form that supports a fairly complex workflow and I would like to add a Nodereference field to it. Although I've found people who have included Nodereference fields on custom forms, I have been unable to find any examples of the FAPI declaration for the field (other than this question which uses a text field w...

where in the db is the "Automatic alias" setting stored for drupal's pathauto

I created a bunch of nodes using node_save(). Unfortunately, I forgot to turn on the Automatic alias setting on them. Anyone know how I can do that now? I can't figure out where in the db that setting is stored. (Other non-db approaches are fine, too.) ...

Drupal vs Some Other CMS

I'm going to be moving my website to a CMS in the coming months I'd I need some help on choosing an appropriate CMS. Many of the websites I've seen tend to say "use Drupal, hands down". However, my website truly doesn't have a need for commenting or community features. Its pages will need to be modified occasionally, but not extensively....

Creating a draft version of the page before publishing in Drupal 6?

I've been looking for a good way to handle revisions in Drupal, but I am yet to succeed. For some reason there is no built in way to save a draft (that I've found so far), and the modules I've tried so far do not seem to fully work. First I tried save_as_draft, which seemed to do almost what I wanted, and if I'm not mistaken, also handle...

How to override the review_cart form in ubercart.

I need to write a module that sends order data to an epayment service, similar to say, paypal. They need the data to be submitted from a form with elements that look something like this (notice the duplicate name): <input name="ORDER_PNAME[]" type="hidden" value="CD Player"> <input name="ORDER_PNAME[]" type="hidden" value="Geanta voiaj ...

Should I use Drupal or Kohana-type framework for a web "application"

The debate is that I need a PHP Framework/Drupal with the flexibility to add custom features to a potentially large application (web and with an api). However, with a framework, like Kohana, I see myself tackling and re-inventing the wheel with the simple stuff like account management and cms stuff. Account management and quick data col...

Usability for content editors: Drupal or PHP framework?

Greetings: I am going to develop a basic Web site that supports some custom content types, is multilingual, and has content moderation workflow for a restricted group of content editors. This seems like an obvious choice for Drupal, except... the content editors will have little computer experience. In my opinion, that is a show-stoppe...

How do you like to define your module-wide variables in drupal 6?

I'm in my module file. I want to define some complex variables for use throughout the module. For simple things, I'm doing this: function mymodule_init() { define('SOME_CONSTANT', 'foo bar'); } But that won't work for more complex structures. Here are some ideas that I've thought of: global: function mymodule_init() { $GLOB...

iPhone + Drupal + JSON RPC Server problem

Hello community I don't have any idea how to post a JSON RPC request using Obj-C. Can anyone help me? So far I have: responseData = [[NSMutableData data] retain]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://*************/services/json-rpc"]]; NSString *jsonString = @"{\"jsonrpc\": ...

Adding Google Map to Contact Info Page in Drupal

I'm trying to display a Google Map inside a drupal page. The map will only have the business location marker on it, with no need for a user to submitted their own markers. So far I've loaded the Gmap, Location, and CCK modules. I've attempted to enable a location field for Page content types, which allows me to input an address, but thi...

Choose Alternate Products, add on Free Products, Addendum Products in Ubercart ?

Thanks for considering my question. I have Ubercart 2.x running on Drupal 6.x. I would like to show alternate products when a user is on the checkout page. This can be done through Views/Panels, yes? However, the need is that when a customer buys a product, they also need to choose an alternate in case there is a problem. "Customers wo...

Drupal menu permissions question

I'm creating an admin module for my client that gives them access to some administration functionality concerning their content. I'm starting off by adding some permissions in my module by implementing hook_perm: function mymodule_perm() { return array( 'manage projects', ); } I can then create my menu by adding to th...

How to present a computed field based on CCK fields from multiple nodes?

This is mostly a best practice question; here's the setup. I'm creating a small app to manage characters for a tabletop game. I have content types for Character, Armor, and Character Inventory. Armor has a field called Defense, let's say it's 3 in this example. Character Inventory uses node reference to link the Character to the Armor,...