+1
Beantwortet
I'm having trouble with datasources. Any idea what I'm doing wrong?
I'm working with using a datasource of an image RSS feed, but I can never get the images to appear. I've tried to distill the datasource gallery sample code to its bare essentials. Here's my code:
The URLs for the images are located at rss/channel/item/url in this XML file: http://widget.stagram.com/rss/n/thill... but my code doesn't seem to find them. Any ideas?
<wire>
<datasources>
<datasource name="gallery" source="" query="//item" providertype="xml" parsenamespaces="yes"/>
</datasources>
<styles>
</styles>
<classes>
<class name="image">
<image name="[param:index]" height="100%" align="center" valign="center" contain="yes" source="[param:sourceMain]" _page="[param:index]" />
</class>
</classes>
<main>
<panel name="slides" alias="SLIDES" width="100%" height="100%">
<list name="scroller" width="100%" height="100%" datasource="gallery" orientation="horizontal" paginate="yes" >
<object class="image" index="[param:dataSourceIndex]" sourceMain="[param:url]"/>
</list>
</panel>
</main>
<actions>
<action name="load" oninit="yes" >
<assign property="datasource:gallery.source" value="http://widget.stagram.com/rss/n/thillsman" />
<assign property="var:curPage" value="1"/>
</action>
</actions>
</wire>
The URLs for the images are located at rss/channel/item/url in this XML file: http://widget.stagram.com/rss/n/thill... but my code doesn't seem to find them. Any ideas?
Customer support service by UserEcho
keep up the good work!
Do I have any options to force it to pull from the right place with parsenamespaces="no"?