URL with a variable?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
debdebtig
Jr. Propeller Head
Posts: 9
Joined: Wed Jan 22, 2014 8:54 am
Location: New Hampshire

URL with a variable?

Post by debdebtig »

I'm trying to find a way to not write almost the same text on a large number of pages. I've tried with variables, I've tried with snippets but it doesn't like to use either in a link. Here's what I am trying to do.

My text go to the other link here. The here link includes a standard base of a url to a help page https:\\myhelp.com\index.htm# and then I want to take the current file name so that we don't have to input the file name ever time.

Making the url https:\\myhelp.com\index.htm#<MadCap:variable name="System.SourceFile" />

Every time I try this in any way it changes the URL to my folder location plus the code of the variable and not the variable. The reason we are calling the file name is because it is the same page just in a different help location. It seemed like a great idea until I kept trying it and it didn't work. :(

Is there anyway to do this?

Thanks for any ideas.
:flare: 2024 :capture: v7
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: URL with a variable?

Post by NorthEast »

When you use Insert > Hyperlink, there's a button/icon to the right of the URL to insert a variable, and that will insert it in the right format - for example: [%=System.SourceFile%]

However, that still may not work for your example, as I guess you need folder/path too and not just the filename. There isn't a variable for the folder/path.
Post Reply