We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12089
    • 27 Posts
    Hi I’ve been using FeedX for a while for simple parsing but I have run in to something I can’t figure out how to do. I get a XML feed from a real estate company listing an agents houses. Here’s a simplified version
    <Listings>
    	<house sold="false">
    		<idinscr>1357932</idinscr>
    		<price>135000.0</price>
    		<region_f>Montréal-Rive-Sud</region_f>	
    		<description_f>** Very nice condo etc...</description_f>
    	</house>
    ...
    	<house sold="false">
    		<idinscr>1357932</idinscr>
    		<price>135000.0</price>
    		<region_f>Montréal-Rive-Sud</region_f>	
    		<description_f>** Very nice condo etc...</description_f>
    	</house>
    </Listings>
    

    I can get each house to display correctly but I can’t seem to find how to get the sold setting to display for each house. On average the listing contains 20-25 houses.
    Templates are as follows
    outer.tpl
    {{LISTINGS->house}}
    
    house.tpl
    {{HOUSE->inner}}
    
    inner.tpl
    <div class="onglet">
    [+PRIX+]
    [+VILLE_F+]<br />
    [+DESCRIPTION_F+]
    </div>
    

    Thanks for the help
      Hexagone3internet -  marketing - advertisinghexacontact.comEmail marketing service
      • 8883
      • 59 Posts
      Hi,
      I have an Endnote XMl Export file: http://www.kreidefossilien.de/assets/media/bibliografie-kreide-sachsen.xml
      I tried to make an TPL - but it doesnt work for more than one entries.

      Look at http://www.kreidefossilien.de/literatur

      My FeedX-Call:
      [!FeedX? &url=`http://www.kreidefossilien.de/assets/media/bibliografie-kreide-sachsen.xml` &preset=`xml_endnote` &debug=`1`!]


      structure of the XML
      xml
      records

      record
      contributors
      authors
      author
      titles
      title
      short-title
      SECONDARY-TITLE
      pages
      volume
      num-vols
      dates
      year
      pub-location
      publisher
      PERIODICAL
      full-title
      NUMBER
      SECTION

      What’s the reason for showing the values of the second entry a couple of times?
        • 32066
        • 12 Posts
        Hello... wow.. just wanted to say that FeedX is the bomb! smiley

        I wanted to make a template for an ebay rss. Can anybody show me pointer on how to do it? Or maybe if there’s a template readily available?

        Thanks

        UPDATE:
        n/m... i’ve got it now... thanks! smiley
          • 32066
          • 12 Posts
          Hello... I’m looking to do some kind of paging with FeedX. Any hints or suggestions I can look at?
          I wanted to break down items from the rss feed into several pages.
          You can see the page I’m working on at http://www.buymoviesdvd.com/

          thanks!
            • 4775
            • 47 Posts
            Maybe this is a weird question, maybe not. What I’m trying to do is have FeedX automatically create documents based on an RSS feed. When articles post to the feed I would like a document created for each one. A user can browse the feed, click an article summary, than ends up on a page within my site where the article can be read. Is that doable? Maybe there is another snippet that can do this?
              • 14050
              • 788 Posts
              Is this your own feed, or someone else’s?
                Jesse R.
                Consider trying something new and extraordinary.
                Illinois Wine

                Have you considered donating to MODx lately?
                Donate now. Every contribution helps.
                • 4775
                • 47 Posts
                It’s not my feed, however, I’m not actually pulling the article, it still links through to the feeds provider and the original article. I simply would like to have a snippet create a new document for each article summary. This seems pointless but I’m trying to create like an archive of some sort of all the rss summaries that have passed through. I’m not stealing any content or articles, I’m just using what is provided in the feed only. And will all link through to the article on the authors website wink I hope that clears up any misconceptions.
                  • 14050
                  • 788 Posts
                  I didn’t think you were stealing it, but if it was your own feed, I was going to say there was an easier way. I don’t think FeedX is capable of doing what you want. You might have to code up something of your own, but I would take a look at the the NewsPublisher snippet to see how it creates documents. I would likely use SimplePie to get at the elements of the feed you need to create the document by methods like NewsPublisher uses. You can see how SimplePie can be utilized by looking at the Google Events snippet.

                    Jesse R.
                    Consider trying something new and extraordinary.
                    Illinois Wine

                    Have you considered donating to MODx lately?
                    Donate now. Every contribution helps.
                    • 4775
                    • 47 Posts
                    Yeah I figured I would have to code it. I have been checking out Newspublisher lately and will take a look at Google Events. Thanks for pointing the way! grin
                      • 10076
                      • 1,024 Posts
                      Quote from: Jesse at Apr 08, 2007, 12:02 PM

                      Here is a tpl file for anyone wishing to use weather.com. This is very basic, but using the template builder, this will easily get you started. An example can be seen here:


                      http://www.cmssandbox.com/MODx095/index.php?id=57

                      The snippet call is as follows:
                      [!FeedX? &url=`http://xoap.weather.com/weather/local/YOURZIPCODE|xq|cc|xe|*|xa|prod|xe|xoap|xa|par|xe|YOURPARTNER#|xa|key|xe|YOURLICENSEKEY` &preset=`weather.com`!]

                      For me here in europe its hard to use weather.com.So I am trying to fix it with yahoo weather. Using this call at the moment

                      [!FeedX? &url=`http://weather.yahooapis.com/forecastrss|xq|p|xe|ITXX0082|xa|u|xe|c|xa|preset|xe|xml!]


                      On the web site it display just the following:
                      Yahoo! Weather - Varese, IT
                      Conditions for Varese, IT at 11:50 pm CET
                      This is a link to the yahoo page with the forecast. Nothing about the conditions on the site however, any suggestions?