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

how to tell node type from inside a block

Hello everybody!
is there a way to know the type of the niode currently displaying from inside a block?
i.e. is $node->type defined inside a block? can I use it?
i'm asking this cause I've seen book.module use arg(0) and arg(1) to know the node type and node id of the currently displayed node; is there a better way? (some global variable, a function to call...)

period at the end of email notifications

why is there a period at the end of emails sent by the notify module?

project.module project node overview page: How to Display project details/links

Hi,
I would like someone to simply explain how to get a project node to display all the data entered when creating the project...just like the drupal project overview page at http://drupal.org/project/drupal which includes:
------------
Releases

* Download latest release
* View older releases

Resources

* Read license
* Read complete log of changes
* Try out a demonstration
* Look at screenshots

Support

Module Docs; Volunteering to re-write

Hi there.

I'm one of those middling users who know very very little coding, but knows some basic site administration tasks. I am also an avid writer, and my background is in publishing. I'm prodding the main drupal-docs mailing list, but I would like to volunteer my services for any module developer who would like a readme/installation for non-programmers.

Music stream

Hi

I would like to know, if it is possible to make a drupal controlled site as a streaming music site.

the reason why i want to know is that I would like to my self composed music on the net, so people can listen to my work.

So if there is a modul that can stream music file let me, otherwise if there is something reletaed to it please let me know.

thanks
/roma

Nested node types

I was wondering if any module developers have been faced with representing m-n relationships between nodes and how this was accomplished. I'm currently faced with the task of mapping a user interface on top of a dozen or so distince data types (tables), each of which is somehow related to the others (through foreign key relationships).

I've seen how the project.module has projects that contain issue nodes and release nodes, but that seems like a much more laborious setup than anything I need. The table structures would look something like the following:

parent_table:
  nid int,
  parent_stuff varchar(255),
  other_stuff varchar(255)


child1_table:
  nid int,
  parent_nid int,  // foreign key into parent_table
  child1_data varchar(255),
  child1_more_data date


child2_table:
  nid int,
  child1_nid int,  // foreign key into child1_table
  child2_other_data varchar(255),
  child2_yet_more_data int

Each node of all types would exist on its own, but nodes of type child1 would have to be associated with a parent node, and nodes of type child2 would have to be associated with a child1 node.

Even if the child1 and child2 types didn't need to exist (as distinct nodes) outside of the scope of the parent node, there would be multiple child1 records for each parent record. Does anybody else do this sort of thing using the node system? I have some ideas for how to deal with this, but they're all kinda clumsy and/or very code intensive. Generally, there isn't much that needs to be done with each data structure other than providing edit facilities and rendering it for viewing. If I thought I could do this using flexinode.module, I certainly would.

Pages

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