2 * little utils for CMS..
9 pageEditAddCustomFields : function()
11 if (Pman.Cms.customFields) {
16 url : baseURL + '/Core/DatabaseColumns/cms_page',
17 mask : "Loading Schema",
18 success : function(data)
22 Pman.Cms.customFields = true; // only do this once..
24 Roo.each(data.data, function(f) {
26 if (f.table !='cms_page') {
29 if (!f.name.match(/^udf_/)) {
34 // got a user defined field
38 fieldLabel : f.name.substring(4).replace('_', ' ')
43 add.xtype='NumberField';
46 add.xtype='TextField';
52 return; // skip others at present..
56 // add it to the form...
57 var a = Pman.Dialog.CmsBlog.user_defined_fields.addxtype(add);
58 Pman.Dialog.CmsBlog.user_defined_fields.renderField(a);
59 a.render('x-form-el-'+a.id);
68 content : function(id, alternative)
71 return el && el.dom && el.dom.innerHTML.length ? el.dom.innerHTML : alternative;