WebSite X5Help Center

 
Paul De Freitas
Paul De Freitas
User

Variable external URL in links  en

Автор: Paul De Freitas
Просмотрено 2275, Подписчики 1, Размещенный 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

Размещено
3 Ответы
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!

Читать больше
Размещено От Claudio D.
Paul De Freitas
Paul De Freitas
User
Автор

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

Читать больше
Размещено От 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!

Читать больше
Размещено От Claudio D.