Jump to content
Ketarin forum

Multiple use variables not resolving?


shawn
 Share

Recommended Posts

Hi, Flo!

 

On my new Synergy template there's an issue.

 

It builds the URL to check the version and download location based on one of the variables selected within the setup: either Beta or Stable. This is the pattern for that URL:

hxxp://example/download/?{ReleaseType:multireplace:|:Beta|Stable:list|alt}

The new URL is then compiled and stored in the variable {source} which uses the multireplace function to ensure that it doesn't have to recompile the URL for each instance. For the version check it works fine. It parses the correct URL built in {source} and then processes the content to return the correct version based on the returned HTML.

 

However, the second call to {source} isn't treated as a URL, but as a static string "{source}".

 

I've tried rewriting this to use URLs that are composited on the fly (the code above in each URL parameter), but even then the URL is malformed. It looks like the multireplace function is failing to be processed twice - and is returning an empty result on the second instance.

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.