Preventing the Deletion of specific Sections in the Catalog

Components

Labels

Description

[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_menuhidden_system.png';
}
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

Context Information

None

Additional information

None

Attachments

1
  • 14 Sep 2010, 05:47 PM

Confluence content

mentioned on

Phabricator

Activity

Show:

Dmitry Andrejev November 30, 2010 at 6:48 PM

Closing released 5.1.1 task.

Alex September 15, 2010 at 7:24 AM

Fix committed to [b]5.1.x branch/b. Commit Message:

Fixes #0000683: Preventing the Deletion of specific Sections in the Catalog

Dmitry Andrejev September 14, 2010 at 10:56 PM

Tested and working good, please commit!

Fixed

Details

Priority

Assignee

Alex

Reporter

Developer

Patch Instructions

Patches must be submitted through Phabricator.

External issue ID

Fix versions

Affects versions

Created April 9, 2010 at 4:19 AM
Updated December 29, 2024 at 9:16 PM
Resolved November 30, 2010 at 6:48 PM

Flag notifications