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

Add "edit_field" parameter to "AdminEditButton" tag

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.0-B1
    • Component/s: CMS
    • Labels:
      None
    • Change Log Group:
      Added
    • Change Log Message:
      Allow opening item editing page scrolled right to desired field (only for CMS pages).
    • Story Points:
      2
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Related commits: rPLS18676

      Plan

      1. enhance "OnEdit" event (in kDBEventHandler class) to pass through "edit_field" parameter, when present
      2. in the end of "/incs/footer.tpl" template add JS code, that will:
        • check if "edit_field" parameter is present in request (if not, then do nothing)
        • scroll form to the position of given field (if found on page) via "m:OnAfterFormInit" event hook, when either "popup window" or "modal window" window mode is enabled
        • scroll form to the position of given field (if found on page) right now, when "same window" window mode is enabled
      3. test that scrolling works in either of window modes

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 19m
                  19m