Group AEM (6.2) component configurationsCQ5 - Cancel individual property inheritance of a Live Copy componentOverride Multivalue component in Adobe CQAllow blank value in AEM Touch UI multifield (select field)Multifield widget doesn't show the value stored in JCRAEM 6.2 - Working with Web Components (Polymer) & AngularOOB component Customization in AEM 6.2AEM 6.2 - Custom workflow step not workingAEM property displays correctly in <p> but not in href attributeWhy image is not reflecting on page properties of touch UI dialog in AEM 6.2 after reloading?Interdependent datepickers (Start, End) in Granite ui foundation serverside (AEM)

Expand and Contract

What does “the session was packed” mean in this context?

How seriously should I take size and weight limits of hand luggage?

CAST throwing error when run in stored procedure but not when run as raw query

Bullying boss launched a smear campaign and made me unemployable

How badly should I try to prevent a user from XSSing themselves?

Why didn't Boeing produce its own regional jet?

What is the most common color to indicate the input-field is disabled?

How can I determine if the org that I'm currently connected to is a scratch org?

Do UK voters know if their MP will be the Speaker of the House?

Can I run a new neutral wire to repair a broken circuit?

How do I handle a potential work/personal life conflict as the manager of one of my friends?

Dreadful Dastardly Diseases, or Always Atrocious Ailments

Is there an expression that means doing something right before you will need it rather than doing it in case you might need it?

Intersection Puzzle

What about the virus in 12 Monkeys?

Why doesn't using multiple commands with a || or && conditional work?

Avoiding the "not like other girls" trope?

What are some good books on Machine Learning and AI like Krugman, Wells and Graddy's "Essentials of Economics"

Cursor Replacement for Newbies

How much of data wrangling is a data scientist's job?

What exploit are these user agents trying to use?

How dangerous is XSS?

Is it inappropriate for a student to attend their mentor's dissertation defense?



Group AEM (6.2) component configurations


CQ5 - Cancel individual property inheritance of a Live Copy componentOverride Multivalue component in Adobe CQAllow blank value in AEM Touch UI multifield (select field)Multifield widget doesn't show the value stored in JCRAEM 6.2 - Working with Web Components (Polymer) & AngularOOB component Customization in AEM 6.2AEM 6.2 - Custom workflow step not workingAEM property displays correctly in <p> but not in href attributeWhy image is not reflecting on page properties of touch UI dialog in AEM 6.2 after reloading?Interdependent datepickers (Start, End) in Granite ui foundation serverside (AEM)













0















I'm currently building a component that has TouchUI configuration properties separated with three tabs (Standard, CASL, GDPR). Each tab has the same set of options available and my current config names are similar to the following:



./standardMarketingText
./standardThirdpartyText
./gdprMarketingText
./gdprThirdpartyText
./caslMarketingText
./caslThirdpartyText


(There are several other options for standard,gdpr,casl but I left them out for brevity)



While this works, I'm hoping to instead store the values in the JCR as a JSON node per category. For example:



casl = "marketingText"="m test", "thirdpartyText"="tp test"
gdpr = "marketingText"="gdpr m test", "thirdpartyText"="gdpr tp test"


