We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8694
    • 61 Posts
    Hi,

    is there a revo snippet out with the facebook "like-it" button feature?
      • 33337
      • 3,975 Posts
      Make a chunk and put this code into it.
      <iframe src="http://www.facebook.com/plugins/like.php?href=[[++site_url][[~[[*id]]]]&layout=standard&show_faces=true&width=240&action=like&font&colorscheme=dark&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:80px;" allowTransparency="true"></iframe>
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 4838
        • 1 Posts
        Does anyone have the snippet of code for Evolution? I built a blog in Modx and I would like to add the Like button to every page of the blog. I want the like button to show the url of the blog post they are on in their Facebook account when they "Like" it. I would greatly appreciate it!!
        • The html posted by zi works with both Revolution and Evolution.
          Don’t forget that MODx has no block hooks. You have to put the code by yourself.
            • 10449
            • 956 Posts
            Guess you just have to replace Revo
            [[++site_url][[~[[*id]]]]
            with Evo syntax:
            [(site_url)][~[*id*]~]


            In a similar vein, a Twitter icon might look something like this:
            <a href="http://twitter.com/home?status=[*pagetitle*] [(site_url)][~[*id*]~]"><img src="images/twitter.gif" alt="Twitter" width="16" height="16" /></a>
              • 27330
              • 884 Posts
              not sure if Zi has typo there but for me this is what worked
              [[!++site_url]][[~[[*id]]]]
                • 28215
                • 4,149 Posts
                Quote from: sinbad at Jan 16, 2011, 12:38 AM

                not sure if Zi has typo there but for me this is what worked
                [[!++site_url]][[~[[*id]]]]


                Don’t do that. It’s not as elegant, nor easy, as:

                [[~[[*id]]? &scheme=`full`]]
                
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                • That concept alone - all tags can take parameters - is almost enough to get me to start with Revo again!
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 28121
                    • 107 Posts
                    Quote from: sinbad at Jan 16, 2011, 12:38 AM

                    not sure if Zi has typo there but for me this is what worked
                    [[!++site_url]][[~[[*id]]]]


                    Same here. Thanks for spotting. Zi - I wonder could you update your code?
                      • 27330
                      • 884 Posts
                      @ sparrow, did u miss splittingred post above you?