TYPO3 Powermail - Methods to add a link in a checkbox label or title












2















Since powermail 6.0. it's possible to add a link in a checkbox label (for GDPR) as per the docu:



https://docs.typo3.org/typo3cms/extensions/powermail/ForAdministrators/Privacy/Index.html#add-a-link-in-a-checkbox-label.



It says:



Just use an option in your FlexForm like (with an example link to page 123 where the privacy terms are located):



I accept the <f:link.page pageUid="123">privacy terms</f:link.page> | privacy terms accepted


After that you have to enable html in labels (this feature is turned off for security reasons). Example TypoScript constants:



plugin.tx_powermail.settings.misc.htmlForLabels = 1


... yet it also says that '(this feature is turned off for security reasons)'.



What other options are there to accomplish this? (with no security loss?)










share|improve this question





























    2















    Since powermail 6.0. it's possible to add a link in a checkbox label (for GDPR) as per the docu:



    https://docs.typo3.org/typo3cms/extensions/powermail/ForAdministrators/Privacy/Index.html#add-a-link-in-a-checkbox-label.



    It says:



    Just use an option in your FlexForm like (with an example link to page 123 where the privacy terms are located):



    I accept the <f:link.page pageUid="123">privacy terms</f:link.page> | privacy terms accepted


    After that you have to enable html in labels (this feature is turned off for security reasons). Example TypoScript constants:



    plugin.tx_powermail.settings.misc.htmlForLabels = 1


    ... yet it also says that '(this feature is turned off for security reasons)'.



    What other options are there to accomplish this? (with no security loss?)










    share|improve this question



























      2












      2








      2








      Since powermail 6.0. it's possible to add a link in a checkbox label (for GDPR) as per the docu:



      https://docs.typo3.org/typo3cms/extensions/powermail/ForAdministrators/Privacy/Index.html#add-a-link-in-a-checkbox-label.



      It says:



      Just use an option in your FlexForm like (with an example link to page 123 where the privacy terms are located):



      I accept the <f:link.page pageUid="123">privacy terms</f:link.page> | privacy terms accepted


      After that you have to enable html in labels (this feature is turned off for security reasons). Example TypoScript constants:



      plugin.tx_powermail.settings.misc.htmlForLabels = 1


      ... yet it also says that '(this feature is turned off for security reasons)'.



      What other options are there to accomplish this? (with no security loss?)










      share|improve this question
















      Since powermail 6.0. it's possible to add a link in a checkbox label (for GDPR) as per the docu:



      https://docs.typo3.org/typo3cms/extensions/powermail/ForAdministrators/Privacy/Index.html#add-a-link-in-a-checkbox-label.



      It says:



      Just use an option in your FlexForm like (with an example link to page 123 where the privacy terms are located):



      I accept the <f:link.page pageUid="123">privacy terms</f:link.page> | privacy terms accepted


      After that you have to enable html in labels (this feature is turned off for security reasons). Example TypoScript constants:



      plugin.tx_powermail.settings.misc.htmlForLabels = 1


      ... yet it also says that '(this feature is turned off for security reasons)'.



      What other options are there to accomplish this? (with no security loss?)







      typo3 typo3-8.x typo3-extensions powermail






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 18 '18 at 13:21









      vigri

      106214




      106214










      asked May 15 '18 at 15:55









      Philipp MPhilipp M

      825828




      825828
























          4 Answers
          4






          active

          oldest

          votes


















          3














          We add a normal content element with the link above the checkbox. For example to accept the terms and conditions. Then the content element is included in the form. See https://docs.typo3.org/typo3cms/extensions/powermail/ForEditors/AddANewForm/FieldContentElement/Index.html






          share|improve this answer
























          • ... where do I create, store and save this content element? In powermail I created a new field -> then chose Type 'Content Element' ... but what do I select?

            – Philipp M
            May 15 '18 at 18:24











          • From docu: General: If you want to show a content element within your form (text, text with image, etc...), use this field. An element browser allows you to select a tt_content record. This text is not submitted. You can create content element with list modul somewhere you want or create a page and place the content element there to select later in powermail.

            – Heinz Schilling
            May 15 '18 at 19:00



















          1














          1) The solution with the content element is a good thing - that should also be described



          2) It's wrong that powermail version 6.0 is needed to disable the IP-storing. This feature is available for years now but 6.0 turns it off by default



          3) If you trust your editors or if you already allow your editors to add content elements of type HTML it's really also no problem to allow HTML in powermail field labels for your editors



          Maybe I should update the privacy documenation to clearify this points






          share|improve this answer
























          • Thanks for the additional hints Alex!

            – Philipp M
            May 16 '18 at 8:19











          • I dont get it. Setting plugin.tx_powermail.settings.misc.htmlForLabels does absolutely nothing in my installation.

            – j4k3
            Oct 29 '18 at 10:06



















          1














          You can enable it in:



          Template - > Constant Editor - > Powermail_Aditional - > Allow html in html fields/ Allow html in field labels



          Then you can use HTML-Code. Or better:



          <f:link.page pageUid="123">Privacy Policy</f:link.page>





          share|improve this answer

































            0














            You can set link in checkbox lable or title like,



            I accept the <a href="index.php?id=123">privacy terms</a>


            in powermail/Resources/Private/Partials/Form/Field/Check.html



            Change code



               <vh:string.RawAndRemoveXss>{setting.label}</vh:string.RawAndRemoveXss>


            to



               <f:format.raw>{setting.label}</f:format.raw>





            share|improve this answer



















            • 1





              Just doing this will cause an XSS Auditor Error in Chrome since the label is used as checkbox value, too. But you can provide an additional value for the checkbox by using a pipe in the label: I accept the <a href="index.php?id=123">privacy terms</a> | Privacy accepted

              – Paul Beck
              Jun 21 '18 at 8:09













            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%2f50354523%2ftypo3-powermail-methods-to-add-a-link-in-a-checkbox-label-or-title%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            We add a normal content element with the link above the checkbox. For example to accept the terms and conditions. Then the content element is included in the form. See https://docs.typo3.org/typo3cms/extensions/powermail/ForEditors/AddANewForm/FieldContentElement/Index.html






            share|improve this answer
























            • ... where do I create, store and save this content element? In powermail I created a new field -> then chose Type 'Content Element' ... but what do I select?

              – Philipp M
              May 15 '18 at 18:24











            • From docu: General: If you want to show a content element within your form (text, text with image, etc...), use this field. An element browser allows you to select a tt_content record. This text is not submitted. You can create content element with list modul somewhere you want or create a page and place the content element there to select later in powermail.

              – Heinz Schilling
              May 15 '18 at 19:00
















            3














            We add a normal content element with the link above the checkbox. For example to accept the terms and conditions. Then the content element is included in the form. See https://docs.typo3.org/typo3cms/extensions/powermail/ForEditors/AddANewForm/FieldContentElement/Index.html






            share|improve this answer
























            • ... where do I create, store and save this content element? In powermail I created a new field -> then chose Type 'Content Element' ... but what do I select?

              – Philipp M
              May 15 '18 at 18:24











            • From docu: General: If you want to show a content element within your form (text, text with image, etc...), use this field. An element browser allows you to select a tt_content record. This text is not submitted. You can create content element with list modul somewhere you want or create a page and place the content element there to select later in powermail.

              – Heinz Schilling
              May 15 '18 at 19:00














            3












            3








            3







            We add a normal content element with the link above the checkbox. For example to accept the terms and conditions. Then the content element is included in the form. See https://docs.typo3.org/typo3cms/extensions/powermail/ForEditors/AddANewForm/FieldContentElement/Index.html






            share|improve this answer













            We add a normal content element with the link above the checkbox. For example to accept the terms and conditions. Then the content element is included in the form. See https://docs.typo3.org/typo3cms/extensions/powermail/ForEditors/AddANewForm/FieldContentElement/Index.html







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 15 '18 at 18:10









            Heinz SchillingHeinz Schilling

            1,2042919




            1,2042919













            • ... where do I create, store and save this content element? In powermail I created a new field -> then chose Type 'Content Element' ... but what do I select?

              – Philipp M
              May 15 '18 at 18:24











            • From docu: General: If you want to show a content element within your form (text, text with image, etc...), use this field. An element browser allows you to select a tt_content record. This text is not submitted. You can create content element with list modul somewhere you want or create a page and place the content element there to select later in powermail.

              – Heinz Schilling
              May 15 '18 at 19:00



















            • ... where do I create, store and save this content element? In powermail I created a new field -> then chose Type 'Content Element' ... but what do I select?

              – Philipp M
              May 15 '18 at 18:24











            • From docu: General: If you want to show a content element within your form (text, text with image, etc...), use this field. An element browser allows you to select a tt_content record. This text is not submitted. You can create content element with list modul somewhere you want or create a page and place the content element there to select later in powermail.

              – Heinz Schilling
              May 15 '18 at 19:00

















            ... where do I create, store and save this content element? In powermail I created a new field -> then chose Type 'Content Element' ... but what do I select?

            – Philipp M
            May 15 '18 at 18:24





            ... where do I create, store and save this content element? In powermail I created a new field -> then chose Type 'Content Element' ... but what do I select?

            – Philipp M
            May 15 '18 at 18:24













            From docu: General: If you want to show a content element within your form (text, text with image, etc...), use this field. An element browser allows you to select a tt_content record. This text is not submitted. You can create content element with list modul somewhere you want or create a page and place the content element there to select later in powermail.

            – Heinz Schilling
            May 15 '18 at 19:00





            From docu: General: If you want to show a content element within your form (text, text with image, etc...), use this field. An element browser allows you to select a tt_content record. This text is not submitted. You can create content element with list modul somewhere you want or create a page and place the content element there to select later in powermail.

            – Heinz Schilling
            May 15 '18 at 19:00













            1














            1) The solution with the content element is a good thing - that should also be described



            2) It's wrong that powermail version 6.0 is needed to disable the IP-storing. This feature is available for years now but 6.0 turns it off by default



            3) If you trust your editors or if you already allow your editors to add content elements of type HTML it's really also no problem to allow HTML in powermail field labels for your editors



            Maybe I should update the privacy documenation to clearify this points






            share|improve this answer
























            • Thanks for the additional hints Alex!

              – Philipp M
              May 16 '18 at 8:19











            • I dont get it. Setting plugin.tx_powermail.settings.misc.htmlForLabels does absolutely nothing in my installation.

              – j4k3
              Oct 29 '18 at 10:06
















            1














            1) The solution with the content element is a good thing - that should also be described



            2) It's wrong that powermail version 6.0 is needed to disable the IP-storing. This feature is available for years now but 6.0 turns it off by default



            3) If you trust your editors or if you already allow your editors to add content elements of type HTML it's really also no problem to allow HTML in powermail field labels for your editors



            Maybe I should update the privacy documenation to clearify this points






            share|improve this answer
























            • Thanks for the additional hints Alex!

              – Philipp M
              May 16 '18 at 8:19











            • I dont get it. Setting plugin.tx_powermail.settings.misc.htmlForLabels does absolutely nothing in my installation.

              – j4k3
              Oct 29 '18 at 10:06














            1












            1








            1







            1) The solution with the content element is a good thing - that should also be described



            2) It's wrong that powermail version 6.0 is needed to disable the IP-storing. This feature is available for years now but 6.0 turns it off by default



            3) If you trust your editors or if you already allow your editors to add content elements of type HTML it's really also no problem to allow HTML in powermail field labels for your editors



            Maybe I should update the privacy documenation to clearify this points






            share|improve this answer













            1) The solution with the content element is a good thing - that should also be described



            2) It's wrong that powermail version 6.0 is needed to disable the IP-storing. This feature is available for years now but 6.0 turns it off by default



            3) If you trust your editors or if you already allow your editors to add content elements of type HTML it's really also no problem to allow HTML in powermail field labels for your editors



            Maybe I should update the privacy documenation to clearify this points







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 16 '18 at 7:35









            Alex KellnerAlex Kellner

            85227




            85227













            • Thanks for the additional hints Alex!

              – Philipp M
              May 16 '18 at 8:19











            • I dont get it. Setting plugin.tx_powermail.settings.misc.htmlForLabels does absolutely nothing in my installation.

              – j4k3
              Oct 29 '18 at 10:06



















            • Thanks for the additional hints Alex!

              – Philipp M
              May 16 '18 at 8:19











            • I dont get it. Setting plugin.tx_powermail.settings.misc.htmlForLabels does absolutely nothing in my installation.

              – j4k3
              Oct 29 '18 at 10:06

















            Thanks for the additional hints Alex!

            – Philipp M
            May 16 '18 at 8:19





            Thanks for the additional hints Alex!

            – Philipp M
            May 16 '18 at 8:19













            I dont get it. Setting plugin.tx_powermail.settings.misc.htmlForLabels does absolutely nothing in my installation.

            – j4k3
            Oct 29 '18 at 10:06





            I dont get it. Setting plugin.tx_powermail.settings.misc.htmlForLabels does absolutely nothing in my installation.

            – j4k3
            Oct 29 '18 at 10:06











            1














            You can enable it in:



            Template - > Constant Editor - > Powermail_Aditional - > Allow html in html fields/ Allow html in field labels



            Then you can use HTML-Code. Or better:



            <f:link.page pageUid="123">Privacy Policy</f:link.page>





            share|improve this answer






























              1














              You can enable it in:



              Template - > Constant Editor - > Powermail_Aditional - > Allow html in html fields/ Allow html in field labels



              Then you can use HTML-Code. Or better:



              <f:link.page pageUid="123">Privacy Policy</f:link.page>





              share|improve this answer




























                1












                1








                1







                You can enable it in:



                Template - > Constant Editor - > Powermail_Aditional - > Allow html in html fields/ Allow html in field labels



                Then you can use HTML-Code. Or better:



                <f:link.page pageUid="123">Privacy Policy</f:link.page>





                share|improve this answer















                You can enable it in:



                Template - > Constant Editor - > Powermail_Aditional - > Allow html in html fields/ Allow html in field labels



                Then you can use HTML-Code. Or better:



                <f:link.page pageUid="123">Privacy Policy</f:link.page>






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 21 '18 at 14:35

























                answered Nov 21 '18 at 14:07









                justcasperjustcasper

                608




                608























                    0














                    You can set link in checkbox lable or title like,



                    I accept the <a href="index.php?id=123">privacy terms</a>


                    in powermail/Resources/Private/Partials/Form/Field/Check.html



                    Change code



                       <vh:string.RawAndRemoveXss>{setting.label}</vh:string.RawAndRemoveXss>


                    to



                       <f:format.raw>{setting.label}</f:format.raw>





                    share|improve this answer



















                    • 1





                      Just doing this will cause an XSS Auditor Error in Chrome since the label is used as checkbox value, too. But you can provide an additional value for the checkbox by using a pipe in the label: I accept the <a href="index.php?id=123">privacy terms</a> | Privacy accepted

                      – Paul Beck
                      Jun 21 '18 at 8:09


















                    0














                    You can set link in checkbox lable or title like,



                    I accept the <a href="index.php?id=123">privacy terms</a>


                    in powermail/Resources/Private/Partials/Form/Field/Check.html



                    Change code



                       <vh:string.RawAndRemoveXss>{setting.label}</vh:string.RawAndRemoveXss>


                    to



                       <f:format.raw>{setting.label}</f:format.raw>





                    share|improve this answer



















                    • 1





                      Just doing this will cause an XSS Auditor Error in Chrome since the label is used as checkbox value, too. But you can provide an additional value for the checkbox by using a pipe in the label: I accept the <a href="index.php?id=123">privacy terms</a> | Privacy accepted

                      – Paul Beck
                      Jun 21 '18 at 8:09
















                    0












                    0








                    0







                    You can set link in checkbox lable or title like,



                    I accept the <a href="index.php?id=123">privacy terms</a>


                    in powermail/Resources/Private/Partials/Form/Field/Check.html



                    Change code



                       <vh:string.RawAndRemoveXss>{setting.label}</vh:string.RawAndRemoveXss>


                    to



                       <f:format.raw>{setting.label}</f:format.raw>





                    share|improve this answer













                    You can set link in checkbox lable or title like,



                    I accept the <a href="index.php?id=123">privacy terms</a>


                    in powermail/Resources/Private/Partials/Form/Field/Check.html



                    Change code



                       <vh:string.RawAndRemoveXss>{setting.label}</vh:string.RawAndRemoveXss>


                    to



                       <f:format.raw>{setting.label}</f:format.raw>






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jun 21 '18 at 7:51









                    Dipak ParmarDipak Parmar

                    695




                    695








                    • 1





                      Just doing this will cause an XSS Auditor Error in Chrome since the label is used as checkbox value, too. But you can provide an additional value for the checkbox by using a pipe in the label: I accept the <a href="index.php?id=123">privacy terms</a> | Privacy accepted

                      – Paul Beck
                      Jun 21 '18 at 8:09
















                    • 1





                      Just doing this will cause an XSS Auditor Error in Chrome since the label is used as checkbox value, too. But you can provide an additional value for the checkbox by using a pipe in the label: I accept the <a href="index.php?id=123">privacy terms</a> | Privacy accepted

                      – Paul Beck
                      Jun 21 '18 at 8:09










                    1




                    1





                    Just doing this will cause an XSS Auditor Error in Chrome since the label is used as checkbox value, too. But you can provide an additional value for the checkbox by using a pipe in the label: I accept the <a href="index.php?id=123">privacy terms</a> | Privacy accepted

                    – Paul Beck
                    Jun 21 '18 at 8:09







                    Just doing this will cause an XSS Auditor Error in Chrome since the label is used as checkbox value, too. But you can provide an additional value for the checkbox by using a pipe in the label: I accept the <a href="index.php?id=123">privacy terms</a> | Privacy accepted

                    – Paul Beck
                    Jun 21 '18 at 8:09




















                    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%2f50354523%2ftypo3-powermail-methods-to-add-a-link-in-a-checkbox-label-or-title%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

                    android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                    SQL update select statement

                    'app-layout' is not a known element: how to share Component with different Modules