New Community Forums are coming. Watch this space for news.
Subscribe: RSS
  • Let's back up. wink

    I didn't mean to hijack gallenkamp's topic. It may be possible to do what you want with ParseX, but if you want to look at other options, we should be in a new topic.

    Because your search is very simple, I think you could import your data into Resources (maybe with the help of ParseX), put the month and date in, say, the description field and use TVs and regular resource fields for the other information. Then you could use getResources or pdoResources to retrieve the quotes you want. If you want more info on that approach, please start a new topic.

      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
    • Quote from: BobRay at Apr 09, 2016, 10:29 PM
      Let's back up. wink

      I didn't mean to hijack gallenkamp's topic. It may be possible to do what you want with ParseX, but if you want to look at other options, we should be in a new topic.

      Because your search is very simple, I think you could import your data into Resources (maybe with the help of ParseX), put the month and date in, say, the description field and use TVs and regular resource fields for the other information. Then you could use getResources or pdoResources to retrieve the quotes you want. If you want more info on that approach, please start a new topic.

      Hi Bob, yes you are correct, we've kinda deviated from the thread topic.
      I'm currently configuring migxdb (which is flying off on another tangent!), when I get to the stage of displaying the required info onto a webpage I will start a new topic with a focus solely on the question I want to ask.
      Thanks for sharing your input, it was appreciated
      • Dear Forum-members,

        Please one question to "parsex". I try to import https://events.dwbn.org/api/opencms/de/mannheim/xml which seems to be a valid xml source via

        [[!parsex? &source=https://events.dwbn.org/api/opencms/de/mannheim/ &tpl=xmlTpl &element=item &wrapper=wrapX &debugmode=true]]
        
        .

        The parsex - standard example worked at my system but it was RSS. Does it make any difference? What do I do wrong?
        • Hi SSpind,

          did you try grabbing "RecurringEvents" instead of "item"?

          	
          [[!parsex? &source=`https://events.dwbn.org/api/opencms/de/mannheim/` &tpl=`xmlTpl` &element=`RecurringEvents` &wrapper=`wrapX` &debugmode=`true`]]
          • Sorry for late answer.

            Yes I tried but I get an empty template. The problem seems to be that I dont know what to put in "xmlTpl" and "wrapper". Im an absolute beginner in grabbing XML. Maybe you have an example. Thanks!
            • What is de default cache time of the extra? Can I set 1 day for example? So everyday it refreshing the feed instead of with every page reload?

              Amazing extra btw.
              • Hey Ilja,

                I didn't take care ybout the cache. So I guess(?) it will be cached like a ressource. But please don't rely on that. I am using the extra on my own websites and it served my well in the past years. I didn't test it for cache times.

                Someone sent me an upgraded version of the extra, but I didnt publish it yet. I cant remember who it was and I didt take the time to check if it works the same way. I will go searching now smiley

                Best regards

                Guido