Drupal 7 Module Dev - Blocks don't show up

Heyho,

I'm starting to write a module for Drupal 7 according to the HOWTO here: http://drupal.org/node/206753, which is for drupal 6 though.

I created the .info and the .module file exactly as explained in the HOWTO, except that added
files[] = modulename.module
in the .info file to make my module show up in admin/modules (as explained here : http://drupal.org/node/785714)

admin page keep on going to phpinfo()

Hi all solvers,
after I have installed Drupal,whatever item i click on the drupal dashboard, i will be sent to the phpinfo() page. Can some one help me on this ??

Example, i click on module in the drupal dashboard, the website just bring me to phpinfo() with the URL showing "http://localhost/drupal-7.x-dev/?q=admin%2Fmodules&"

Am I doing something wrong here ???

File API: hook file_save: Some clarification on when it is called

Hi

I am new in using File API: http://drupal.org/node/555118

I was reading through some code of a posted Drupal module, and within it was a custom implementation of hook file_save: http://api.drupal.org/api/function/file_save/7

Question #1: When this module is added, then will Drupal call this module's implemented file_save hook upon every event that involves a file save/upload?

Subthemes Must be in the same theme directory

Came across this issue, and don't know if it's a Drupal 7 issue or a Zen issue so I thought I would post it here.

I have a Drupal 7 site, and in the future I plan to have a couple of related sites on the same domain so I am using Drupal's multisite. So I have the normal sites/all/themes dir and a sites/outliersolutions.com/themes dir.

I almost always use Zen for my base, so I thought I would put the Zen theme in the sites/all/themes dir and then have my sub theme in the sites/outliersolutions.com/themes dir. This worked fine for awhile, then I ran into some problems with template overrides.

Namely, while my page--front.tpl.php and a view-field override worked just fine, I could not for the life of me get any other page or node overrides to work. Specifically, I wanted to have a custom page or node tpl for my 'philosophy' page, which was node 3. I tried node--3.tpl.php and page--node--3.tpl.php and neither would work. I was clearing my cache, theme reg was set to clear each time, and I made sure to have my node.tpl.php and page.tpl.php files in same dir as my overrides (sites/outliersolutions.com/themes/onepointtwentyone). Nothing worked. Then I thought, I'll try moving the Zen theme folder out from the sites/all/themes and put it in the sites/outliersolutions/themes dir. BAM! Everything worked fine.

multi-domain, single code and same content

I have a project where a client wants to reduce his content management nightmare of dealing with multiple domains that has the same/similar content (text, images, forms, etc). They would like to have one administration area where they create content and edit content. The designs of each domain is different but I believe the extensions that they would need would be the same.

Can Drupal handle with an extensions or combo of extensions?

How to pre-populate a field

When I create a Story node, I want to prepopulate my taxonomy field based on my selection from a CCK list. How do you do this ?

For example, my Create Content>Story page looks like this:

Title: _____________

Section:_________ (CCK "select list")

Tags: __________________ (free tagging taxonomy field)

Body: _________________

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x