0

I have created a local index for the purpose of user being able to upload images for an image gallery. I just want to be able to access the images from within that local index, but can't work out how to access the contents of the local index.

I have been able to get the index with: $.getBean("feedManager").read('F78748AB-BADD-5E7F-86890BE17C0E11E8').

With this, I can see the appropriate properties for the local index, however I can't see, nor find a way to access the content items within that feed. In particular, I just want to be able to get to the related image for each item.

I am able to view the items via the RSS feed.

Many Thanks in advance for any pointers.

Jason

4

1 回答 1

2
feed = $.getBean("feedManager").read('F78748AB-BADD-5E7F-86890BE17C0E11E8')

您的代码为您返回本地索引的 feedBean。下一步是向 feedBean 询问内容。内容可以以两种格式返回:查询对象或迭代器。

询问:

feed.getQuery();

迭代器:

feed.getIterator();

如果您要求查询格式,您可以使用带有“查询”属性的“cfloop”标签对其进行循环。

如果您要求迭代器,此文档将帮助您在 Mura 中循环迭代器(如果是内容迭代器的文档,但概念相同): http ://docs.getmura.com/developer-guides/back-最终开发/内容迭代器/

于 2013-07-01T07:31:55.500 回答