{"id":26,"date":"2011-09-07T14:07:36","date_gmt":"2011-09-07T14:07:36","guid":{"rendered":"http:\/\/sites.keene.edu\/test1\/?page_id=26"},"modified":"2012-04-25T15:27:26","modified_gmt":"2012-04-25T15:27:26","slug":"yis-new-page","status":"publish","type":"page","link":"https:\/\/sites.keene.edu\/test1\/?page_id=26","title":{"rendered":"Editing a CF page with WordPress"},"content":{"rendered":"<p>This is actually a Coldfusion page on Suncook, being edited with WordPress on sites.keene.edu. Here&#8217;s how.<\/p>\n<p>On Suncook, I have a test folder at \/test\/wpress\/.<\/p>\n<p>In the folder there is a file called gettext.cfm, created many moons ago by Mike Caulfield so the Development people could edit their pages with WordPress. gettext.cfm grabs a WordPress page by its URL and page_id and outputs the content on the CF page on Suncook. You just need to do two things.<\/p>\n<p>1. In application.cfm, you simply have to set the URL variable with the URL of the WordPress site you want to use to edit:<\/p>\n<p>&lt;cfset request.wordpressurl = &#8220;http:\/\/sites.keene.edu\/test1\/&#8221;&gt;<\/p>\n<p>2. Then each page on Suncook that will be edited with WordPress just needs to have the following CF bootstrappy type code where the request.id is passed the page&#8217;s ID number:<\/p>\n<p>&lt;cfset request.id=26&gt;<br \/>\n&lt;CF_GETTEXT&gt;<\/p>\n<p>5. Then the user can simply edit that page in WordPress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is actually a Coldfusion page on Suncook, being edited with WordPress on sites.keene.edu. Here&#8217;s how. On Suncook, I have a test folder at \/test\/wpress\/. In the folder there is&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"class_list":["post-26","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.keene.edu\/test1\/index.php?rest_route=\/wp\/v2\/pages\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.keene.edu\/test1\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.keene.edu\/test1\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.keene.edu\/test1\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.keene.edu\/test1\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":16,"href":"https:\/\/sites.keene.edu\/test1\/index.php?rest_route=\/wp\/v2\/pages\/26\/revisions"}],"predecessor-version":[{"id":30,"href":"https:\/\/sites.keene.edu\/test1\/index.php?rest_route=\/wp\/v2\/pages\/26\/revisions\/30"}],"wp:attachment":[{"href":"https:\/\/sites.keene.edu\/test1\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}