Unable to theme node/add/custom_content_type in Drupal 7

I've followed what previously worked in Drupal 6 in creating a separate template file for node/add/custom_content_type.

I've go this in my template.php:

function mytheme_theme() {
return array(
'business_case_justification_node_form' => array(
'arguments' => array('form' => NULL),
'path' => drupal_get_path('theme', 'mytheme') . '/templates',
'template' => 'business-case-justification-node-form',
'render element' => NULL,
)
);
}

Lots of "Notice: Undefined variables"

I am sure this is happening because of a difference in the way that themes work in Drupal 7 vs. 6, but I can't figure it out.

Attribute title in hook_menu item didn't work

I have installed Drupal 7 RC3, and in my module I have this item in the hook_menu:

$items['test/something'] = array(
        'title' => 'Test',
        'page callback' => 't_test_page',
        'access arguments' => array('t_test something'),
        'type' => MENU_CALLBACK,
);

But when I go to the section of this menu, in the title of the section I get "Home" instead of "Test".

What is wrong?

Thanks!!

Where is the code to modify a node?

So on my front page I have articles. Each article is setup with a "title" and "read more" that is linked to another page that looks just like the one you just left. I hate the way this works. I want the title to not be linkable anymore and the read more to go away forever. I have searched high and low for a solution and nothing.

Installing Drupal in server root of subdirectory?

Hello,
I have started with Drupal and am pretty enthousiasticabout it :) But after some installation related issues, I decided to do a clean install. Actually I tried to move all Drupal files from the server root (/var/www) to a subdirectory but got some nasty 404 errors after that...
So a clean install. The INSTALL.TXT which comes with the distro orders to copy the contents of the archive file into the server root, change some permissions and run the install script.
But I do not want to put the files in my server root again! Just because I have some other (static) sites running on my server and want to keep things organized. My Drupal tutorial is just one of my projects...
So my proposal is to make a subdir under var/www called drupal 7, so the files will be copied to /var/www/drupal7
(Btw I use Ubuntu Linux with Apache and PHP5 and my base URL is www.drsklaus.nl, this is the URL that points to my IP address.
Is is good practice to use this subdirectory construction?
The INSTALL.TXT further orders to run the isntall script by browsing to your base URL to run the install script, but I guess that I need to browse to www.drsklaus.nl/drupal7 now.
Some complication issue is that I have my Apache default configuration (/etc/apache2/sites-available/default) point to the directory /var/www/www.drsklaus.nl/public_html, where my home site resides.

Top 5 Reasons to Upgrade from Drupal 6 to Drupal 7 ?

Hello, I'd like to know your top 5 reasons to upgrade your site(s) from Drupal 6 to Drupal 7, assuming all your required modules have been ported (you know they will be) to Drupal 7.

What is it? Speed? Less resource hungry? Better interface? What makes it worthwhile for you?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x