Where is the cost difference between adding a field and modifying a field in the content model?
Where is the cost difference between adding a field to the content model and modifying a field? The difference is not at the entry step, but whether historical data has already been landed according to the old structure. Adding a field only takes effect forward, and old content still exists in the original structure, affecting subsequent entry methods and template value extraction;Changing this field will also affect the old values in the published content, the way the template reads the field, and the links within the site pointing to the old structure. AnQiCMS supports custom content models, and the content structure can be flexibly built according to business needs. Because of its flexibility, the scope of influence of structural changes should be calculated before taking action.This time spent in the field design phase thinking, is usually less than that of page-by-page rescue after the event.
Why is adding a field cheaper and modifying a field more expensive?
When adding a field, both old and new content can exist: fill in this custom field with the new input, leave this field blank with the existing content, the template can determine whether there is a value to be compatible, the list page and detail page will not report an error due to this.Changing this field will not do. If the field name is changed, all references to the old name in the template must be synchronized; if the meaning or form of the field changes, the historical data written according to the old agreement in the published content becomes dirty data, which, when displayed, may cause light format confusion or even the entire section to be empty.It is more important to point out the relationship: if the old field has ever participated in generating list filtering or sorting conditions, after the change, the aperture of these positions also changes, and there are more places to check than when adding.
What four items need to be confirmed before going online?
Whether this field will participate in list filtering and sorting. Changes have little impact on the details page display; once it enters the filtering and sorting logic, all affected list positions should be listed.Secondly, do you want to enter values such as titles, keywords, descriptions, or abstracts that are aimed at search. Changes to the fields involved in page marking will affect the display text of the search results.Third, do we need to supplement historical data? Here is a clear boundary: the system will not automatically migrate field data, nor will it automatically change the field type. How to supplement the content that has been published, what to supplement, and who is responsible for supplementing, should be clearly stated in the plan.The fourth, whether to change the template value. If not changed, it should accept the compatibility of new fields leaving the old content empty, and if changed, it should evaluate the range of changes.
How to batch the changes when it is necessary to modify?
First, do a small-scale verification, and then move on to the formal content. The document status of AnQiCMS is divided into formal documents, drafts, pending publication, and recycling bin. Drafts can be previewed and are exactly used to run new field names and new value methods first in the draft, to confirm that the template rendering and list display meet expectations, and then gradually apply them to formal content.Batch adjustment at the link level can be done in batches. The site-wide replacement tool can batch replace keywords or links, separating the pointing relationships of the same batch to be changed and handling them, to avoid making too large a change at one time.But this boundary should also be clarified: the site-wide replacement process is for keywords and links, not field names, and the values defined in the fields and templates will not change automatically because of it.
Checklist to run after the modification is complete?
Check four times in sequence. On the list page: Are the filtering conditions and sorting results still output according to the new field aperture? On the detail page: Is the value of the new field rendered normally, and does the absence of the old content meet expectations? On the internal old links: Go through each link that has been batch replaced one by one to confirm that no empty positions have fallen. In the recycle bin: Deleting formal documents is to move them into the recycle bin instead of physically deleting them. After renaming or changing the structure, it is possible that the recycle bin still contains old drafts with the same name. When restored, the data of the old structure will be brought back, so it is necessary to confirm whether these old drafts should be kept as files or cleaned up.
Common questions
Is it completely unnecessary to pay attention to the old content when adding a field?The display level can be compatible with empty, but once the field is involved in filtering, sorting, or page marking values, the blank of the old content will also change the output at these positions, still need to check.
Can the field name be replaced by the whole site in bulk?No. The whole site replacement is aimed at keywords and links, field names and field references in templates are not within its processing scope, how to correspond this level should be written clearly in the plan.
What is the most reliable way to verify before the change?Use a draft. The draft can be previewed, and you can fully verify the new field and new value method without affecting the formal content.
How to deal with the historical content corresponding to the old field?The system will not automatically migrate, it requires manual judgment on whether to fill in, whether to retain the original, or to reorganize the affected manuscripts, and record the scope of processing in the plan.