
Hello!
I was asked to implement a dynamic url code below to a html template I designed. I am a web designer, and although I understand the code, there is something wrong with it, or maybe I didn't do it right. Can't figure out why there is a space in the path on the "$t_url". Thanks!
The code:
#set ( $t_base = "{replace}" )
#set ( $t_market = "#if (${DMA} == '807') bay-area
#elseif (${DMA} == '501') new-york-city
#elseif (${DMA} == '803') los-angeles
#elseif (${DMA} == '602') chicago
#else
national
#end" )
#set ( $t_url = "$t_base$t_market" )
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
