简体   繁体   English

货物集体传统的分页

[英]Cargo Collective traditional pagination

The Cargo Collective developers (those who have contributed developer themes) seem to be enamored of autopagination. 货物集体开发商(那些贡献了开发者主题的人)似乎迷恋于自动化。 As such, I cannot seem able to find a code snippet that will show how to do traditional pagination. 因此,我似乎无法找到一个代码片段来展示如何进行传统的分页。 Ie. IE浏览器。 when I set my max number of articles to be "3", it shows only 3 at a time. 当我将文章的最大数量设置为“3”时,它一次只显示3个。

I don't mind that I will likely need to provide styles; 我不介意我可能需要提供款式; I just need to know the combination of markup and handlebars required to get the raw pagination in place. 我只需要知道获得原始分页所需的标记和把手的组合。

The documentation hints at some "automated" views, but doesn't provide much description of how to use them unless I'm missing something: views and models documentation . 文档提示了一些“自动化”视图,但没有提供如何使用它们的详细描述,除非我遗漏了一些内容: 视图和模型文档

As such, attempts were guesswork. 因此,尝试是猜测。 My first such attempt was: 我的第一次尝试是:

<div class="pagination" data-view="Pagination"></div>

It seemed like you need a data-set to match, but it doesn't seem to indicate which of the data sets populates the Pagination view with useful data. 看起来你需要一个匹配的data-set ,但它似乎并不表明哪个数据集用有用的数据填充分页视图。

I tried a few things (no point listing them all as they were trying to catch lightning in a jar attempts) such as the following: 我尝试了一些事情(没有点列出所有内容,因为他们试图在jar尝试中捕获闪电),如下所示:

<div class="pag_nav" data-view="Pagination" data-set="Navigation">
  {{Navigation}}
</div>

I don't think the above makes any particular sense and I didn't have any expectation it would work. 我认为上述内容没有任何特别意义,我没有任何期望它会起作用。 Just wanted to illustrate that I tried a few things since I can't find any samples or appropriate documentation. 只是想说明我尝试了一些事情,因为我找不到任何样本或适当的文档。

A point in the right direction for either of those two things would be greatly appreciated! 对于这两件事中的任何一件,正确方向的一点将不胜感激!

It looks like what you are asking for is a slideshow element. 看起来你要求的是一个slideshow元素。

There is an article on how to do this: 一篇关于如何做到这一点的文章

{slideshow}{image 1}{image 2}{image 3}{image 4}{/slideshow}

And there are also good support pages where you can explore further. 还有很好的支持页面 ,您可以进一步探索。

Update 更新

All developer templates seems to be bound to Autopagination. 所有开发人员模板似乎都与Autopagination绑定。 See this discussion , as an example: 作为示例,请参阅此讨论

For a design that uses conventional page navigation inside the thumbnail index and text nav, you'll need to use a Non-Developer Design, like Biblio or Manhattan. 对于在缩略图索引和文本导航中使用常规页面导航的设计,您需要使用非开发人员设计,如Biblio或Manhattan。

It also gives you tip, which (non-developer) templates to use if you need traditional navigation. 它还为您提供了提示,如果您需要传统导航,可以使用哪些(非开发人员)模板。

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

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