share()

A function to instantiate a PageSharer Object.


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

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.