Skip to main content
updated for updated question
Source Link
acouch
  • 2.6k
  • 17
  • 22

It would be easier to point you in the right direction if you give a broader description of your goal. Why are you trying to add a form to your node type? Are you trying to add fields to a node? Is this a form the user will fill out? If so, you might want to look at the Webform module.

You want to avoid putting this into your node template. Generally you want to keep "business logic" (any php functions other than print) out of template files. You might be better served by creating this as a block and placing it below or above the node because it is more reuseable. If you don't want to use a block you can use hook_node_view() and add an additional element to $node->content as in the linked example.

It would be easier to point you in the right direction if you give a broader description of your goal. Why are you trying to add a form to your node type? Are you trying to add fields to a node? Is this a form the user will fill out? If so, you might want to look at the Webform module.

You want to avoid putting this into your node template. Generally you want to keep "business logic" (any php functions other than print) out of template files. You might be better served by creating this as a block and placing it below or above the node because it is more reuseable. If you don't want to use a block you can use hook_node_view() and add an additional element to $node->content as in the linked example.

You want to avoid putting this into your node template. Generally you want to keep "business logic" (any php functions other than print) out of template files. You might be better served by creating this as a block and placing it below or above the node because it is more reuseable. If you don't want to use a block you can use hook_node_view() and add an additional element to $node->content as in the linked example.

added 521 characters in body
Source Link
acouch
  • 2.6k
  • 17
  • 22

It would be easier to point you in the right direction if you give a broader description of your goal. Why are you trying to add a form to your node type? Are you trying to add fields to a node? Is this a form the user will fill out? If so, you might want to look at the Webform module.

You want to avoid putting this into your node template. Generally you want to keep "business logic" (any php functions other than print) out of template files. You might be better served by creating this as a block and placing it below or above the node because it is more reuseable. If you don't want to use a block you can use hook_node_view() and add an additional element to $node->content as in the linked example.

It would be easier to point you in the right direction if you give a broader description of your goal. Why are you trying to add a form to your node type? Are you trying to add fields to a node? Is this a form the user will fill out? If so, you might want to look at the Webform module.

It would be easier to point you in the right direction if you give a broader description of your goal. Why are you trying to add a form to your node type? Are you trying to add fields to a node? Is this a form the user will fill out? If so, you might want to look at the Webform module.

You want to avoid putting this into your node template. Generally you want to keep "business logic" (any php functions other than print) out of template files. You might be better served by creating this as a block and placing it below or above the node because it is more reuseable. If you don't want to use a block you can use hook_node_view() and add an additional element to $node->content as in the linked example.

added 30 characters in body
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

It would be easier to point you in the right direction if you give a broader description of your goal. Why are you trying to add a form to your node type? Are you trying to add fields to a node? Is this a form that the user will fill out? If so, you might want to look at the webform module http://dgo.to/webformWebform module.

It would be easier to point you in the right direction if you give a broader description of your goal. Why are you trying to add a form to your node type? Are you trying to add fields to a node? Is this a form that the user will fill out? If so you might want to look at the webform module http://dgo.to/webform

It would be easier to point you in the right direction if you give a broader description of your goal. Why are you trying to add a form to your node type? Are you trying to add fields to a node? Is this a form the user will fill out? If so, you might want to look at the Webform module.

Source Link
acouch
  • 2.6k
  • 17
  • 22
Loading