Jump to content

SCGetContainer for local paths only?


This topic is 5660 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm having difficulty using the SCGetContainer function to grab images for use in a portal. The SuperContainer demo seems to rely on the fact that you are running SC Server locally, and has no problem grabbing an image. But when I try to use the function using using a URL in the file path parameter (to a remote SC Server), I get an ERROR as the result.

Here's an example:

SCGetContainer("http://fmdemo.360works.com/SuperContainer/Files/desktoptests/11/7" ; 64 ; 64)

Suggestions please!! Thanks!

Dave

Link to comment
Share on other sites

You need to use the SCSetBaseUrl() function to set the prefix for all further requests. So instead of calling

SCGetContainer("http://fm demo.360works.com/SuperContainer/Files/ desktoptests/11/7" ; 64 ; 64)

You would call this once in your startup script:

SCSetBaseUrl( "http://fmdemo.360works.com/SuperContainer/Files/" )

and then you would make this call wherever appropriate:

SCGetContainer("desktoptests/11/7" ; 64 ; 64)

The idea behind the base URL is that since it is the same for all calls, you just call it once. We get some efficiency benefits in the plugin by being able to assume that all calls are made to the same server.

Link to comment
Share on other sites

Jesse,

Thanks for the response. I continued to have the same issue no matter what I tried. I finally called your company for help. After working with Michael, we ended up fixing the issue by upgrading my plugin version from v.2.1.2 to 2.1.6.

Cheers!

Dave W

Link to comment
Share on other sites

This topic is 5660 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.