我的模板中有代码:
$query = new EntityFieldQuery();
$entities = $query->entityCondition('entity_type', 'node')
->propertyCondition('type', 'article')
->propertyCondition('status', 1)
->fieldCondition('field_show_on', 'tid', $group['identifier'], '=') // taxonomy identifier
->fieldCondition('field_perks_categories', 'tid', $categories['tid'], '=')
->fieldCondition('field_perks_sub_categories', 'tid', $subcategory['tid'], '=')
->execute();
我还有其他名为“artc_order”的表,其中包含 nid、重量以手动订购文章我想实现这个: http ://eureka.ykyuen.info/2012/05/16/drupal-7-order-entityfieldquery-by- random-using-hook_query_tag_alter/ 到我的模板文件,怎么做?