How do I Import a Macro from Another Site?

kent.heberling's Avatar

kent.heberling

17 Sep, 2014 10:04 PM

What does the syntax for importing a macro from another site look like?

I've tried:
#import("Calendar:_cascade/formats/include/helpers")
#import("Calendar/formats/include/helpers")
#import("Calendar/formats/include/helpers")
#import("/Calendar/formats/include/helpers")

and a few other variations.

  1. 1 Posted by Ryan Griffith on 18 Sep, 2014 11:48 AM

    Ryan Griffith's Avatar

    Hi Kent,

    To import a macro from another Site, you will need to prefix the path with site://SITENAME/ (ie a typical cross-Site link). So, based on your examples, try the following:

    #import("site://Calendar/_cascade/formats/include/helpers")
    

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by kent.heberling on 19 Sep, 2014 02:13 PM

    kent.heberling's Avatar

    Thanks a ton. I know I had seen that around somewhere but couldn't find it again.

  3. Support Staff 3 Posted by Tim on 19 Sep, 2014 03:10 PM

    Tim's Avatar

    Hi Kent,

    I'm glad Ryan was able to help you out. Have a good one!

  4. Tim closed this discussion on 19 Sep, 2014 03:10 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac