Git Product home page Git Product logo

getfeed's People

Contributors

bobray avatar opengeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

getfeed's Issues

idx Placeholder

getFeed is missing a idx placeholder which you can use in your tpl to number the different entries.

Just adding the line

$modx->setPlaceholder("idx",$itemIdx+1);

right before the chunk output is generated will give it to you (this will number the items from 1...n).

Caching & https

I posted this in the modx support forum as well - please forgive the cross post.

Issues/Gotchas:

  • there appears to be a caching issue, I got things up and running, added a couple of events but they did not appear in the chunk output. I cleared the cache VIA the manager interface but no dice. not until I went into the site VIA shell & deleted the contents of /core/cache did the new events start showing up.
  • http vs. https, https protocol does not appear to work. Taking a quick look at the code, honestly not understanding all of it, the RSS parsing is done by a modx core module? - is this what is not respecting the https protocol? [luckily google calendars will use either]

enclosures available in the output/chunk

When I look at this rss feed (dutch news)

http://www.nu.nl/feeds/rss/binnenland.rss

then you see an enclosure tag inside every item. It would be great if this one is also available in the chunk for the getFeed items. Maybe could be default; that every tag-attributes are available as tag.attributename.. so the enclusore tag is available as enclusore and attributes like enclosure.url

Cache not clearing with use of getFeed

Cache does not appear to be clearing with use of getFeed (Modx Revolution 2.8.3-pl). Though the RSS feed is updating at the URL used in the 'url' parameter, web content has not updated accordingly with use of Snippet call as shown below. Replacing URL with a different URL does not always update web content after saving. Is there a specific format that the URL must follow for the cache to clear? Are query strings allowed in the URL as in the example below? Is https (vs. http, as used in documentation) acceptable? Please let me know if additional info is needed. Created issue in revolution as well, and can close it in either repo as needed.

[[!getFeed? &url=`https://path.com/to/my/events/event/?feed=feed` &tpl=`RSSFeedParser`]]

Possible error with date_timestamp:ago

Not sure if this is getFeed or output filter that's at fault, but using the code from the Addons doc you get a display that says the tweet was posted 40 years 8 months ago, irrespective of when it was actually posted (using :date=%c seems to indicate the string is the right date, so I might be filing this in the wrong place, sorry).

Sorting entries

Hi

I had the (maybe exotic) problem that a feed was oddly sorted (not by date). To handle this I modified the getFeed Snippet to accept a &sortby and a &sortdir parameter. &sortby allows to sort by any of the 'fields' that are available as placeholders. It also handles 'nested' fields found in RDF feeds (e.g.: dc.date).

I thought I could share it here. The modified code is found here: http://pastebin.com/QF3wttVp

Multiple Feeds?

Hope this is the right place to post this, but multiple feed aggregation would be a godsend!

caching and time out

perhaps we should better adding caching system (as a file or as a database), and time out limit.

getFeed / magpie - Support for latest WordPress (3.0.1) datafeed?

Has anyone been able to get getFeed to correctly parse a blog feed from a clean install of the latest WordPress (v.3.0.1)? getFeed is functioning fine for other sample feeds, but I am running into magpie parse errors related to the WordPress feed?

(ERROR @ /modx/revolution/core/model/modx/xmlrss/rssfetch.class.php : 242) User warning: MagpieRSS: Failed to fetch http://localhost/modx/revolution/blog/?feed=rss2 (HTTP Response: HTTP/1.0 301 Moved Permanently)

NOTE: This is the same error whether I have "FURLs" enabled for WordPress or not...

support for firstClass and lastClass

Would be nice to be able to have a firstClass, lastClass properties to be able to define.

Then two placeholders [[+classes]] and [[+classnames]] as in getResources to use in the tpl chunk

getFeed fails with PHP 8.1

Upgraded site to use PHP 8.1 and MODX 2.8.6 however, unfortunately those pages which are running getFeed fail to load. When getFeed is disabled page loads, or if I downgrade PHP to 7.4 then works.

picasa feeds not supported

Hi,

this feed

https://picasaweb.google.com/data/feed/base/user/108218182177660842131/albumid/5632151548598894385?alt=rss&kind=photo&hl=en_US

generates a

[2012-11-04 15:30:12](ERROR in getFeed @ /Users/multimedia3/Sites/ba/core/cache/includes/elements/modsnippet/13.include.cache.php : 48) Error parsing RSS feed at https://picasaweb.google.com/data/feed/base/user/108218182177660842131/albumid/5632151548598894385?alt=rss&kind=photo&hl=en_US

error message in the console.

Thanks

getFeed causes XPDO cache to go nuts and some other things...

The following error messages were all caused by getFeed (we documented the whole issue and attempts to resolve it, but its in a private forum ...)
Here are the error messages:

Receiving the following error messages (alternately)
1.
Fatal error: Out of memory (allocated 11796480) (tried to allocate 40961 bytes) in /home/sebweb/sebweb-modx-core/model/modx/modscript.class.php on line 48
(related to XPDO)

Fatal error: Out of memory (allocated 11796480) (tried to allocate 55125 bytes) in /home/sebweb/sebweb-modx-core/xpdo/cache/xpdocachemanager.class.php on line 925

When logged into the MODx manager, if I "save" a resource or an element, the website becomes accessible and loads without issue.
As soon as the home page is "requested" a second time, I get the following error message:

Fatal error: Out of memory (allocated 11796480) (tried to allocate 40961 bytes) in /home/sebweb/sebweb-modx-core/model/modx/modscript.class.php on line 48
1.
If I attempt further "refreshing of the home page, I get the following error message:

Fatal error: Out of memory (allocated 11796480) (tried to allocate 14332 bytes) in /home/sebweb/sebweb-modx-core/model/modx/modparser.class.php on line 87

When logged into the MODx manager, I can navigate the website (with the same browser) with absolutely no issues. No error messages, no page crashing, everything works perfectly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.