The way to create an automatic menu for a gallery

Hi,
I'm searching for hours to do that but each time I find a solution, another problem comes up :/
What I want to do :
• An "automatic" menu (navigation menu) with 3 terms "Graphiste" "Webdesigner" "Illustrareur".
• A page which list all the projects (pages) related to a term of the menu (example : "Graphiste" if you click on the first item) like this : the title, the thumbnail, the client (all linked to the project).
• A page to present the project.

What I have done :
1- Create a vocabulary "category" and 3 terms : "Graphiste", "Webdesigner", "Illustrateur".
2- Create a content type "Project" to create a spécific page (title, picture, client, description, category).
3- Create a View to display the list of projet per category.
4- Create a menu to display the list of the category terms (my navigation menu).
5- Link taxonomy page with the View to theme the gallery page

What works :
•The menu list the terms as well.
• When I click on an item (example "Graphiste"), I arrive on the View page I customized and al the page with the taxonomy term "Graphiste" are listed and the item is "active" in the menu.
• When I click on a project in the View page I arrive on the Project page I customized.

What doesn't work :
• When I am on the project page the item menu is no longer active :(

So there maybe 2 way :

D7 optgroups in select lists (FAPI)

I've been searching the forums & documentation for the last 4 hours to see if there's any way to set an optgroup in a form select list; there's nothing in the d7 FAPI reference. Is this possible?

#default_value in select list problem

Hi to all,

i have a problem with a module that i am developing. I have a form that consists of two select lists and a table with the results. The options in the second list depend on the selection in the first list. I use an ajax_callback function to update the contents of the second list and the table results . The problem is that while i have set '#default_value' => 0 for the second list , when i change the first one, the selection appears to be the selected item index of the previous list. To be more clear , if I chose the third item in the second list and then change the first list, the contents of the second list will be updated but the third item of the new list will be selected. Here ' s my code with some comments.

<?php
function test_form($form, &$form_state) {
$options_perifereia = perifereia_dropdown_options();
$default_options_perifereia = isset($form_state['values']['Perifereia']) ? $form_state['values']['Perifereia'] : key($options_perifereia);
//first list
$form['Perifereia'] = array(
'#title' => t('Περιφέρεια'),
'#type' => 'select',
'#options' => $options_perifereia,
'#default_value' => $default_options_perifereia,
'#description' => t('Σε ποια περιφέρεια ανήκεις?'),
'#ajax' => array(
// When 'event' occurs, Drupal will perform an ajax request in the

Option list translation

nvm

Drupal7 behind Apache reverse proxy

Gents,
Sending a followup to the previous question... (http://lists.drupal.org/pipermail/support/2011-April/017586.html)

If a main site is http://mainsite.com, and a subsection of it needs to be drupal... then

ProxyPass /drupalsite http://mydrupal.com
ProxyPassReverse /drupalsite http://mydrupal.com

Deprecated function: Call-time pass-by-reference has been deprecated in menu_execute_active_handler() 501 /includes/menu.inc

Own-coded module derived from two step form example gives the above "Call-time pass-by-reference has been deprecated" error.

The referenced line 501 of .../includes/menu.inc does not seem relevant:

 require_once DRUPAL_ROOT . '/' . $router_item['include_file'];

I have no clue what's going on here except that I'm sorta expecting an ampersand to show up. Can anyone please explain what's going on?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x