ext:news with rx_shariff - mail link not working












0















TYPO3 v8.7.15, News 7.0.4 and rx_shariff 11.0.2



I've enabled three services that can be used to share my news detail pages (FB, Twitter & Mail).



This is my partial(Shariff.html):



<html xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper">
<rx:shariff data="{url: 'http://example.com/'}" services="facebook,twitter,mail" enableBackend="true" />
</html>


Both the FB and Twitter share buttons work fine, however when I test the Mail button I'm sent to



http://example.com/?view=mail


I've checked the documentation for both News and rx_shariff but can't see anything obvious.



Any help would be appreciated.










share|improve this question





























    0















    TYPO3 v8.7.15, News 7.0.4 and rx_shariff 11.0.2



    I've enabled three services that can be used to share my news detail pages (FB, Twitter & Mail).



    This is my partial(Shariff.html):



    <html xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper">
    <rx:shariff data="{url: 'http://example.com/'}" services="facebook,twitter,mail" enableBackend="true" />
    </html>


    Both the FB and Twitter share buttons work fine, however when I test the Mail button I'm sent to



    http://example.com/?view=mail


    I've checked the documentation for both News and rx_shariff but can't see anything obvious.



    Any help would be appreciated.










    share|improve this question



























      0












      0








      0








      TYPO3 v8.7.15, News 7.0.4 and rx_shariff 11.0.2



      I've enabled three services that can be used to share my news detail pages (FB, Twitter & Mail).



      This is my partial(Shariff.html):



      <html xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper">
      <rx:shariff data="{url: 'http://example.com/'}" services="facebook,twitter,mail" enableBackend="true" />
      </html>


      Both the FB and Twitter share buttons work fine, however when I test the Mail button I'm sent to



      http://example.com/?view=mail


      I've checked the documentation for both News and rx_shariff but can't see anything obvious.



      Any help would be appreciated.










      share|improve this question
















      TYPO3 v8.7.15, News 7.0.4 and rx_shariff 11.0.2



      I've enabled three services that can be used to share my news detail pages (FB, Twitter & Mail).



      This is my partial(Shariff.html):



      <html xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper">
      <rx:shariff data="{url: 'http://example.com/'}" services="facebook,twitter,mail" enableBackend="true" />
      </html>


      Both the FB and Twitter share buttons work fine, however when I test the Mail button I'm sent to



      http://example.com/?view=mail


      I've checked the documentation for both News and rx_shariff but can't see anything obvious.



      Any help would be appreciated.







      typo3 typo3-8.x tx-news






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 13 '18 at 21:44









      Peter Kraume

      714415




      714415










      asked Jun 13 '18 at 9:18









      TomTom

      576




      576
























          2 Answers
          2






          active

          oldest

          votes


















          1














          Try this :



          <rx:shariff data="{url: url, title: newsTitle, mail-subject: 'Your mail subject', mail-body: 'The mail body', mail-url: 'mailto:{settings.shariff.mailto}'}" services="facebook,twitter,googleplus,mail" enableBackend="true" />





          share|improve this answer



















          • 1





            Works perfectly - thank you very much.

            – Tom
            Jun 13 '18 at 9:36











          • You're welcome ;)

            – StatiX
            Jun 13 '18 at 9:39











          • 1) The correct manual is here github.com/heiseonline/shariff/blob/develop/README.md 2) settings.data.mail-url has as default value mailto: to hint into the right direction 3) I currently do not see where your settings.shariff.* should come from

            – M Klein
            Jun 13 '18 at 10:33













          • 1) Ok 2) As @Tom explained it doesn't work if you don't specify it. 3) From typoscript custom settings

            – StatiX
            Jun 13 '18 at 11:59





















          0














          The above answer did not work for me, as the variables "url" and "newsTitle" are not are not passed on to the partial. Also, the subject and body should be dynamic. This worked for me:



          In Templates Detail.html:



          <f:if condition="{settings.detail.showSocialShareButtons}">
          <n:extensionLoaded extensionKey="rx_shariff">
          <f:render partial="Detail/Shariff" arguments="{newsItem: newsItem}"/>
          </n:extensionLoaded>
          </f:if>


          In Partials Detail/Shariff.html:



          <div xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
          xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
          xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper" data-namespace-typo3-fluid="true">
          {n:link(newsItem:newsItem, settings:settings, uriOnly:1, configuration:'{forceAbsoluteUrl:1}') -> f:variable(name: 'url')}
          <rx:shariff data="{url: url, title: newsItem.title, mail-url: 'mailto:'}" services="facebook,twitter,whatsapp,threema,mail" enableBackend="false" />
          </div>


          This will give you: mailto:?subject=[TitleOfTheNews]&body=[AbsoulteUrlToTheNews]






          share|improve this answer








          New contributor




          beath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















            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%2f50833504%2fextnews-with-rx-shariff-mail-link-not-working%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Try this :



            <rx:shariff data="{url: url, title: newsTitle, mail-subject: 'Your mail subject', mail-body: 'The mail body', mail-url: 'mailto:{settings.shariff.mailto}'}" services="facebook,twitter,googleplus,mail" enableBackend="true" />





            share|improve this answer



















            • 1





              Works perfectly - thank you very much.

              – Tom
              Jun 13 '18 at 9:36











            • You're welcome ;)

              – StatiX
              Jun 13 '18 at 9:39











            • 1) The correct manual is here github.com/heiseonline/shariff/blob/develop/README.md 2) settings.data.mail-url has as default value mailto: to hint into the right direction 3) I currently do not see where your settings.shariff.* should come from

              – M Klein
              Jun 13 '18 at 10:33













            • 1) Ok 2) As @Tom explained it doesn't work if you don't specify it. 3) From typoscript custom settings

              – StatiX
              Jun 13 '18 at 11:59


















            1














            Try this :



            <rx:shariff data="{url: url, title: newsTitle, mail-subject: 'Your mail subject', mail-body: 'The mail body', mail-url: 'mailto:{settings.shariff.mailto}'}" services="facebook,twitter,googleplus,mail" enableBackend="true" />





            share|improve this answer



















            • 1





              Works perfectly - thank you very much.

              – Tom
              Jun 13 '18 at 9:36











            • You're welcome ;)

              – StatiX
              Jun 13 '18 at 9:39











            • 1) The correct manual is here github.com/heiseonline/shariff/blob/develop/README.md 2) settings.data.mail-url has as default value mailto: to hint into the right direction 3) I currently do not see where your settings.shariff.* should come from

              – M Klein
              Jun 13 '18 at 10:33













            • 1) Ok 2) As @Tom explained it doesn't work if you don't specify it. 3) From typoscript custom settings

              – StatiX
              Jun 13 '18 at 11:59
















            1












            1








            1







            Try this :



            <rx:shariff data="{url: url, title: newsTitle, mail-subject: 'Your mail subject', mail-body: 'The mail body', mail-url: 'mailto:{settings.shariff.mailto}'}" services="facebook,twitter,googleplus,mail" enableBackend="true" />





            share|improve this answer













            Try this :



            <rx:shariff data="{url: url, title: newsTitle, mail-subject: 'Your mail subject', mail-body: 'The mail body', mail-url: 'mailto:{settings.shariff.mailto}'}" services="facebook,twitter,googleplus,mail" enableBackend="true" />






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 13 '18 at 9:34









            StatiXStatiX

            572316




            572316








            • 1





              Works perfectly - thank you very much.

              – Tom
              Jun 13 '18 at 9:36











            • You're welcome ;)

              – StatiX
              Jun 13 '18 at 9:39











            • 1) The correct manual is here github.com/heiseonline/shariff/blob/develop/README.md 2) settings.data.mail-url has as default value mailto: to hint into the right direction 3) I currently do not see where your settings.shariff.* should come from

              – M Klein
              Jun 13 '18 at 10:33













            • 1) Ok 2) As @Tom explained it doesn't work if you don't specify it. 3) From typoscript custom settings

              – StatiX
              Jun 13 '18 at 11:59
















            • 1





              Works perfectly - thank you very much.

              – Tom
              Jun 13 '18 at 9:36











            • You're welcome ;)

              – StatiX
              Jun 13 '18 at 9:39











            • 1) The correct manual is here github.com/heiseonline/shariff/blob/develop/README.md 2) settings.data.mail-url has as default value mailto: to hint into the right direction 3) I currently do not see where your settings.shariff.* should come from

              – M Klein
              Jun 13 '18 at 10:33













            • 1) Ok 2) As @Tom explained it doesn't work if you don't specify it. 3) From typoscript custom settings

              – StatiX
              Jun 13 '18 at 11:59










            1




            1





            Works perfectly - thank you very much.

            – Tom
            Jun 13 '18 at 9:36





            Works perfectly - thank you very much.

            – Tom
            Jun 13 '18 at 9:36













            You're welcome ;)

            – StatiX
            Jun 13 '18 at 9:39





            You're welcome ;)

            – StatiX
            Jun 13 '18 at 9:39













            1) The correct manual is here github.com/heiseonline/shariff/blob/develop/README.md 2) settings.data.mail-url has as default value mailto: to hint into the right direction 3) I currently do not see where your settings.shariff.* should come from

            – M Klein
            Jun 13 '18 at 10:33







            1) The correct manual is here github.com/heiseonline/shariff/blob/develop/README.md 2) settings.data.mail-url has as default value mailto: to hint into the right direction 3) I currently do not see where your settings.shariff.* should come from

            – M Klein
            Jun 13 '18 at 10:33















            1) Ok 2) As @Tom explained it doesn't work if you don't specify it. 3) From typoscript custom settings

            – StatiX
            Jun 13 '18 at 11:59







            1) Ok 2) As @Tom explained it doesn't work if you don't specify it. 3) From typoscript custom settings

            – StatiX
            Jun 13 '18 at 11:59















            0














            The above answer did not work for me, as the variables "url" and "newsTitle" are not are not passed on to the partial. Also, the subject and body should be dynamic. This worked for me:



            In Templates Detail.html:



            <f:if condition="{settings.detail.showSocialShareButtons}">
            <n:extensionLoaded extensionKey="rx_shariff">
            <f:render partial="Detail/Shariff" arguments="{newsItem: newsItem}"/>
            </n:extensionLoaded>
            </f:if>


            In Partials Detail/Shariff.html:



            <div xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
            xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
            xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper" data-namespace-typo3-fluid="true">
            {n:link(newsItem:newsItem, settings:settings, uriOnly:1, configuration:'{forceAbsoluteUrl:1}') -> f:variable(name: 'url')}
            <rx:shariff data="{url: url, title: newsItem.title, mail-url: 'mailto:'}" services="facebook,twitter,whatsapp,threema,mail" enableBackend="false" />
            </div>


            This will give you: mailto:?subject=[TitleOfTheNews]&body=[AbsoulteUrlToTheNews]






            share|improve this answer








            New contributor




            beath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              The above answer did not work for me, as the variables "url" and "newsTitle" are not are not passed on to the partial. Also, the subject and body should be dynamic. This worked for me:



              In Templates Detail.html:



              <f:if condition="{settings.detail.showSocialShareButtons}">
              <n:extensionLoaded extensionKey="rx_shariff">
              <f:render partial="Detail/Shariff" arguments="{newsItem: newsItem}"/>
              </n:extensionLoaded>
              </f:if>


              In Partials Detail/Shariff.html:



              <div xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
              xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
              xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper" data-namespace-typo3-fluid="true">
              {n:link(newsItem:newsItem, settings:settings, uriOnly:1, configuration:'{forceAbsoluteUrl:1}') -> f:variable(name: 'url')}
              <rx:shariff data="{url: url, title: newsItem.title, mail-url: 'mailto:'}" services="facebook,twitter,whatsapp,threema,mail" enableBackend="false" />
              </div>


              This will give you: mailto:?subject=[TitleOfTheNews]&body=[AbsoulteUrlToTheNews]






              share|improve this answer








              New contributor




              beath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                The above answer did not work for me, as the variables "url" and "newsTitle" are not are not passed on to the partial. Also, the subject and body should be dynamic. This worked for me:



                In Templates Detail.html:



                <f:if condition="{settings.detail.showSocialShareButtons}">
                <n:extensionLoaded extensionKey="rx_shariff">
                <f:render partial="Detail/Shariff" arguments="{newsItem: newsItem}"/>
                </n:extensionLoaded>
                </f:if>


                In Partials Detail/Shariff.html:



                <div xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
                xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
                xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper" data-namespace-typo3-fluid="true">
                {n:link(newsItem:newsItem, settings:settings, uriOnly:1, configuration:'{forceAbsoluteUrl:1}') -> f:variable(name: 'url')}
                <rx:shariff data="{url: url, title: newsItem.title, mail-url: 'mailto:'}" services="facebook,twitter,whatsapp,threema,mail" enableBackend="false" />
                </div>


                This will give you: mailto:?subject=[TitleOfTheNews]&body=[AbsoulteUrlToTheNews]






                share|improve this answer








                New contributor




                beath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                The above answer did not work for me, as the variables "url" and "newsTitle" are not are not passed on to the partial. Also, the subject and body should be dynamic. This worked for me:



                In Templates Detail.html:



                <f:if condition="{settings.detail.showSocialShareButtons}">
                <n:extensionLoaded extensionKey="rx_shariff">
                <f:render partial="Detail/Shariff" arguments="{newsItem: newsItem}"/>
                </n:extensionLoaded>
                </f:if>


                In Partials Detail/Shariff.html:



                <div xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
                xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
                xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper" data-namespace-typo3-fluid="true">
                {n:link(newsItem:newsItem, settings:settings, uriOnly:1, configuration:'{forceAbsoluteUrl:1}') -> f:variable(name: 'url')}
                <rx:shariff data="{url: url, title: newsItem.title, mail-url: 'mailto:'}" services="facebook,twitter,whatsapp,threema,mail" enableBackend="false" />
                </div>


                This will give you: mailto:?subject=[TitleOfTheNews]&body=[AbsoulteUrlToTheNews]







                share|improve this answer








                New contributor




                beath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                beath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered Jan 18 at 15:54









                beathbeath

                1




                1




                New contributor




                beath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                beath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                beath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                    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%2f50833504%2fextnews-with-rx-shariff-mail-link-not-working%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

                    Callistus III

                    Ostreoida

                    Plistias Cous