This way I can load all "casl" (or others) options at once when I need them (there isn't a case where I would only load one "casl" option)



I have attempted using granite/ui/components/foundation/form/multifield however, it asks to "Add field". I only want one set of each, and not provide the ability to add another set of properties under each tab. Is there a way to accomplish this without overriding the multifield resourceType?










share|improve this question






















  • As far as I know, only multifield allows to store in JSON format, but if you do not want to allow user to enter more than one element then you can restrict by implementing listener. Ps follow this : helpx.adobe.com/experience-manager/using/…

    – Sumanta Pakira
    Mar 8 at 8:48















0















I'm currently building a component that has TouchUI configuration properties separated with three tabs (Standard, CASL, GDPR). Each tab has the same set of options available and my current config names are similar to the following:



./standardMarketingText
./standardThirdpartyText
./gdprMarketingText
./gdprThirdpartyText
./caslMarketingText
./caslThirdpartyText


(There are several other options for standard,gdpr,casl but I left them out for brevity)



While this works, I'm hoping to instead store the values in the JCR as a JSON node per category. For example:



casl = "marketingText"="m test", "thirdpartyText"="tp test"
gdpr = "marketingText"="gdpr m test", "thirdpartyText"="gdpr tp test"


This way I can load all "casl" (or others) options at once when I need them (there isn't a case where I would only load one "casl" option)



I have attempted using granite/ui/components/foundation/form/multifield however, it asks to "Add field". I only want one set of each, and not provide the ability to add another set of properties under each tab. Is there a way to accomplish this without overriding the multifield resourceType?










share|improve this question






















  • As far as I know, only multifield allows to store in JSON format, but if you do not want to allow user to enter more than one element then you can restrict by implementing listener. Ps follow this : helpx.adobe.com/experience-manager/using/…

    – Sumanta Pakira
    Mar 8 at 8:48













0












0








0








I'm currently building a component that has TouchUI configuration properties separated with three tabs (Standard, CASL, GDPR). Each tab has the same set of options available and my current config names are similar to the following:



./standardMarketingText
./standardThirdpartyText
./gdprMarketingText
./gdprThirdpartyText
./caslMarketingText
./caslThirdpartyText


(There are several other options for standard,gdpr,casl but I left them out for brevity)



While this works, I'm hoping to instead store the values in the JCR as a JSON node per category. For example:



casl = "marketingText"="m test", "thirdpartyText"="tp test"
gdpr = "marketingText"="gdpr m test", "thirdpartyText"="gdpr tp test"


This way I can load all "casl" (or others) options at once when I need them (there isn't a case where I would only load one "casl" option)



I have attempted using granite/ui/components/foundation/form/multifield however, it asks to "Add field". I only want one set of each, and not provide the ability to add another set of properties under each tab. Is there a way to accomplish this without overriding the multifield resourceType?










share|improve this question














I'm currently building a component that has TouchUI configuration properties separated with three tabs (Standard, CASL, GDPR). Each tab has the same set of options available and my current config names are similar to the following:



./standardMarketingText
./standardThirdpartyText
./gdprMarketingText
./gdprThirdpartyText
./caslMarketingText
./caslThirdpartyText


(There are several other options for standard,gdpr,casl but I left them out for brevity)



While this works, I'm hoping to instead store the values in the JCR as a JSON node per category. For example:



casl = "marketingText"="m test", "thirdpartyText"="tp test"
gdpr = "marketingText"="gdpr m test", "thirdpartyText"="gdpr tp test"


This way I can load all "casl" (or others) options at once when I need them (there isn't a case where I would only load one "casl" option)



I have attempted using granite/ui/components/foundation/form/multifield however, it asks to "Add field". I only want one set of each, and not provide the ability to add another set of properties under each tab. Is there a way to accomplish this without overriding the multifield resourceType?







aem aem-touch-ui






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 7 at 22:44









matr07matr07

815




815












  • As far as I know, only multifield allows to store in JSON format, but if you do not want to allow user to enter more than one element then you can restrict by implementing listener. Ps follow this : helpx.adobe.com/experience-manager/using/…

    – Sumanta Pakira
    Mar 8 at 8:48

















  • As far as I know, only multifield allows to store in JSON format, but if you do not want to allow user to enter more than one element then you can restrict by implementing listener. Ps follow this : helpx.adobe.com/experience-manager/using/…

    – Sumanta Pakira
    Mar 8 at 8:48
















As far as I know, only multifield allows to store in JSON format, but if you do not want to allow user to enter more than one element then you can restrict by implementing listener. Ps follow this : helpx.adobe.com/experience-manager/using/…

– Sumanta Pakira
Mar 8 at 8:48





As far as I know, only multifield allows to store in JSON format, but if you do not want to allow user to enter more than one element then you can restrict by implementing listener. Ps follow this : helpx.adobe.com/experience-manager/using/…

– Sumanta Pakira
Mar 8 at 8:48












1 Answer
1






active

oldest

votes


















0














There are multiple ways to achieve what you are looking at, I would look at the reusability as there are similar named properties for different categories (in your case tabs). To group them you could do that at node level by correctly defining the name property for each tab.



For above provided values, you could do something like -



./standard/marketingText
./standard/thirdpartyText
./gdpr/marketingText
./gdpr/thirdpartyText
./casl/marketingText
./casl/thirdpartyText


Your each tab stores the properties in named node (standard, gdpr, casl). In addition you could have a single SlingModel/WCMUsePojo that can adapt to these nodes to provide the Pojo with accessor to property values.



As far as getting JSON is concerned, your SlingModel or WCMUsePojo can provide a method to return JSON based string for the values.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55054006%2fgroup-aem-6-2-component-configurations%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    There are multiple ways to achieve what you are looking at, I would look at the reusability as there are similar named properties for different categories (in your case tabs). To group them you could do that at node level by correctly defining the name property for each tab.



    For above provided values, you could do something like -



    ./standard/marketingText
    ./standard/thirdpartyText
    ./gdpr/marketingText
    ./gdpr/thirdpartyText
    ./casl/marketingText
    ./casl/thirdpartyText


    Your each tab stores the properties in named node (standard, gdpr, casl). In addition you could have a single SlingModel/WCMUsePojo that can adapt to these nodes to provide the Pojo with accessor to property values.



    As far as getting JSON is concerned, your SlingModel or WCMUsePojo can provide a method to return JSON based string for the values.






    share|improve this answer



























      0














      There are multiple ways to achieve what you are looking at, I would look at the reusability as there are similar named properties for different categories (in your case tabs). To group them you could do that at node level by correctly defining the name property for each tab.



      For above provided values, you could do something like -



      ./standard/marketingText
      ./standard/thirdpartyText
      ./gdpr/marketingText
      ./gdpr/thirdpartyText
      ./casl/marketingText
      ./casl/thirdpartyText


      Your each tab stores the properties in named node (standard, gdpr, casl). In addition you could have a single SlingModel/WCMUsePojo that can adapt to these nodes to provide the Pojo with accessor to property values.



      As far as getting JSON is concerned, your SlingModel or WCMUsePojo can provide a method to return JSON based string for the values.






      share|improve this answer

























        0












        0








        0







        There are multiple ways to achieve what you are looking at, I would look at the reusability as there are similar named properties for different categories (in your case tabs). To group them you could do that at node level by correctly defining the name property for each tab.



        For above provided values, you could do something like -



        ./standard/marketingText
        ./standard/thirdpartyText
        ./gdpr/marketingText
        ./gdpr/thirdpartyText
        ./casl/marketingText
        ./casl/thirdpartyText


        Your each tab stores the properties in named node (standard, gdpr, casl). In addition you could have a single SlingModel/WCMUsePojo that can adapt to these nodes to provide the Pojo with accessor to property values.



        As far as getting JSON is concerned, your SlingModel or WCMUsePojo can provide a method to return JSON based string for the values.






        share|improve this answer













        There are multiple ways to achieve what you are looking at, I would look at the reusability as there are similar named properties for different categories (in your case tabs). To group them you could do that at node level by correctly defining the name property for each tab.



        For above provided values, you could do something like -



        ./standard/marketingText
        ./standard/thirdpartyText
        ./gdpr/marketingText
        ./gdpr/thirdpartyText
        ./casl/marketingText
        ./casl/thirdpartyText


        Your each tab stores the properties in named node (standard, gdpr, casl). In addition you could have a single SlingModel/WCMUsePojo that can adapt to these nodes to provide the Pojo with accessor to property values.



        As far as getting JSON is concerned, your SlingModel or WCMUsePojo can provide a method to return JSON based string for the values.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 10 at 16:41









        Ameesh TrikhaAmeesh Trikha

        1,4132717




        1,4132717





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55054006%2fgroup-aem-6-2-component-configurations%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            1928 у кіно

            Захаров Федір Захарович

            Ель Греко