Evening all,
I came across FeedX in the hope that it could solve a problem for me. I am fairly new to modx and new to XML but he we go anyway.
I have attached an XML file that is generated by a third party site and for which I am trying to create templates for the site deals with properties.
I have been playing around with the templates for some time now, but with limited luck, I have inserted basic information in the templates just to get them to work:
Outer
<div id="searchresultspage">
Begining of Outer Template
</br>
Page Count [+PROPERTIES.PAGECOUNT+] <BR></BR>
Page[+PROPERTIES.PAGE+] <BR></BR>
Total [+PROPERTIES.TOTAL+] <BR></BR>
GID [+PROPERTIES.GID+] <BR></BR>
GTYP [+PROPERTIES.GTYP+] <BR></BR>
STYP [+PROPERTIES.STYP+] <BR></BR>
PERPAGE [+PROPERTIES.PERPAGE+] <BR></BR>
PORTFOLIO [+PROPERTIES.PORTFOLIO+] <BR></BR>
end of Outer Template
</br>
</br>
<h2>Your Search Results</h2>
{{PROPERTIES->inner}}
</div>
Inner
<div class="return"></div>
<div class="searchresultsproperty">
<div class="image">
<a HREF="Search.ASP?WCI=Particular&WCE=[+PROPERTY.ID+]&CURRENCY=GBP">
<img border="0" class="dezrez-thumb"
SRC="
http://data.dezrez.com/PictureResizer.ASP?PropertyID=[+PROPERTY.ID+]
&PhotoID=1&AgentID=398&BranchID=603&width=200&rotation=0">
</a>
</div>
<div class="addressprice">
{{PROPERTY->property}}
</div>
</div>
</div>
Property
<div class="address">
Adrress: [+SA1+]
</div>
<div class="price">
Price: [+PRICETEXT+]
</div>
<div class="description">
Description: [+DESCRIPTION+]
</div>
My problem is that I seem to be able to generate the list of properties which is fine and good but there is only one level of the element PROPERTY being displayed as opposed to one for every property which means I can only generate one image, the same image for all the properties. I am sure that I doing something silly??? Can this be done using FeedX or have a taken the wrong route?
My next question is I suppose is the stumbling block that may cause the whole thing to collapse, would I be able to have a form with user input that would then call FeedX to get the data from the third party website and then display the results based on that input?
Any help with this would be greatly appreciated.
Kind Regards and many thanks in advance.
Yoshima