3 "name": "Pman.Tab.CmsBlog",
4 "parent": "Pman.Tab.Cms",
6 "path": "/home/alan/gitlive/Pman.Cms/Pman.Tab.CmsBlog.bjs",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
16 "tableName": "CmsBlog",
17 "title": "Pages / Blog Entries",
23 "|render": "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.CmsBlog;\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}"
26 "autoExpandColumn": "title",
32 "*prop": "dataSource",
34 "|sortInfo": "{ field : 'created' , direction : 'DESC' }",
42 "|url": "baseURL + '/Roo/CmsBlog.php'",
49 "totalProperty": "total",
50 "xtype": "JsonReader",
51 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'title',\n 'type': 'string'\n },\n {\n 'name': 'published',\n 'type': 'date',\n 'format' : 'Y-m-d H:i:s'\n },\n {\n 'name': 'body',\n 'type': 'string'\n },\n {\n 'name': 'comments_no',\n 'type': 'int'\n },\n {\n 'name': 'trackbacks_no',\n 'type': 'int'\n },\n {\n 'name': 'extended',\n 'type': 'string'\n },\n {\n 'name': 'has_extended',\n 'type': 'int'\n },\n {\n 'name': 'author_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_title',\n 'type': 'string'\n },\n {\n 'name': 'is_draft',\n 'type': 'int'\n },\n {\n 'name': 'updated',\n 'type': 'date',\n 'format' : 'Y-m-d H:i:s'\n },\n {\n 'name': 'created',\n 'type': 'date',\n 'format' : 'Y-m-d H:i:s'\n },\n {\n 'name': 'to_replace_id',\n 'type': 'int'\n },\n {\n 'name': 'page_link',\n 'type': 'string'\n },\n {\n 'name': 'in_rss',\n 'type': 'int'\n },\n {\n 'name': 'parent_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_title',\n 'type': 'string'\n },\n\n {\n 'name': 'author_id_id',\n 'type': 'int'\n },\n {\n 'name': 'author_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'author_id_name',\n 'type': 'string'\n },\n {\n 'name': 'author_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'author_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'author_id_email',\n 'type': 'string'\n },\n {\n 'name': 'author_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'author_id_role',\n 'type': 'string'\n },\n {\n 'name': 'author_id_active',\n 'type': 'int'\n },\n {\n 'name': 'author_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'author_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'author_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'author_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'author_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'author_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'author_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_parent_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_short_name',\n 'type': 'string'\n },\n {\n 'name': 'category_id_title',\n 'type': 'string'\n },\n {\n 'name': 'category_id_page_text',\n 'type': 'string'\n },\n {\n 'name': 'category_id_type',\n 'type': 'string'\n },\n {\n 'name': 'category_id_search_on',\n 'type': 'string'\n },\n {\n 'name': 'category_id_image_menu_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_image_menuover_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_image_leftactive_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_image_page_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_display_order',\n 'type': 'int'\n },\n {\n 'name': 'category_id_more_info_title',\n 'type': 'string'\n },\n {\n 'name': 'category_id_more_info_text',\n 'type': 'string'\n },\n {\n 'name': 'category_id_visible',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_id',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_title',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_published',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_body',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_comments_no',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_trackbacks_no',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_extended',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_has_extended',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_author_id',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_category_id',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_is_draft',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_updated',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_created',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_to_replace_id',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_page_link',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_in_rss',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_parent_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_title',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_published',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_body',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_comments_no',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_trackbacks_no',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_extended',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_has_extended',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_author_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_category_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_is_draft',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_updated',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_created',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_to_replace_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_page_link',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_in_rss',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_parent_id',\n 'type': 'int'\n }\n]",
58 "xtype": "PagingToolbar",
61 "displayMsg": "Displaying CmsBlog{0} - {1} of {2}",
62 "emptyMsg": "No CmsBlog found",
72 "|click": "function()\n{\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
74 "cls": "x-btn-text-icon",
77 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
82 "|click": "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n \n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
84 "cls": "x-btn-text-icon",
87 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
92 "cls": "x-btn-text-icon",
93 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
96 "|click": "function()\n{\n //Pman.genericDelete(_this, _this.grid.tableName); \n}\n "
103 "*prop": "colModel[]",
104 "dataIndex": "created",
107 "xtype": "ColumnModel",
108 "|renderer": "function(v) { return v? v.format('d/M/Y') : '--' }",
112 "*prop": "colModel[]",
113 "dataIndex": "published",
114 "header": "Published",
116 "xtype": "ColumnModel",
117 "|renderer": "function(v) { return v? v.format('d/M/Y') : '--' }",
121 "*prop": "colModel[]",
122 "dataIndex": "parent_id_title",
125 "xtype": "ColumnModel",
126 "|renderer": "function(v) { return String.format('{0}', v || ''); }",
130 "*prop": "colModel[]",
131 "dataIndex": "category_id_title",
132 "header": "Category",
134 "xtype": "ColumnModel",
135 "|renderer": "function(v) { return String.format('{0}', v); }",
139 "xtype": "ColumnModel",
142 "dataIndex": "title",
143 "|renderer": "function(v) { return String.format('{0}', v); }",
145 "*prop": "colModel[]"
148 "*prop": "colModel[]",
149 "dataIndex": "author_id_name",
152 "xtype": "ColumnModel",
153 "|renderer": "function(v) { return String.format('{0}', v); }",
157 "*prop": "colModel[]",
158 "dataIndex": "page_link",
159 "header": "Page link",
161 "xtype": "ColumnModel",
162 "|renderer": "function(v) { return String.format('{0}', v); }",
166 "*prop": "colModel[]",
167 "dataIndex": "to_replace_id_title",
168 "header": "To replace",
170 "xtype": "ColumnModel",
171 "|renderer": "function(v) { return String.format('{0}', v); }",
175 "*prop": "colModel[]",
176 "dataIndex": "is_draft",
179 "xtype": "ColumnModel",
180 "|renderer": "function(v) { return String.format('{0}', v); }",
184 "*prop": "colModel[]",
185 "dataIndex": "has_extended",
188 "xtype": "ColumnModel",
189 "|renderer": "function(v) { return String.format('{0}', v); }",
193 "*prop": "colModel[]",
194 "dataIndex": "trackbacks_no",
197 "xtype": "ColumnModel",
198 "|renderer": "function(v) { return String.format('{0}', v); }",
202 "*prop": "colModel[]",
203 "dataIndex": "comments_no",
206 "xtype": "ColumnModel",
207 "|renderer": "function(v) { return String.format('{0}', v); }",
211 "*prop": "colModel[]",
212 "dataIndex": "in_rss",
215 "xtype": "ColumnModel",
216 "|renderer": "function(v) { return String.format('{0}', v); }",
224 "permname": "Cms.Blog"