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

How to get taxonomy terms for the current node from a block

Hi All,

I'm trying to build a block that shows the related nodes to the current node by taxonomy term. For example: If the current node in display has a taxonomy term "fish", a bunch of links that link to nodes that have the "fish" term is to be shown in a block on the page.

I have looked all over the forums and the handbook, and I did not see this addressed before.

Subitems for radiobuttuns

Hi all!
Is it possible to have subitems for radiobuttuns? Like:

  • ( ) Radio 1
  • (X) Radio 2
    • [____________] Subitem 1 (textfield)
  • ( ) Radio 3
    • [____________] Subitem 1 (textfield)
    • [ ] Subitem 2 (checkbox)

I thought I could solve this with some code simular to this in combination with fieldsets.

how to add image and content to any page in drupal

hello every body,
i am facing problem about how to add content with uimage to my site after installing drupal.
please help..

Callback executing multiple times for one page view

Hi,

Has anyone else seen a callback in a module executing multiple times for a single page view?

In the call back routine, just to debug, I open a text file with lock on the server and print a line with current timestamp in it and then close it. Instead of one line per page-view (www.drupal.site/lookup/test) I see three lines with same timestamp... sometimes spaced by 1-2 seconds.

Any ideas? Why is drupal executing the code three times? Please see the code snippet below.....

Thanks in advance,

Is it possible to enable/disable form fields in a node based on user's choices higher up in that same form?

Here is the example I'm trying to work on. I'd like to build a website for reviewing various things like movies, music, etc. And I'm seperating out "discussion (which may contain spoilers)" from "reviews (which may not contain spoilers)" from "items (which the reviews and discussion are based on). My thought was to have 3 node types, one for each of them. And then some stuff to link them all together. My thought is that the "items" can be one of many various things like "music, movies, etc"...which brings me to the senario i'm stuck on:

node_lodae problems

I am working on a module and can't figure out how to display the page for a path.

If the path is of the type node/%d, then I can use node_load and everything is fine.
But, if the path is anything other than node such as forum/%d then load_noad doesn't work.

How do I load a page using a path where paths like:
forum/01 , og/ etc will work?

I can not simply use drupal_goto as I am adding elements to the returned page.

Pages

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