Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道 modx 的插件,它将显示链接到每个文档 ID 的所有页面,还是我必须创建自己的?
你可以为自己写一个片段。使用代码
$weblinkArray = $modx->getCollection('modWeblink',$criteria);
$criteria您要设置的一组标准、限制或约束在哪里,例如
$criteria
$criteria = array( 'published' => 1,// this is optional, more parameters can be optionally added as well )
这为您提供了链接的文档数组。此外,您知道如何访问数组的数据。