We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Use the TV to trigger a snippet, so that the CSS files can be loaded in the head, and javascript can be loaded at the bottom of the template.

    $modx->regClientCSS($cssfile); // loads in head of template
    $modx->regClientStartupScript($js); // loads in head of template
    $modx->regClientScript($js); // loads at bottom of template
      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
      • 37242 ☆ A M B ☆
      • 339 Posts
      I am still struggling with the tweet. I want to pass the following parameters to twitter:

      "A new event has been entered in $city: $linkToCityBranchOfSite"

      But a cant figure out how to make an url of the parent ID. Or even get the pagetitle (which is the city name).
        • 37242 ☆ A M B ☆
        • 339 Posts
        I handled the link like this, but why does makeUrl() not work?
        $params['link'] = 'http://www.lauftreff-kalender.de/lauftreffs/'.strtolower($params['parentName']).'.html';