[
https://issues.apache.org/jira/browse/SLING-8226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mahsum Demir updated SLING-8226:
--------------------------------
Affects Version/s: App CMS 0.11.2
> Adding custom sightly bindings
> ------------------------------
>
> Key: SLING-8226
> URL: https://issues.apache.org/jira/browse/SLING-8226
> Project: Sling
> Issue Type: New Feature
> Components: App CMS
> Affects Versions: App CMS 0.11.2
> Reporter: Mahsum Demir
> Priority: Minor
> Fix For: Version App CMS 0.11.4
>
>
> Hi,
> Currenyly when a page is opened in editor mode a variable called
> "cmsEditEnabled" get added to the request to indicate rendetion 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 for such case so in sightly
> scripts we can use ${isEditor} to find out if the page is opened in editor
> mode. These custom bindings can be added by individual bundles but adding
> these feature out of the box makes more sense to me.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)