weratrader.blogg.se

Creating rss feed for website
Creating rss feed for website












creating rss feed for website

Modifications would be the parent of all pages you want included in the You’ve probably thought of this already, but the process described in thisĪrticle will also work to create an RSS feed for your whole site. :date modifier actually calls the strftime() function This isn’t necessary, though, because the MODX PHP function strftime() will respect the locale settingĪnd date() won’t. Modifier should be replaced with the :strftime modifier because the If your site is multi-lingual, you might suspect that the :date output &tpl property of your getResources Snippet tag. ]īe sure the name of the Tpl Chunk you create matches the Chunk specified in the My Tpl Chunk is called rssItem,īut you can call it whatever you like. The format of an individual item in the feed is in the Chunk specified in the Separate sections, you can use a comma-separated list of IDs here.īe sure to make the resource published, and you may want it hidden from menus.ĭon’t forget to save it. Change that to the ID of yours, or if your blog has The &parents property is set to 282, which is the ID of my It’s possible to sort by a TV value as well. If you need more complex searching and/or sorting, see the getResourcesĭocumentation. The default sort direction is descending, so the tag above will show the 10 most Listed above are the most common, and it makes sense to use a date field, so you’ll You can use any Resource field here, though the ones

creating rss feed for website creating rss feed for website

Publishedon, unpublishing and re-publishing an article will move Pages that were recently updated to bubble to the top of the list. I chose editedon for the &sortby property because I wanted If you want to show them all, though I think it’s generally a bad idea. I have it set toġ0, but you can use whatever number you like. The &limit property says how many articles to show. I used getResources to create the feed, though pdoResources might also work and The upper right, select the (empty) option for no Template. Important: Using the Template drop-down list at I used the Title “What’s New at Bob’s Blog”, and for the Summary (introtext) field: The ResourceĬreate a new Resource and fill in the Title, Summary (introtext) and Alias fields. I don’t claim to be an RSS feed expert, but here’s how I did it at Bob’s Guides. Setting up an RSS feed for your blog can be a little tricky.














Creating rss feed for website