Code development

Events happening in the community are now at Drupal community events on www.drupal.org.
Latest techniques in site development; simpletests, coding practices, scalability, deployment and so on.
frankgil's picture

Expert in Drupal 7 online course – Try it free for a week!

Only local images are allowed.
What are you waiting for join the most comprehensive training program in Drupal 7? Now you can try it free for a week!

And if you want to continue with the entire course, you can get a 10% off using the coupon code TRAINING10.

The Expert in Drupal 7 course includes Site Building and Development and is made up of 60 units and divided into 3 modules: Beginner, Intermediate and Advanced, with a total of 420 certified hours in 7 months.

Read more
aks22's picture

How to create Book based search in drupal 7.

Hi I want to know is there any way to create book based search.
If i have two books of content type book and want to set up a search which should be book based that is it should have filter where we can select book1 and book2.
As this need comes because in both the books there are some similar content and when
user is searching then the results are showing from both the books.
I tried several modules but all are Content Type based search provider and not book based.

Read more
plettster's picture

Drupal 7 Module Development - 2 day Online Course!

Start: 
2013-05-08 09:00 - 2013-05-09 16:30 America/Chicago
Organizers: 
Event type: 
Training (free or commercial)

Can't travel for training, but need to figure out how to build custom functionality into your Drupal 7 site? Join us via Webex for a 2 day course. Module Development will teach you how to get custom functionality using Drupal's hook system, as well as how to extend or alter contributed module functionality. 'plettster', our own Margaret Plett, will be the instructor. Cost is $800 per student, ask about group discounts.
May 8th and 9th from 9-4:30 both days.

Do you need Drupal 6, 7 or 8 training? Theming? Site Building? Module Development?

Read more
Anonymous's picture

Setting Clean URL's with SSL (https) for the backend and http for the front end when Drupal is in a subdirectory/ subdomain?

After reading various documentation on the subject I figured out how to possibly do this. I started a write up in the documentation, and placed it under technical review. Are there people with knowledge on the subject who want to take a look at it? This to ensure that there are no mistakes.

The url is:
http://drupal.org/node/1804604

Read more
sydneyDK's picture

Dynamic Redirects

I'm working on a module that needs to create dynamic redirects. For starters, I've installed the Redirect module, which allows me to create static redirects via the admin panel (and API for further development). I'm finding that although it does redirect to external sites, it only redirects within the current window and I'd like the redirect to occur in a new window. I'm thinking this may require some javascript script as well, but maybe I'm missing something or another module is better suited to my needs.

Seeking thoughts and advice from the group.......

Read more
wipeout_dude's picture

When to use hook_menu vs hook_menu_alter??

Hi,

Can someone tell me when its correct to use hook_menu vs hook_menu_alter??

Quite simply I am wanting to create a local action on a view to add content.. In the past I have used Page Manager to do this but looking at the code it doesn't seem logical to load a whole module when this is all I want to do.. I am just not sure on the correct way to do it..

Any help appreciated..

Thanks..

Read more
wipeout_dude's picture

How do I create a static block in code?

Hi,

Hopefully someone can help me out here.. Firstly I am not a coder but I have a problem that needs code to be resolved..

I am creating a feature using "features" and I need to create a static block where the content is a simple HTML table.. Features doesn't export blocks so my plan is to add it in code to the .module file of the exported feature..

I haven't been able to find any code examples for a simple block to start from so if anyone can give me a pointer and perhaps a sample that would be great!!

TIA

EDIT: I am using Drupal 7 if that makes any difference..

Read more
cithukyaw's picture

Drupal hook menu and node form

I have a content type 'leg'and this hook_menu :


$items['leg'] = array(
'title' => t('Choose Leg'),
'page callback' => 'drupal_get_form',
'access arguments' => array('create leg content'),
'page arguments' => array('mymodule_leg_select_form'),
'type' => MENU_NORMAL_ITEM,
'weight' => 0,
);

$items['leg/select'] = array(
'title' => t('Choose an existing leg'),
'page callback' => 'drupal_get_form',
'access arguments'

=> array('create leg content'),
'page arguments' => array('mymodule_leg_select_form'),

Read more
justluvgod's picture

filtering pdf file attachments

I have a Drupal 7 question that I can't seem to find a clear solution. I have a lot of pdf files that I want to add to our website. I want to be able to query/filter the pdf files based on year and department. I would want something like a drop down menu or radio buttons to accomplish this so the user can select to sort by year and/or department. I can't figure out how to add any taxonomy or association to the file to do so.

Do you know if this can be done or not? If you know of any books or tutorials that will help me, I would greatly appreciate any assistance.

Read more
cithukyaw's picture

User Role Selection and Profile Fields

Hi Drupalers,

I have two user roles with profile fields.

Role 1
Name, Username, Password, Email, Address line 1, Address line 2, Website.

Role 2
Name, Username, Password, Email

I want to let anonymous user to chose user role on registration.
Upon user role selection, I want to show role-related fields interactively (with javascript).
I mean that when select Role 2, Address line 1, Address line 2 and Website fields will be disappeared, and when select Role 1, they will be appeared again.

I currently use 'user_role_field' module and 'autoassignrole' module.

Read more
Subscribe with RSS Syndicate content