SyntaxError: expected expression, got ',' ,publish_document: "1" http://pakybaps.dev:8888/manager/?a=resource/update&id=46
<script type="text/javascript">
// <![CDATA[
MODx.config.publish_document = "1";
MODx.onDocFormRender = "";
MODx.ctx = "web";
Ext.onReady(function() {
MODx.load({
xtype: "modx-page-resource-update"
,resource: "6"
,record:
,publish_document: "1"
,preview_url: "http://pakybaps.dev:8888/index.php?id=6"
,locked: 0
,lockedText: ""
,canSave: 1
,canEdit: 1
,canCreate: 1
,canCreateRoot: 1
,canDuplicate: 1
,canDelete: 1
,show_tvs: 0
,mode: "update"
});
});
// ]]>
</script> <script type="text/javascript">
// <![CDATA[
MODx.config.publish_document = "1";
MODx.onDocFormRender = "";
MODx.ctx = "web";
Ext.onReady(function() {
MODx.load({
xtype: "modx-page-resource-update"
,resource: "10"
,record: {"id":10,"type":"document","contentType":"text\/html","pagetitle":"I'm New","longtitle":"","description":"","alias":"im-new","link_attributes":"","published":true,"pub_date":0,"unpub_date":0,"parent":9,"isfolder":false,"introtext":"","content":"<p>Hi, ","richtext":true,"template":3,"menuindex":0,"searchable":true,"cacheable":false,"createdby":1,"createdon":"2015-07-08 22:14:41","editedby":1,"editedon":"2015-08-15 13:15:05","deleted":false,"deletedon":0,"deletedby":0,"publishedon":"2015-07-08 22:14:00","publishedby":1,"menutitle":"","donthit":false,"privateweb":false,"privatemgr":false,"content_dispo":0,"hidemenu":false,"class_key":"modDocument","context_key":"web","content_type":1,"uri":"","uri_override":false,"hide_children_in_tree":0,"show_in_tree":1,"properties":null,"syncsite":true,"parent_pagetitle":"Welcome","resourceGroups":[],"create_resource_token":"55ceaf672a4538.25271134"}
,publish_document: "1"
,preview_url: "http://pakybaps.dev:8888/index.php?id=10"
,locked: 0
,lockedText: ""
,canSave: 1
,canEdit: 1
,canCreate: 1
,canCreateRoot: 1
,canDuplicate: 1
,canDelete: 1
,show_tvs: 0
,mode: "update"
});
});
// ]]>
</script><p>To see every person’s gift, ministries and callings identified, endorsed and fully pursued.</p> <p>To see every person’s daily sphere of influence recognised as a very important ministry of the church.</p> <p>To foster a vision in each person for the proclamation of the Gospel and the extension of God’s Kingdom.</p> <p><b>History</b></p> <p> Pakenham Baptist Church started as a church plant from Beaconsfield Baptist in May 1996. Pastor Fred Rudd was Pastoring both Church’s.
This question has been answered by sottwell. See the first response.