share()

A function to instantiate a PageSharer Object.


    {{ share().facebook }} // http://www.facebook.com/sharer.php?u=https%3A%2F%2Fwww.evance.it%2Fhelp%2Fthemes%2Fevml%2Ffunctions%2Fshare
    
    {{ share(page).twitter }} // https://twitter.com/share?text=share&url=https%3A%2F%2Fwww.evance.it%2Fhelp%2Fthemes%2Fevml%2Ffunctions%2Fshare&via=https%3A%2F%2Fwww.twitter.com%2Fevanceit
    
    // the above line may also now be written as
    {{ page.share().twitter }} // https://twitter.com/share?text=share&url=https%3A%2F%2Fwww.evance.it%2Fhelp%2Fthemes%2Fevml%2Ffunctions%2Fshare&via=https%3A%2F%2Fwww.twitter.com%2Fevanceit

Using the share() function without an argument will utilise the current page's URL and page title, but supplying an argument or using the share() method of a Page, Product or Category object is the preferred method. 

This in turn means that the PageSharer object can be instantiated for limited use from within an editable region in the CMS. See the PageSharer Object's page for further information about available share links.