i have 2 question in drupal:
1.what's means of vid 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 ?
Do you know that there is a drupal q+a site as well here?
- Matt
2 Answers
1
votes
Node revision ID
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.
0
votes
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.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more