is there a way to make an rss feed for the document you create with getResources/getPage ?
www.tornooi.net online database for (sport) events in dutch.
To be redesigned, rewritten to modx with multiple languages...
ANY help appreciated, I cannot offer money but I can offer free advertising on the site. just message me.
tnx, got it to work
but maybe good to know for others:
put
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
[[*content]]
</channel>
</rss>
in a new template (RSS) and the remainder in the Resource with a Content Type of RSS
www.tornooi.net online database for (sport) events in dutch.
To be redesigned, rewritten to modx with multiple languages...
ANY help appreciated, I cannot offer money but I can offer free advertising on the site. just message me.
-
☆ A M B ☆
- 2,213 Posts
You may want to look into this one as it notes fixes for cdata and such:
http://modx360.com/blog/2010/02/getresources-rss-feed.html
Note also there’s a :cdata output filter built into Revo, that you can use to wrap a tag’s output with CDATA tags, such as [[+content:cdata]].
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
-
☆ A M B ☆
- 2,213 Posts
Quote from: splittingred at Aug 08, 2010, 07:49 PM
Note also there’s a :cdata output filter built into Revo, that you can use to wrap a tag’s output with CDATA tags, such as [[+content:cdata]].
Hum.... So we can take [[+introtext:toCDATA]] and make it [[+introtext:cdata]]. Super! Now if only there was a URL Encoding function....
-
☆ A M B ☆
- 2,213 Posts
Quote from: splittingred at Aug 08, 2010, 09:41 PM
Actually, there is...the documentation doesn’t list all the filters. I need to update it.
[[+string:urlencode]]
[[+anencodedstring:urldecode]]
You can see all the filters in the code here, for now: http://github.com/modxcms/revolution/blob/master/core/model/modx/filters/modoutputfilter.class.php
... I was looking for that last night and found it hard to believe that wasn’t included... Well looks like you’ve shaken up my world again! Back to fun and games
-
MODX Staff
- 10,725 Posts
So if you reload the edit page on the Resource, does it still show your RSS content type or HTML?