Display View based on User

I am using Taxonomy and Views to present a logged in user with a list of download links the list of links will be different for each user. I want to streamline this process. By trying to do the following:

Have one page that has a block that depending on who the user is displays a view that shows a list of content types with files attached to them.

How to add a sub-menu item to a menu from a different module, using code.

Hello,

I would like to add a sub menu item to the menu 'Forms' through the use of a different module then the one that the 'Forms' menu is declared in.

The 'Forms' menu is declared in formexample.module shown here:

function formexample_menu() {
  
  $items['form'] = array(
      'title' => 'Forms',
      'page callback' => 'forms_overview',
      'access callback' => 'user_access',
      'access arguments' => array('form example'),
      'type' => MENU_NORMAL_ITEM
  );
    
  $items['form/fromex'] = array(
    'title' => t('View the sample form'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array('formexample_nameform'),
    'access callback' => 'user_access',
    'access arguments' => array('form example'),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 0
  );
  return $items;
}

The sub menu item will be coming from the module form_example_dynamic.module, shown here:

function form_example_dynamic_menu_alter(&$items) {
  $items['form/form_example_dynamic'] = array(
    'title' => t('Form Example Dynamic Form'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array('form_example_dynamic_form'),
    'access callback' => 'user_access',
    'access arguments' => array('form example'),
    'type' => MENU_NORMAL_ITEM
  );
}

Help needed with good practices regarding pages, blocks, regions, menus, and such

Hello everybody,

I'm new to this world of application frameworks and, oddly called by a friend of mine, "click-oriented programming".

I have a custom page that includes a slider on the top and a small (5 items) grid menu. I'm using a custom theme, and on the templates folder I have a file called "node--home.tpl.php" which overrides the default functionality of the content type I called "Home".

I think that's not the best practice (creating a content type called Home, and overriding it) so I'd like some advice about this. How should I do this?

Core office hours

Note, April 2012: For information and updates on core office hours, see the handbook page on Core contribution mentoring.

Drupal core needs more eyes and more contributors to decrease the very high amount of unresolved issues.

We hold core "office hours" each week in #drupal on freenode.

Why office hours?

There are currently a large number of unresolved issues in the core queue, and we want to get more organised dealing with the backlog, and encourage new people to help out.

Current numbers:

Image and Image page alignment in View Slideshow.

Support,

Please help me aligning the pager image and pager text, i facing a tough time achieving it.

pager image aligns to top left corner and title text moves under it.

I want the alignment something like this
-------------------------------
| |
|Image .....Text..............|
| |
-------------------------------

however what i am able to achive is not even close to this, it looks like this.

Drupal v6 or v7 with Single Sign-on with Active Directory

The organisation i work in are looking to migrate our Intranet site to Drupal however we currently use single sign-on with Active directory, can anyone advise what module is best to use and configure so we can retain single sign-on. Can you also verify what version off Drupal it works with, ideally drupal v7 is the way we want to go..

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x