We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26182
    • 164 Posts
    what do the xe etc. things mean in terms of this feed I’m trying to display on a web page:

    http://feeds.mycareer.com.au/results?partitionID=1&s=151&q=project+manager&l=4&c=6&sc=465&sm=1&format=atom

    I keep getting an error when I try to display this feed URL.

    This is the snippet call I’m using:


    [!FeedX? &url=`http://feeds.mycareer.com.au/results?partitionID=1&s=151&q=project+manager&l=4&c=6&sc=465&sm=1&format=atom` &preset=`rss` &caheTime=`3600` &debug=`1`!]


    This is the error I’m getting:

    Version FeedX 0.1.2
    URL http://feeds.mycareer.com.au/resultspartitionI [ERROR RETRIEVING FEED]
    Cache Type Data caching
    Cache Time 900 seconds

    Any help would be awesome smiley

    Sarah
      • 14050
      • 788 Posts
      In snippet calls, "=", "&", "?" have defined meaning, in which will cause conflicts if they show up in the feed URL. To avoid conflicts, the snippet author does character replacement, which requires you to change any of those symbols in the feed URL as follows:

      "=" changed to "|xe|"
      "&" changed to "|xa|"
      "?" changed to "|xq|"

      So for your example, it would look like:

      [!FeedX? &url=`http://feeds.mycareer.com.au/results|xq|partitionID|xe|1|xa|s|xe|151|xa|q|xe|project+manager|xa|l|xe|4|xa|c|xe|6|xa|sc|xe|465|xa|sm|xe|1|xa|format|xe|atom` &preset=`rss` &caheTime=`3600` &debug=`1`!]
      
      I did that really quick, so if you get an error when you paste that in, double check that I did it right.
      
        Jesse R.
        Consider trying something new and extraordinary.
        Illinois Wine

        Have you considered donating to MODx lately?
        Donate now. Every contribution helps.
        • 26182
        • 164 Posts
        hey jesse,

        thanks so much for that. how do you get it to display on the page?

        at the moment i’ve just got the two links:

        open debug console
        save debug console

        does this mean there is an error?

        any help would be great

        thankyou

        sarah smiley
          • 14050
          • 788 Posts
          You are using the template for an "rss" feed, and by looking at the URL, I am guessing you should use the one for an "atom" feed. Change the template to &preset=`atom`

          Also, opening the debug console will provide you with a wealth of helpful information for building your own templates. You can find the pre-configured templates at assets/snippets/FeedX/tpl
            Jesse R.
            Consider trying something new and extraordinary.
            Illinois Wine

            Have you considered donating to MODx lately?
            Donate now. Every contribution helps.
            • 22533
            • 41 Posts
            Hello,

            FeedX seems just impressive, but I think there’s a missing feature that would make it just the best XML reader ever!

            How about making it able to store and archive captured feeds into your own MODx site?

            This is a key feature I’d like to implement in my website, and I just asked in this thread because I think Drupal can do that :http://drupal.org/node/289 (can it?)

            Is anyone else interested in this feature?
              • 6470
              • 69 Posts
              Hi Greg!

              It is possible of course.

              get the feed array

              $feedx = new FeedX($config);
              $feedx->getData();// get array

              $array=$feedx->elements[0][children][0][children];
              $Item=count($array); // number if elements

              make a loop over array to check if this item already published

              $n=0;
              $clearCache=0;

              while($n<=$Item){
              if ($array[$n][name]=="ITEM"){

              -------------
              foreach($children as $key=>$value)
              {
              if($value[pagetitle]==$title){$exist=true;}
              }
              if(!$exist){//if utem not exist-publish it.

              for publishing use api by r001
              require_once( $_SERVER["DOCUMENT_ROOT"].’/assets/libs/docmanager/document.class.inc.php’);
              $doc = new Document();

              $doc->Set(’pagetitle’,$title);
              //$doc->Set(’longtitle’,’audio topic on’.$title.’of’.$date);
              // $doc->Set(’description’,substr($introtext, 0, 25));
              $doc->Set(’introtext’,$introtext);
              $doc->Set(’parent’,$folder);
              $doc->Set(’alias’,$alias);

              $doc->Set(’content’,$text);
              $doc->Set(’template’,$template);
              $doc->Set(’tvrssMp3’,$targetMp3);
              // $doc->Set(’tvrssImage’,$rss[image][1]);
              $doc->Save();
                • 22533
                • 41 Posts
                Wouhou! Drupal can stay at home! laugh

                MODx rules, congratulations for this snippet ApoXX, thanks a lot danielsl! grin

                I’ll try it as soon as I start rebuilding my site!
                  • 26182
                  • 164 Posts
                  hey jesse,

                  I still don’t seem to be getting anything.

                  this is the call I’m making:
                  
                  [!FeedX? &url=`http://www.seek.com.au/jobsearch/index.ascx|xq|AdvertiserID|xe|21885849 ` &preset=`atom` &cacheTime=`3600` &debug=`1`!] 


                  :(

                  please help!
                    • 26182
                    • 164 Posts
                    Hi again,

                    Just thought I’d provide the data I’m getting from the feed.

                    HEAD
                    TITLE 	SEEK Job Search - Find jobs using multiple job search options
                    META
                    LINK.REL 	stylesheet
                    LINK.TYPE 	text/css
                    LINK.HREF 	/ID_SEEKMAIN_USR/USR.css
                    LINK.1.REL 	stylesheet
                    LINK.1.TYPE 	text/css
                    LINK.1.HREF 	/ID_SEEKMAIN_USR/homepagemain_05.css
                    LINK.2.REL 	stylesheet
                    LINK.2.TYPE 	text/css
                    LINK.2.HREF 	/general_ID_items/spacing.css
                    LINK.3.REL 	stylesheet
                    LINK.3.TYPE 	text/css
                    LINK.3.HREF 	/ID_SEEKMAIN_USR/skeletal.css
                    SCRIPT.LANGUAGE 	javascript
                    SCRIPT.SRC 	/javascript/1_0/browser_detection.js
                    SCRIPT.1.LANGUAGE 	javascript
                    SCRIPT.1.SRC 	/javascript/1_0/object_manipulation.js
                    SCRIPT.2.LANGUAGE 	javascript
                    SCRIPT.2.SRC 	/javascript/1_0/Display.js
                    SCRIPT.3.LANGUAGE 	javascript
                    SCRIPT.3.SRC 	/javascript/1_0/Filter.js
                    SCRIPT.4.LANGUAGE 	javascript
                    SCRIPT.4.SRC 	/javascript/1_0/general_javascripts.js
                    SCRIPT.5.LANGUAGE 	javascript
                    SCRIPT.5.SRC 	/javascript/1_0/validation.js
                    SCRIPT.6.LANGUAGE 	javascript
                    SCRIPT.6.SRC 	/javascript/1_0/javascript_testing.js
                    SCRIPT.7.TYPE 	text/javascript
                    SCRIPT.7.SRC 	/unique_javascripts.js
                    -
                    META.NAME 	keywords
                    META.CONTENT 	jobs, seek, job search, employment, seek.com.au, seek.com, www.seek.com.au, job seek, job, jobs in australia, seek employment, career, jobs australia, seek jobs australia,resume, careers, jobsearch, career australia, career search, part time jobs, job finder, jobs online, employment in australia, jobs in sydney, job search sydney, australian job search, job search australia, jobsearch australia, it jobs, australian jobs, employment agencies, jobs in melbourne, job search melbourne, job sites, recruitment, recruitment agencies, employment australia, sydney jobs, employment sydney,job australia, government jobs, melbourne jobs,adelaide jobs, perth jobs, canberra jobs, brisbane jobs,graduate jobs, ww.seek.com.au, www,seek.com.au, advanced search, advanced job search
                    META.1.NAME 	description
                    META.1.CONTENT 	Search for jobs by location, work type and classification or browse job ads at SEEK Job Search.


                    Sorry for being such a bother. Thanks so much for your help so far.

                    Sarah
                      • 14050
                      • 788 Posts
                      That is not an atom feed. In fact, it does not look like a XML feed at all. Unfortunately, I do not think you will be able to use FeedX to display the search results from Seek.com on your own site.
                        Jesse R.
                        Consider trying something new and extraordinary.
                        Illinois Wine

                        Have you considered donating to MODx lately?
                        Donate now. Every contribution helps.