CMSB v. 2.50 possible bug
4 posts by 2 authors in: Forums > CMS Builder
Last Post: December 12, 2012 (RSS)
By ITI - December 12, 2012 - edited: December 12, 2012
When creating a new Editor of menu type "multi", by default you have Title and Content fields.
If you rename the table field `title` to something else an error will occur when you try to open the menu item or save a record if you get that far.
eg: getRecords(table_name): Unknown field 'title' in filenameFields or titleField options!
To correct it, I simply opened the corresponding schema *.ini.php file and commented out the "filenameFields" line.
eg: //'_filenameFields' => 'title',
Is this a bug, or is there some special reason why the table field "title" should exist?
I other words, are there consequences to renaming the "title" field?
Update: I noticed after a few saves, the ini field var gets added back in as: '_filenameFields' => '', // ie an emtpy value.
If you rename the table field `title` to something else an error will occur when you try to open the menu item or save a record if you get that far.
eg: getRecords(table_name): Unknown field 'title' in filenameFields or titleField options!
To correct it, I simply opened the corresponding schema *.ini.php file and commented out the "filenameFields" line.
eg: //'_filenameFields' => 'title',
Is this a bug, or is there some special reason why the table field "title" should exist?
I other words, are there consequences to renaming the "title" field?
Update: I noticed after a few saves, the ini field var gets added back in as: '_filenameFields' => '', // ie an emtpy value.
Glen
http://www.CanadianDomainRegistry.ca
ITI Internetworking Technologies Inc.
http://www.CanadianDomainRegistry.ca
ITI Internetworking Technologies Inc.
By weblm - December 12, 2012 - edited: December 12, 2012
You have to change the ListPage Fields for the section (under General in the section editor) and the Order By field under Sorting.
FYI.....you can't hit Save Details between each one....you have to remove title from both before hitting Save.
EDIT: Also check the Fieldname Fields under Viewer Urls
-Kevin
FYI.....you can't hit Save Details between each one....you have to remove title from both before hitting Save.
EDIT: Also check the Fieldname Fields under Viewer Urls
-Kevin
LM
By ITI - December 12, 2012
Thank you Kevin
I see now that I wasn't completely removing the reference correctly. Much appreciated.
I see now that I wasn't completely removing the reference correctly. Much appreciated.
Glen
http://www.CanadianDomainRegistry.ca
ITI Internetworking Technologies Inc.
http://www.CanadianDomainRegistry.ca
ITI Internetworking Technologies Inc.
By weblm - December 12, 2012
No problem....that has bitten me many times in the past.....always takes me a while to figure it out!
-Kevin
-Kevin
LM