-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.0.3-B2
-
Fix Version/s: 5.1.1-B1
-
Component/s: Data Management
-
Labels:None
-
External issue URL:
-
External issue ID:683
-
Copy Issue Key:
-
Patch Instructions:
[B]Goals:[/B]
[B]1. Optimize current Category prefix/table by:[/B]
a. Get rid of CreatedBySystem field:
CreatedBySystem is used ONLY in 1 place:
Categories_tp.php, ItemIcon method:
if ($object->GetDBField('CreatedBySystem')) {
if (!$object->GetDBField('IsMenu'))
return 'icon16_section_system.png';
}
Seem like we can successfully use ThemeId = 0 check instead.
[B]2. Allow developer to prevent deletion of specific pages in structure[/B]
a. Rename IsSystem to "PageType" with 2 options:
- Virtual (User added)
- Template (generated from Theme Template, including container sections)
b. Create new field "Protected" with 2 options:
- Yes
- No
c. ALL Sections where PageType=Template automatically marked as "Protected = Yes"
d. ANY Protected section can NOT be (unless in DEBUG):
- Changed Status (approved/decline) field
- Changed Protected (yes/no) field
- Deleted
- Edited Filename or Actual name?
- Edited Design Template