我正在尝试使用自定义 SQL 报告来解开一个复杂的多语言 Drupal 站点。
通过四处寻找,我能够构建这个 SQL 语句,它给了我所有节点并帮助我找到翻译关系。
SELECT node.nid as node_nid, node.language as node_language,
node.type as node_type, node.title as node_title,
node.tnid as node_tnid, node.status as node_status, url.src,
url.dst, url.language as url_language
FROM {node} as node
LEFT JOIN {url_alias} as url
ON url.src = CONCAT('node/', node.nid)
ORDER BY node_type, node_language, node.nid
现在我想为每个节点添加“允许的输入格式”和发布选项。还要列出所有菜单及其包含的内容。