Support for '#define' types in URL macros?

Brad Johnson
04/13/2007 12:39 am
Hi Oleg,

I was wondering if there is a possibility to support '#define' type definitions within URL macros.

I have several projects that each contain about 6 URL's. The only difference between each project is that two of the values in the URL are different. Currently I copy the project and edit the URLs in 12 places (2 per URL) whereas if I could define the 'variable' values up front, I would only need to edit those values.

i.e.
Currently in a project, I need to edit PATH_1 and PATH_2 (below) and the URLs look like this:
(URLs are fictional to illustrate the point)

www.x.com/stuff/PATH_1/list1.html
www.x.com/stuff/PATH_1/list2.html
www.x.com/stuff/PATH_1/list3.html
www.x.com/PATH_2/stuff/PATH_1/otherlist1.html
www.x.com/PATH_2/stuff/PATH_1/otherlist2.html
www.x.com/PATH_2/stuff/PATH_1/otherlist3.html

whereas what I would like to do is something like:

#DEF_1=PATH_1
#DEF_2=PATH_2
www.x.com/stuff/{#DEF_1}/list1.html
www.x.com/{#DEF_2}/stuff/{#DEF_1}/otherlist3.html
etc

That way when I copy the project to get different 'stuff', I'm only editing the two 'DEFs' at the top of the URL's.

Thanks,
Brad.
Oleg Chernavin
04/13/2007 05:15 am
This is not implemented. However you can use the {:file=c:\file.txt} macro for that. What about using external text files to keep the variables you need? You would only change filenames in a new Project URL.

Best regards,
Oleg Chernavin
MP Staff