English 中文(简体)
modx - 当Im在ditto snippet使用“&documents=”参数时,主食
原标题:modx - when I m using "&documents=" parameter in ditto snippet, pagination doesn t work

I m 试图用具有特定用途的参数 d:

&documents=

当我把静态身份识别码放在空白处时:

[[Ditto? &documents=`9,239,240,242,243,246,253,257,260,261,267,269,281,285,288` &showInMenuOnly=`1` &tpl=`item_subdocs`  &summarize=`2` &paginate=`1` &paginateAlwaysShowLinks=`1`  ]]
[+previous+][+pages+][+next+]

it works - pagination, link under the list - it s OK but when I m trying to retrieve that IDs dynamically - by some snippet:

[[Ditto? &documents=`[[getIDs]]` &showInMenuOnly=`1` &tpl=`item_subdocs`  &summarize=`2` &paginate=`1` &paginateAlwaysShowLinks=`1`  ]]
[+previous+][+pages+][+next+]

它没有工作。 想象力联系将消失,但当我从URL调来网页时,添加以下词语:

?start=2

It s work... anyone knows what has happened?
Also running simple code from that snippet:

echo  9,239,240,242,243,246,253,257,260,261,267,269,281,285,288 ;

does

问题回答

try to get your snippet to output the values rather than just echoing them:

产出=9 239 240,242,243,246,253,257,260,261,267,269,281,285,288;

收益分成:

声音固然sil,但 mo子如果 calls叫不回东西,就可以做ir。





相关问题
Mutually exclusive powershell parameters

SCENARIO I m writing a cmdlet for Powershell 2.0 using Visual Studio 2008 and .NET 3.5 the cmdlet requires 3 arguments. my intended grammar of the cmdlet is something like this: cmdletname [foo|...

Elegant way building url request with parameters

There must me a more elegant way to build a URL with parameters in .NET then for example Response.Write("<a href=HeadOfMarketView.aspx"+Session["HOM"] != null ? Session["HOM"]+">Head of Market&...

Can you pass by reference in Java?

Sorry if this sounds like a newbie question, but the other day a Java developer mentioned about passing a paramter by reference (by which it was ment just pass a Reference object) From a C# ...

How to name a method that has an out parameter?

What is the common preference to name a method that has an out parameter inside? Usually I use Get as a prefix to mention that the method returns a value (like GetMyBusiness). But what if there is ...

How to create program startup parameters in python

I m just beginning to learn python and the program I m writing requires parameters for it to run with a specific task. For example (programs name is Samtho) samtho -i Mozilla_Firefox How can I do ...

Weird behaviour of h:commandLink action (MethodExpression)

I have two JSPs where I am displaying some info from database in a h:dataTable. One of them is showing all the info, and one of them user specifically. I have showXML.jsp that shows the "XML" column ...

using parameter in SQL with LIKE keyword

from my C#-programm, I access a SQL Server 2008 Database. I have a table with a fulltextindex and want to search for an indexed entry: SELECT page_id FROM page_categories WHERE page_title LIKE @title ...

采用网路服务方法

我撰写了一个网络服务,期望一个参数(所谓的“hlink”)成为一种ur。 在使用网络服务之前,URLEncode 所涉参数(“hlink”)。 然后我打电话......。

热门标签