Custom Submenu Classes

Greetings!

I'm very new to Drupal. I've read many resources on this Drupal's website, read a few books, and Google anything else.

I'm trying to recreate a static site using Drupal 7 and am a bit stuck on the menu.

In the original site, there are five links--Home, Interactive Labs, Units, Support Materials, and Glossary. The Units link isn't really a link however but Drupal wasn't allowing me to add a non-link or a page that doesn't exist into my menu. It has three child lists--Microeconomics, Macroeconomics, and International. Each list has n-children. I figured out how to add a custom class to each <li> by using:

function econocize_menu_link(&$variables) 
{
	$element = $variables['element'];
	$class = toCssNameFormat($element['#original_link']['link_title']);
	$element['#attributes']['class'][] = 'menu-'.$class;

	$submenu = '';
	if($element['#below'])
	{
		$submenu = '<ul class="menu submenu submenu-'.$class.'">'.render($element['#below'])."</ul>";
	}

	$link = l($element['#title'], $element['#href'], $element['#localized_options']);

	return '<li'.drupal_attributes($element['#attributes']).'>'.$link.$submenu."</li>\n";
}

which is a combination of different forum posts I already found and some of my own code.

Click on add content and get a blank page without content types

Has anybody else experienced this? Is this an issue with the core?

bind hostname to node/page

Ok so I'm pretty sure drupal cant really do this, however, with drual how would one do this

so i have a apache vhost for my drupal install for xxxx.com/www.xxxx.com
now i want to add sub.xxxx.com
added to nameserver, added to vhost. done

now when i goto sub.vhost.com it goes to my drupal page.

but i want it to goto a specific node

SA-CONTRIB-2011-017 - Save Draft - Validation Bypass

  • Advisory ID: DRUPAL-SA-CONTRIB-2011-017
  • Project: Save Draft (third-party module)
  • Version: 6.x, 7.x
  • Date: 2011-April-27
  • Security risk: Moderately critical
  • Exploitable from: Remote
  • Vulnerability: Validation bypass

Dyamically multiple add form in one parent form

Hi,

I'm wondering if there is a way to create a multiple add form in a parent form, using drupal. Actually, I need to create a form that allows the user to create many related content types, adding new forms dynamically.

In my first approach, I've tried to used the #ajax property in order to dynamically add a new form. This new form is appended to the parent form (the one that will rule them all...). Ok... this is ok by now. The problems are:

Drupal Usability Testing: We need your help!

During the Drupal 7 release cycle we had two usability tests, one at the University of Minnesota and one at the University of Baltimore. These tests helped us understand the fundamental issues that Drupal site-builders face and set the direction for many of the major usability improvements in Drupal 7. These tests also triggered a cultural shift within the Drupal contributor community: we now consider user experience design a top priority in all major development efforts.

As the next step in this effort, we are running new usability tests to inform Drupal 8 development!

From May 17-19, the University of Minnesota has once again offered to host a formal usability test in their lab facilities, this time targeting Drupal 8 (as well as Drupal 7 contrib). These tests will give us the chance to see how far we’ve come in solving issues we identified previously. They will also give us a chance to evaluate the new interfaces and tools we added to Drupal 7 core, including the Overlay, Contextual Links, and Toolbar modules.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x