substitute for conditional field

Hi all,
I have been using cinditional field with field collection, but problem i am facing is whenever i am trying to enter multiple conditional field than, the data's are not saved, while when adding single field, than it is adding properly,
So please suggest me any other module for drupal seven which behave like conditional field, or some coding i could do to achieve this

Thanks in advance

Render array show correct blocks

I have a menu callback

  $items['some/path'] = array(
    'title' => 'My page',
    'type' => MENU_NORMAL_ITEM,
    'access callback' => TRUE,
    'page callback' => 'my_module_my_page',
    'menu_name' => 'main-menu',
  );

This works fine. The item appears in the menu.

In my callback I return a render array:

  $markup = 'blah blah blah';
  
  return array(
    '#type' => 'page',
    '#theme' => 'page',
    'content' => array(
      '#markup' => $markup,
    ),
  );

This also works, BUT it seems that blocks specified for certain regions in admin/structure/block are not appearing on my page. Is this normal? Because I would have thought it was possible for the user to customise any pages by saying what blocks can go in what regions and on what pages.

For example, a block that has its region set to 'banner' and 'Show block on specific pages' is set to 'All pages except those listed' with none listed. You would expect it to show on all pages? But it doesn't appear on my custom page.

What confuses me about this is that the main menu does appear on my page, which is set up in exactly the same way (region: first sidebar and show on certain pages only, of which my page qualifies). But settings these settings for other blocks doesn't appear to work.

I can add blocks to my page by doing this in the render array:

<?php

Move search button beside search form, help?

Hello.
As i'm not very experienced, im asking for your help.
I need to move the search button up beside my search form field.
Right now it's underneath it..

Hope you can help me.

How to manage content fields display under certain conditions...

Hello,

I have a view page, that shows some fields, but I want that the query to show them be executed under certain conditions.

I have :

  • 4 content fields :
  • - name
    - color
    - size
    - price

  • 1 sort field :
    - name

I want the query to select and show the content fields be executed only if the sort field is filled, if it's not, the query does not be executed.

If you don't know what I mean, let me know, I will try to explain my problem more, and more ! :)

drupal_render is not rendering the whole form.

I have a custom form function that attaches fields from an entity. It works. And I can view the actual $form array, all form elements that I need are there and accounted for.

Then I render the form after a drupal_get_form call.

And the output doesn't include two of the container elements in the form. They are just not printed on the page. Every other container element, added from field_attach_form prints out just fine.

Drupal 7.16 security notice and install.php

Bug report SA-CORE-2012-003 for Drupal core concerns arbitrary PHP code execution and the install.php file. It is mentioned that a significant mitigation step is to remove or block access to install.php. My question is, if we do this step will it still be necessary to later update the entire installation?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x