Page MenuHomeIn-Portal Phabricator

INP-1666 - Move "EDITING_MODE" constant definition to "adm:OnStartup" event hook
ClosedPublic

Authored by alex on Jan 23 2017, 9:00 AM.

Details

Test Plan

Part 1

  • in IDE:
    1. open /themes/advanced/index.tpl file for editing
    2. add [<?php var_dump(EDITING_MODE); ?>] code on next line after <inp2:m_DefineElement name="content"> code
    3. save changes
  • on Front-End:
    1. open homepage
    2. confirm, that text between [ and ] means empty string
    3. confirm, that no orange buttons (e.g. Edit Content) specific to editing modes are displayed
  • in Admin Console:
    1. go to Website & ContentBrowse Website section
    2. click on Browse Mode button in top frame
    3. confirm, that text between [ and ] means string with 1 value
    4. confirm, that no orange buttons (e.g. Edit Content) specific to editing modes are displayed
    5. click on Content Mode button in top frame
    6. confirm, that text between [ and ] means string with 2 value
    7. confirm, that orange Edit Content buttons are displayed and working
    8. click on Design Mode button in top frame
    9. confirm, that text between [ and ] means string with 3 value
    10. confirm, that hovering over elements on the page orange Edit Block buttons will appear

Part 2

  • in Admin Console:
    1. go to ConfigurationAdvanced section
    2. specify SSL url in SSL Full URL (https://www.domain.com/path) setting
    3. go to Website & ContentStructure & Data section
    4. click on Sections tab
    5. open Home category for editing
    6. check Require SSL checkbox and save changes
  • on Front-End:
    1. open homepage in http:// protocol
    2. confirm, that redirect to https:// protocol will happen
  • in Admin Console:
    1. go to Website & ContentBrowse Website section
    2. click on Browse Mode button in top frame
    3. confirm, that Front-End in main frame was opened using http:// protocol

Diff Detail

Repository
rINP In-Portal
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex updated this revision to Diff 697.Jan 23 2017, 9:00 AM
alex retitled this revision from to INP-1666 - Move "EDITING_MODE" constant definition to "adm:OnStartup" event hook.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1666.
erik accepted this revision.Jan 30 2017, 5:10 AM
erik edited edge metadata.
This revision is now accepted and ready to land.Jan 30 2017, 5:10 AM
This revision was automatically updated to reflect the committed changes.
alex added a project: Restricted Project.Jul 29 2017, 3:25 AM