简体   繁体   English

用于ModX Evolution的getResources?

[英]getResources for ModX Evolution?

Does anyone know if getResources works for ModX Evolution? 有人知道getResources是否可用于ModX Evolution吗? I've been trying to get it working for a while now with no success. 我一直在尝试使其工作一段时间,但没有成功。

If there is no way to get it working, does anyone know of an equivalent way to get multiple resources to show on the one page (with their templates as well)? 如果没有办法使其正常工作,那么有人知道用相同的方法来在页面上显示多个资源(以及它们的模板)吗?

Many thanks 非常感谢

[[!getResources? &parents=`58` &sortdir=`ASC` &sortby=`menuindex` &limit=`100` &includeTVs=`1` &processTVs=`1` &tpl=`eventtemp` ]] 

You should be able to replicate this using Ditto in Evolution - the snippet call would be something like: 您应该能够在Evolution中使用Ditto复制此代码-代码段调用类似于:

[!Ditto? &parents=`58` &orderBy=`menuindex ASC` &display=`100` &tpl=`eventtemp`!]

100 is quite a lot of resources to list on one page though. 但是,在一页上列出100的资源是很多。 The query might be a bit slow, are you sure you want to do that? 查询可能会有点慢,您确定要这样做吗?

试试这样的东西,对我来说很好

<a href="[~61~]" title="[!Ditto? &documents=`61` &tpl=`@CODE [+pagetitle+]`!]">a link text</a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM