3 "name": "Pman.Tab.CmsPage",
4 "parent": "Pman.Tab.Cms",
6 "path": "/home/alan/gitlive/Pman.Cms/Pman.Tab.CmsPage.bjs",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n try {\n _this.dialog = Pman.Dialog.CmsPage;\n } catch(e) {}\n}"
23 "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
24 "celldblclick": "function (_self, rowIndex, columnIndex, e)\n{\n\n var s = this.getDataSource().getAt(rowIndex);\n _this.dialog.show(s.data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}"
27 "autoExpandColumn": "title",
35 "beforeload": "function (_self, options)\n{\n options.params = options.params || {};\n options.params._columns = 'id,category_id_title,title,published,page_link,parent_id_page_link,visible,in_rss';\n options.params['query[search]'] = _this.searchField.getValue();\n}"
37 "*prop": "dataSource",
40 "|sortInfo": "{field : 'updated', direction : 'DESC' }",
47 "|url": "baseURL + '/Roo/Page.php'",
54 "totalProperty": "total",
55 "xtype": "JsonReader",
56 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'shortname',\n 'type': 'string'\n },\n {\n 'name': 'category_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_title',\n 'type': 'int'\n },\n {\n 'name': 'title',\n 'type': 'string'\n },\n {\n 'name': 'contents',\n 'type': 'string'\n },\n {\n 'name': 'visible',\n 'type': 'int'\n },\n {\n 'name': 'extended',\n 'type': 'string'\n },\n {\n 'name': 'trackbacks_no',\n 'type': 'int'\n },\n {\n 'name': 'comments_no',\n 'type': 'int'\n },\n {\n 'name': 'has_extended',\n 'type': 'int'\n },\n {\n 'name': 'author_id',\n 'type': 'int'\n },\n {\n 'name': 'author_name',\n 'type': 'string'\n },\n {\n 'name': 'updated',\n 'type': 'string'\n },\n {\n 'name': 'created',\n 'type': 'string'\n },\n {\n 'name': 'published',\n 'type': 'string'\n },\n {\n 'name': 'page_link',\n 'type': 'string'\n },\n {\n 'name': 'parent_id',\n 'type': 'int'\n },\n {\n 'name': 'in_rss',\n 'type': 'int'\n },\n {\n 'name': 'replaces_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]",
63 "xtype": "PagingToolbar",
66 "displayMsg": "Displaying Page{0} - {1} of {2}",
67 "emptyMsg": "No Page found",
77 "render": "function (_self)\n{\n _this.searchField = _self;\n}"
84 "|click": "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}"
88 "|icon": "rootURL + '/Pman/templates/images/search.gif'",
92 "|xns": "Roo.Toolbar",
97 "|click": "function()\n{\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
99 "cls": "x-btn-text-icon",
102 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
107 "|click": "function()\n{\n var sc = _this.grid.getSelectionModel().getSelected();\n if (!sc) {\n Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n return;\n }\n var s =_this.grid.getDataSource().getById(sc.id);\n \n _this.dialog.show(s.data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
109 "cls": "x-btn-text-icon",
112 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
117 "|click": "function()\n{\n // Pman.genericDelete(_this, _this.panel.tableName); \n}\n "
119 "cls": "x-btn-text-icon",
122 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
128 "xtype": "ColumnModel",
132 "|renderer": "function(v) { return String.format('{0}', v); }",
134 "*prop": "colModel[]"
137 "*prop": "colModel[]",
138 "dataIndex": "category_id_title",
139 "header": "Category",
141 "xtype": "ColumnModel",
142 "|renderer": "function(v) { return String.format('{0}', v); }",
146 "xtype": "ColumnModel",
149 "dataIndex": "title",
150 "|renderer": "function(v) { return String.format('{0}', v); }",
152 "*prop": "colModel[]"
155 "xtype": "ColumnModel",
156 "header": "Published",
158 "dataIndex": "published",
159 "|renderer": "function(v) { return String.format('{0}', v); }",
161 "*prop": "colModel[]"
164 "xtype": "ColumnModel",
165 "header": "Page link",
167 "dataIndex": "page_link",
168 "|renderer": "function(v) { return String.format('{0}', v); }",
170 "*prop": "colModel[]"
173 "xtype": "ColumnModel",
176 "dataIndex": "parent_id",
177 "|renderer": "function(v) { return String.format('{0}', v); }",
179 "*prop": "colModel[]"
182 "*prop": "colModel[]",
183 "dataIndex": "visible",
186 "xtype": "ColumnModel",
187 "|renderer": "function(v) { return String.format('{0}', v); }",
191 "*prop": "colModel[]",
192 "dataIndex": "in_rss",
195 "xtype": "ColumnModel",
196 "|renderer": "function(v) { return String.format('{0}', v); }",
204 "permname": "Cms.Page"