We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8382
    • 253 Posts
    This is a small simple utility, add a link tag to the document which this snippet written in.
    The link target is specified with a docid.

    usage:
    [[addCSS? &linkid=`40` &media=`screen`]]
    This example produce following line in my environment.
    <link rel="stylesheet" type="text/css" title="List Style No1" href="http://..jp/styles/bol1.css" charset="ISO-8859-15" media="screen"  />
    
    [[addCSS? &linkid=`41` &linkrel=`alternate` &linktype=`application/rss+xml`]]
    And, this is equivalent to [[NewsFeed? &makerss=`0` &linkid=`41`]]
    


    If useful for someone, I’m grad.

    Sorry in my poor english, thanks.
      • 25663 MODX Staff
      • 12,272 Posts
      Very cool. Thanks. smiley
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 4273
        • 356 Posts
        Will this work for javascript files also ?
          SMF Bookmark Mod - check it out
          http://mods.simplemachines.org/index.php?mod=350
          • 10487 MODX Staff
          • 1,535 Posts
          Will this work for javascript files also ?
          The name says it all - it only handles CSS at the moment - but it’s a relatively small snippet and wouldn’t take much to adjust it to handle JS as well.
            Garry Nutting
            Senior Developer
            MODX, LLC

            Email: [email protected]
            Twitter: @garryn
            Web: modx.com
            • 6726
            • 7,075 Posts
            Thanks to Garry for helping me discover this burried resource smiley

            And thanks Eastbind for this, pretty handy !
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l&#39;outil id
              • 30223
              • 1,010 Posts
              Very neat..
              Now this is something I’d like to see as a TV widget in MODx.
                • 25547
                • 61 Posts
                Sorry for being a pain, but I don’t understand what it does huh

                grin