<![CDATA[ Modules like Ditto - MODX Community Forums]]> https://forums.modx.com/thread/?thread=3382 <![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-524038 http://validator.w3.org/feed/).

Resource Content:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>[[++site_name]]</title>
  <subtitle>[[*longtitle:htmlnet]]</subtitle>
  <link href="[[~[[*id]]? &scheme=`full`]]" rel="self" type="application/atom+xml" />
  <link href="[[++site_url]]" />
  <id>[[~[[*id]]? &scheme=`full`]]</id>
  <updated>[[*editedon:strtotime:date=`%Y-%m-%dT%H:%M:%SZ`]]</updated>
  <rights>CC BY 4.0</rights>
  [[getResources?
    &tpl=`entryTpl`
    &parents=`3`
    &resources=`-10`
    &depth=`5`
    &limit=`25`
    &includeContent=`1`
    &includeTVs=`1`
    &showHidden=`1`
    &hideContainers=`1`
  ]]
</feed>



Template for the entry


<entry>
  <title>[[+pagetitle:htmlent]]</title>
  <link rel="alternate" href="[[~[[+id]]? &scheme=`full`]]" />
  <summary>
    [[+introtext:default=`[[+content:ellipsis=`600`:striptags:escape]]`]]
  </summary>
  <updated>[[+editedon:strtotime:date=`%Y-%m-%dT%H:%M:%SZ`]]</updated>
  <published>[[+publishedon:strtotime:date=`%Y-%m-%dT%H:%M:%SZ`]]</published>
  <id>[[~[[+id]]? &scheme=`full`]]</id>
  <author>
    <name>[[+createdby:userinfo=`fullname`]]</name>
    <email>[[+createdby:userinfo=`email`]]</email>
  </author>
  <rights>CC BY 4.0</rights>
</entry>


header entry


<link rel="alternate" type="application/atom+xml" title="Follow this website with Atom feed" href="[[~14]]">
]]>
artem_klevtsov Apr 07, 2015, 10:02 PM https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-524038
<![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-454163 http://rtfm.modx.com/display/ADDON/getResources.Building+a+RSS+feed

What I found was that the htmlent output modifier was the problem.
<title>[[+pagetitle:htmlent]]</title>

I just deleted it and then it worked...
]]>
sonicpunk Feb 07, 2013, 05:42 AM https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-454163
<![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-411084
I know this one is fairly old but I've got a problem.

Inside the rssItem chunk: why does this
[[~[[+id]]]]

and this
[[+parent]]

work like a charm, while this
[[~[[+parent]]]]

does not? At least for me it doesn't. It results in an empty output.

The parent id however is retrieved correctly. Only the link creation does not work. Not even with ...? &scheme=`full`. What am I doing wrong?

Thanks a lot!]]>
SeveQ Feb 08, 2012, 09:23 AM https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-411084
<![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-20450 markh Jun 16, 2011, 02:37 PM https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-20450 <![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-20449 in your example for the rssItem chunk at http://rtfm.modx.com/display/ADDON/getResources.Building+a+RSS+feed you propose to use the htmlent outputfilter for the pagetitle.
I’ve used this, and it turns out it breaks the IE rss reader when there are named html entities present. This seems logical, because after all the RSS feed is XML, without any reference to a html dtd.
I think it would be better not to use the htmlent outputfilter on the pagetitle, or use a custom outputfilter which produces numbered (hexa)decimal entities.
]]>
bueno Jun 16, 2011, 07:36 AM https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-20449
<![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-20448 Quote from: Mark at Feb 21, 2011, 05:44 PM

And the location tv has a value for the resources you’re including?

it had values before the other manager unchecked and save the TV access for that template.

Very Sorry for troubling, thank you for this assume.
Cheers!]]>
modx.customize Mar 04, 2011, 08:54 AM https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-20448
<![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-20447
What output type are you using for the location tv?]]>
markh Feb 21, 2011, 11:44 AM https://forums.modx.com/thread/3382/modules-like-ditto?page=2#dis-post-20447
<![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto#dis-post-20446 it ’s not seen in HTML source code]]> modx.customize Feb 21, 2011, 11:41 AM https://forums.modx.com/thread/3382/modules-like-ditto#dis-post-20446 <![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto#dis-post-20445 markh Feb 21, 2011, 07:53 AM https://forums.modx.com/thread/3382/modules-like-ditto#dis-post-20445 <![CDATA[Re: Modules like Ditto]]> https://forums.modx.com/thread/3382/modules-like-ditto#dis-post-20444
well, i removerd the parameter of tvprefix,

<item>
      <title>[[+pagetitle:toCDATA]] </title>
      <link>[[++site_url]][[~[[+id]]]]</link>
      <guid>[[++site_url]][[~[[+id]]]]</guid>
      <pubDate>[[+createdon:strtotime:date=`%a, %d %b %Y %H:%M:%S %z`]]</pubDate>
      <description>[[+introtext:toCDATA]] ~[[+tv.location]]</description> 
</item>

but i still have an empty string after description and ~
so the placeholder [[+tv.location]] does not work i am afraid, I mean it does NOT being pulled out to HTML source at all, strange, can you view a private link of that?]]>
modx.customize Feb 21, 2011, 07:11 AM https://forums.modx.com/thread/3382/modules-like-ditto#dis-post-20444