Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8226

Adding custom sightly bindings

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: App CMS 0.11.2
    • Fix Version/s: App CMS 0.12.0
    • Component/s: App CMS
    • Labels:
      None

      Description

      Hi,

      Currently when a page is opened in editor mode a variable called "cmsEditEnabled" gets added to the request to indicate rendition of the page in editor mode. This variable can be easly used on JSP scripts but it is not easy to use it on sightly scripts.

       

      What I propose is adding custom sightly bindings related to apache sling cms for such cases so in sightly scripts we can use then easily. For example  to find out if the page is opened in editor mode we can use ${isEditor}. These custom bindings can be added by individual bundles but adding these feature out of the box makes more sense to me.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                klcodanr Dan Klco
                Reporter:
                mahsumdemir Mahsum Demir
              • 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 - 10m
                  10m