I18N Translations

I Have Installed I18N Module and configured it according to the manual. When I set the language the page is not showing in that language. I will appreciate your help.

How to create new format of Views?

Does anyone know how to create other Views' format rather than grid, HTML list, table, list?

Please, I want a kind of tutorial for doing this.

Thanks.

Sample Data for a Drupal 7

Hey, i am performing a 'Performance Testing' for Drupal 7 in multiple DB... I need a sample data Just like the one in Joomla . Can anybody help me out in this.

how to remove the default title field in drupal 7?

i have created a content type named "test".now i don't want it has the title filed. how to remove it? thank you.

Making some elements not editable in the Form

I have a slight issue of knowing how to best handle two different topics:

1. I want to make some elements of the existing form uneditable or invisible. How to do it?
I have checked #states variables and basically those could be fine. Unfortunately I have had a problem on utilizing #states variables for existing forms when trying to utilize hook_form_alter. I can easily add new elements to the form and utilize #states variables for those, but for any existing element of the form (edit form of content type) I cannot edit anything but #required state with following type of code:

    $form['field_factory_location'][$language]['#required'] = TRUE; 

If I try to do same for #visible nothing happens? I have probably totally misunderstood the usage of #states variable. Alternatively I tried something like this (with/without $language which is variable having language of node):

$form['field_factory_location'][$language] = array(
        '#states' => array(
        'visible' => FALSE  ),
        );

And obviously this is also something totally incorrect as nothing happens... Any help of my total lack of understanding how #states work?

Parsing variables/parameters from a URL like example.com/index.html?source=citysearch&medium=email

I'm trying to put together a module (in D7) that as part of its work will be getting a call via URL from an external website.

I would like that website to pass me some info in the URL. I am looking to use a format like
http://example.com/index.html?utm_source=citysearch&utm_medium=email
rather than
http://example.com/index.html/citysearch/email

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x