Jeremy Evans
2005-Jul-19 17:41 UTC
RE: hide ''id'' field in ''edit'' viewagain(afterHowToExtendScaffolding)?
> * I assume that the create scaffold page knows itself about id > and as a result doesn''t show it (regardless whether id is present > in @scaffold_fields)?There isn''t a create page, create saves the object and redirects. If you are talking about the new page, it''ll display whatever fields are in @scaffold_fields. If you don''t modify @scaffold_fields, it will use all columns, which is different from the default behavior, which uses only the columns in content_columns.> * I have to change location_id and location in @scaffold_fields, > I imagine that this knowledge can also be build in the > HowToExtendScaffolding code)?You could extend it further to do so. I chose not to, as I use @scaffold_fields to specify the display order of the fields, as well as hide other fields I don''t want displayed. ***************************************************************** * Confidentiality Notice: This e-mail message, including any * * attachments, is for the sole use of the intended recipient(s) * * and may contain confidential and privileged information, * * including information pertaining to an ongoing audit or * * investigation (see Cal. Gov. C. Secs. 8545, 8545.1 and * * 8547). Any unauthorized review, use, disclosure, or * * distribution is prohibited. If you are not the intended * * recipient, please contact the sender by reply e-mail and * * destroy all copies of the original message. * *****************************************************************