We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21778
    • 223 Posts
    NVM delete haha
      • 14172
      • 1 Posts
      Hi All,

      I’m hoping for some FeedX related help. I’m working with a fairly complex XML file and am struggling to get the data to display.

      The templates I’m using so far are as follows:

      
      Outer.tpl
      
      [+AGENCY.NAME+]
      
      {{AGENCY->branches}}
      
      branches.tpl
      
      {{BRANCHES->branch}}
      
      branch.tpl
      
      [BRANCH.NAME+]
      
      {{BRANCH->properties}}
      
      properties.tpl
      
      {{PROPERTIES->property}}
      
      property.tpl
      
      [+ADVERT_HEADING+]
      


      The ’loaded templates’ shows the following which indicates to me its set up properly.

      outer  	[+AGENCY.NAME+] {{AGENCY->branches}}
      branches 	{{BRANCHES->branch}}
      branch 	{{BRANCH->properties}}
      properties 	{{PROPERTIES->property}}
      property 	[+ADVERT_HEADING+]
      


      With this, I have the top level [+AGENCY_NAME+] displaying correctly, however information further down the structure does not display at all. At the moment the template is very simple, just to get the data to display before I start working on the formatting. In the debug section I am able to see my entire feed, its available placeholders in the template builder but cannot see what is wrong with my template.

      I’ve attached my debug file (take the .txt extension off) and am hoping someone may be able to shed some light on what I’m doing wrong.

      Many thanks,

      James
        • 33208
        • 21 Posts
        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&amp;WCE=[+PROPERTY.ID+]&amp;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
          • 27749
          • 53 Posts
          Hi,
          such a great snippet!
          Did anyone have it working with https..?
          I am not sure if there really is a difference (and is caused by feedx), but if I access the XML via http the feed gets parsed. If I put it somewhere else and access via https I get error retrieving feed.
          Thanks for any advice.

          (solved - the problem was the server sending wrong mime type (text/xml) - the correct one was (application/xml)

          Easy solution via .htaccess
          RewriteEngine on
          RewriteCond %{REQUEST_URI} \.xml$
          RewriteRule .* - [T=application/xml]



            • 33208
            • 21 Posts
            Apoxx or any kind soul out there,

            is there a guide to creating templates that I can use with this Snippet. I have an XML file that I want to use on a site but am having great difficulty in getting the display correct. A simple guide or point in the right direction would be greatly appreciated as I have come up against a wall here.

            Kind Regards

            Yoshima
              • 18463
              • 121 Posts
              Martijn van Turnhout Reply #386, 16 years, 1 month ago
              Hey guys:

              regarding the Twitter preset for FeedX: how can I possibly include the Twitter user profile image in it? I’ve tried [+PROFILE_IMAGE_URL], but that doesn’t seem to give any results.

              Thanks in advance!
                • 18209
                • 15 Posts
                Hi, i’m struggling with this snippet and templates...

                EDIT---------------------------------
                I found my problem, I was calling the inner chunk, without "RSS->" before its name...
                (so removed my question....)

                Still, since this topic has 20 pages, and no clear instructions on the first page/post... and going through 20 pages, without knowing if there is a post with more details/instructions....is going to be tiresome..... sigh...

                Does anybody know a nice, "all-you-need-to-know"-post? The instructions are sometimes not really understandable, and I have the feeling there’s a lot more possible with this snippet, than I can gather from some of the comments...

                Any help/thoughts appreciated!
                  • 16430
                  • 217 Posts
                  Hi, does anyone solved the date formating issue yet?
                  [+PUBDATE:date=`%d/%m/%Y`+] is not working.
                    • 23714
                    • 13 Posts
                    Basically, due to FeedX posting things on my homepage, Google now thinks my site is a news site, and messing with the SERPS, so the only hack to fix this is to use a special combo of javascript and html output like this:

                    <script language="javascript" type="text/javascript">
                    document.write('<?php the_time('j') ?>'); </script> <?php the_time('M Y'> ?> 
                    


                    Is there a way to do this with feedX?

                    P.S. On a scale of 1 to 10, I am a 3 with Modx.
                      • 11858
                      • 130 Posts
                      I moved my site to another server, and now it’s caching the rss feed that FeedX is supposed to display so all the tweets are very old. Also, when I try to open the debug console, only a copy of the page that the feed is on loads, not the debug console.

                      Any ideas what’s going wrong?