开发者

drupal module development

开发者 https://www.devze.com 2023-03-02 22:34 出处:网络
i have 2 question in drupal: 1.what\'s means of vid 开发者_JAVA技巧in node table? 2.I have three vocabularies:

i have 2 question in drupal: 1.what's means of vid 开发者_JAVA技巧in node table? 2.I have three vocabularies: Embassy Organisation Bussiness How can I test in my node-address.tpl.php if the node type address belongs Embassy vocabulary ?


  1. Node revision ID
  2. I would use hook_node_view() for D7 or hook_nodeapi() "view" $op in a case of D6 for this. Putting logic into a template file is usually a bad idea.


vid depends on context, it can either mean Vocabulary ID in taxonamy or reVision ID for nodes. In the latter case it only is used if you have revisions enabled and it is set to save older versions of nodes.

0

精彩评论

暂无评论...
验证码 换一张
取 消