WebSite X5Help Center

 
Paul De Freitas
Paul De Freitas
User

Variable external URL in links  en

Author: Paul De Freitas
Visited 2346, Followers 1, Shared 0  

I need to reference an external URL that changes on a daily basis. As an example, a typi cal daily URL would be:

http://www.somesite.com/somefolder/121716.chm

where 121716 is mmddyy.

I can generate today's mmddyy with javascript and I am assuming that I should place the complete url into a var.

How should I reference this var in the "Internet file" element of the "Link" Action tab?

Any assistance would be appreciated.

Paul

Posted on the
3 ANSWERS
Incomedia
Claudio D.
Incomedia

Hello Paul,

Unfortunately I cannot help you with the use of custom code since the support is only available for functions included in the program.

You can to to search the information with the use of search engines like google or wait to see if someone of the community is able to help you.

Many thanks!

Read more
Posted on the from Claudio D.
Paul De Freitas
Paul De Freitas
User
Author

Hi Claudio

Can I then recommend to your development team that in the URL box we are allowed to enter <var="myvarname"> as part of a concatenated string. In the example given above, the resultant target URL would become

.chm" target="_blank" rel="nofollow">http://www.somesite.com/somefolder/.chm

or

"http://www.somesite.com/somefolder/"+<var="myvarname'>+".chm"

This would be a simple parsing exercise to substitute the current value of the variable "myvarname" or whatever. Very powerful!

Many thanks for your response.

/Paul

Read more
Posted on the from Paul De Freitas
Incomedia
Claudio D.
Incomedia

Hello Paul,

Thank you for the suggestion which will be kept in consideration for the future releases of the program.

Many thanks!

Read more
Posted on the from Claudio D.