Sometimes it's good to keep track of when content changes since a specific date, maybe for content review or SEO review, etc.This little pdoResources recipie will output just that.
Array
(
[id] => 240
[type] => document
[contentType] => text/html
[pagetitle] => View MODX Resource Changed Since a Specific Date
[longtitle] =>
[description] =>
[alias] => view-modx-resource-changed-since-a-specific-date
[alias_visible] => 0
[link_attributes] =>
[published] => 1
[pub_date] => 0
[unpub_date] => 0
[parent] => 170
[isfolder] => 0
[introtext] =>
[richtext] => 1
[template] => 1
[menuindex] => 2
[searchable] => 1
[cacheable] => 1
[createdby] => 1
[createdon] => 1551228806
[editedby] => 1
[editedon] => 1551228868
[deleted] => 0
[deletedon] => 0
[deletedby] => 0
[publishedon] => 1551228780
[publishedby] => 1
[menutitle] =>
[donthit] => 0
[privateweb] => 0
[privatemgr] => 0
[content_dispo] => 0
[hidemenu] => 0
[class_key] => modDocument
[context_key] => web
[content_type] => 1
[uri] => resources/view-modx-resource-changed-since-a-specific-date
[uri_override] => 0
[hide_children_in_tree] => 0
[show_in_tree] => 0
[properties] => Array
(
[contentblocks] => Array
(
[content] => [{"layout":1,"content":{"main":[{"value":"<p>Sometimes it's good to keep track of when content changes since a specific date, maybe for content review or SEO review, etc.</p><p>This little pdoResources recipie will output just that.</p>","field":0,"settings":[]},{"value":"<table class=\"table\">\n\n[[pdoResources? \n\t&where=`{\"editedon:>=\":\"1541108495\"}`\n\t&tpl=`@INLINE <tr><td>[[+id]]</td><td><a href=\"[[~[[+id]]]]\">[[+pagetitle]]</a> </td><td> [[+editedon:date]]</br></td></tr>`\n\t&parents=`0`\n\t&limit=`0`\n\t&showDeleted=`1`\n\t&showHidden=`1`\n\t&sortby=`editedon`\n\t&showUnpublished=`1`\n\t\n\t]]\n\n\n</table>","lang":"html","field":69,"settings":[]}]},"settings":[],"parent":0,"title":""}]
[linear] => Array
(
[0] => Array
(
[value] => <p>Sometimes it's good to keep track of when content changes since a specific date, maybe for content review or SEO review, etc.</p><p>This little pdoResources recipie will output just that.</p>
[field] => 0
[settings] => Array
(
)
)
[1] => Array
(
[value] => <table class="table">
[[pdoResources?
&where=`{"editedon:>=":"1541108495"}`
&tpl=`@INLINE <tr><td>[[+id]]</td><td><a href="[[~[[+id]]]]">[[+pagetitle]]</a> </td><td> [[+editedon:date]]</br></td></tr>`
&parents=`0`
&limit=`0`
&showDeleted=`1`
&showHidden=`1`
&sortby=`editedon`
&showUnpublished=`1`
]]
</table>
[lang] => html
[field] => 69
[settings] => Array
(
)
)
)
[fieldcounts] => Array
(
[0] => 1
[69] => 1
)
[_isContentBlocks] => 1
)
)
[idx] => 1
[link] =>
)
Array
(
[id] => 172
[type] => document
[contentType] => text/html
[pagetitle] => MODX Output Filter: SendBottom
[longtitle] =>
[description] =>
[alias] => sendbottom
[alias_visible] => 1
[link_attributes] =>
[published] => 1
[pub_date] => 0
[unpub_date] => 0
[parent] => 170
[isfolder] => 0
[introtext] => An Output Modifier for MODX CMS that allows you to send code to the bottom of the page for rendering, such as javascript.
[richtext] => 1
[template] => 1
[menuindex] => 0
[searchable] => 1
[cacheable] => 1
[createdby] => 1
[createdon] => 1506972295
[editedby] => 1
[editedon] => 1545170730
[deleted] => 0
[deletedon] => 0
[deletedby] => 0
[publishedon] => 1506972240
[publishedby] => 1
[menutitle] =>
[donthit] => 0
[privateweb] => 0
[privatemgr] => 0
[content_dispo] => 0
[hidemenu] => 0
[class_key] => modDocument
[context_key] => web
[content_type] => 1
[uri] => resources/sendbottom
[uri_override] => 0
[hide_children_in_tree] => 0
[show_in_tree] => 0
[properties] => Array
(
[contentblocks] => Array
(
[content] => [{"layout":1,"content":{"main":[{"value":"<p>MODX Output filter to put code right above the closing body tag. </p><p>Useful for javascript that is added in the middle of the page, but needs to be placed in the bottom.</p><p><br></p>","field":0,"settings":[]},{"value":"Usage","level":"h2","field":1,"settings":{"subheading":"","align":"","kicker":""}},{"value":"[[sendBottom?code=`code to move to bottom here`]]","lang":"html","field":69,"settings":[]},{"value":"Output MOdifier Code","level":"h2","field":1,"settings":{"subheading":"","align":"","kicker":""}},{"value":"<?php\n$modx->regClientHTMLBlock($code); \nreturn '';","lang":"html","field":69,"settings":[]}]},"settings":[],"parent":0,"title":""}]
[linear] => Array
(
[0] => Array
(
[value] => <p>MODX Output filter to put code right above the closing body tag. </p><p>Useful for javascript that is added in the middle of the page, but needs to be placed in the bottom.</p><p><br></p>
[field] => 0
[settings] => Array
(
)
)
[1] => Array
(
[value] => Usage
[level] => h2
[field] => 1
[settings] => Array
(
[subheading] =>
[align] =>
[kicker] =>
)
)
[2] => Array
(
[value] => [[sendBottom?code=`code to move to bottom here`]]
[lang] => html
[field] => 69
[settings] => Array
(
)
)
[3] => Array
(
[value] => Output MOdifier Code
[level] => h2
[field] => 1
[settings] => Array
(
[subheading] =>
[align] =>
[kicker] =>
)
)
[4] => Array
(
[value] => <?php
$modx->regClientHTMLBlock($code);
return '';
[lang] => html
[field] => 69
[settings] => Array
(
)
)
)
[fieldcounts] => Array
(
[0] => 1
[1] => 2
[69] => 2
)
[_isContentBlocks] => 1
)
)
[idx] => 2
[link] =>
)
Our Work
Web Design & Development Services
Resources