This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

New Node Type or not?

So, when is it a good idea NOT to create a new node type? I'm working on a small project again with drupal and I am starting to wonder why it's such a great idea to make everything a node, especially since the entries in the node table could possibly end up with empty values for both title and description.

gallery module bread crumb broken

Hi to all!

I got gallery2 wprking with the drupal gallery modul.
Url rewriting seems to work as well.

But the bread crumb links from the gallery2 theme matrix don't work:

e.g. the url in the bread crumb navigation to get back to the top is
http://localhost/gallery/?g2_highlightId=43
-> Error (ERROR_MISSING_OBJECT) : Parent 7 path gallery

Banner module installed. But is not working

Hai,

I am just insatalled the banner module. I can add/edit the banners and is listed as well. Also view link is working fine. But it is not seeing in the front page. I had set the status as enabled. But the result is the same.

Please help me.

Thanks
Nissar

Taxonomy Selection an the new 4.7 Forms API

On this page: http://drupal.org/node/36899 we learn that you no longer need a statement like this...

if (function_exists('taxonomy_node_form')) {
    $output = implode('', taxonomy_node_form($node->type, $node));
  }

... to render a taxonomy selection box on your form. I've tried that out with some modules I'm converting to 4.7 and it works just fine.

hook_form_alter question: how to modify taxonomy select boxes?

I am using hook_form_alter() to modify the form to create/edit/delete a form. I wish to modify the taxonomy select boxes that appear on this form in the "Categories" section. Specifically, I want to either hide 1 or more of the select boxes or add a link next to certain select boxes.

The trouble is that none of these taxonomy form elements appears in the $form variable that is passed to mymodule_form_alter().

How can I modify the taxonomy form elements in the node form?

Thanks

Module code appears at top of admin/modules page

Using Drupal 4.7b2, I used the node_example.module template as the base of my own module. When I upload this file to the ./modules directory, and navigate to admin/modules, once the page is done loading I see the code of my module in a run-on fashion at the top of the screen.

Is this a common problem? I couldn't find anything similar listed on the forums. Perhaps it was introduced with 4.7.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions