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

Create a Switch between "Site Configs"

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.1
    • Component/s: Admin Interfaces
    • Labels:
      None

      Description

      Currently we have folder "custom/units/site_configs" with site configs, that allows to modify almost all unit configs of In-Portal (not yet module unit configs).

      Current site config set is designed to maximally simplify administrative console interface. Idea is to create two (or more) alternative site config sets and be able to switch between them in real time.

      [B]That's how we will implement this:[/B]

      1. Create directory "system_presets" in "admin/" folder.

      2. Create "simple", "intermediate" and "advanced" sub-folders inside.

      3. Move all existing Site Configs to the "simple" folder.

      4a. Create configuration variable Interface-Preset (drop-down) and place it under "Configuration -> Website -> General: Admin Console Settings" section.

      Variable Translation => "Admin Console Interface"

      4b. Add new Variable la_config_AllowAdminChangeAdminInterfaces => "Allow Admin to change Admin Console Interfaces".

      Place it under "Configuration -> Website -> Advanced: Admin Console Settings" before "Use Toolbar Labels" setting.

      During Installation this is CHECKED (On) by default.

      The logic is that if "Allow Admin to change Admin Console Interfaces" is enabled Admin can SEE drop-down with Interfaces selection on Website-General section if it's off it can NOT see it.

      5. During installation fill possible interface preset names based on folder names available under "admin/system_presets" folder.

      6. When given configuration variable's value is changed, then reset unit configs cache and section cache, because they will be affected by site configs being used.

      Also, we NEED refresh the whole Administrative console window so changes take place immediately.

      7. We need to change "SiteConfigEventHandler::OnApplySiteConfigChanges" event, to be able to use only site configs that are located within currently selected interface preset.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: