drupal 7 - how to write node content module programmatically -
drupal 7 - how to write node content module programmatically -
i have write node module have no thought how start with. construction this:
content type => nutrient {tite, description, nutrient type} content type => meal {title, description, detail( nutrient title, sequence) }
the design view meal this: https://picasaweb.google.com/lh/photo/panw269fpn_2drykkhsmttmtjnzetymypjy0liipfm0?full-exif=true
on right hand size, allow user search nutrient , drag left hand size (detail( nutrient title, sequence)).
however, had created meal create page heavily utilize of jquery (client side program). however, don't know how integrate content type.
how to: 1. when click new meal, can refer page created. 2. when click edit meal, page beingness load. 3. when click view deal, page without edit function loaded. 4. how can implement module, e.g. flag, comment, e.g. content type.
may summary how can write node content type programmatically , callback should use.
thank.
to include javascript file, utilize <?php drupal_add_js(); ?>
.
if need include file on 1 node, can enable php content filter module (which part of core), , have above code (pointing custom js file displaying page content) within of block php selected content filter.
this prevent need js code downloaded on pages other one(s) need display custom layout.
drupal-7
Comments
Post a Comment