Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-539

Preventing the Deletion of specific Sections in the Catalog

    XMLWordPrintable

    Details

    • 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

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: