Hi all,
Still me with the single-project, 8 output dilemma. This time my question isn't about conditions, but rather about variables. I noticed that there is a system variable called "SourceFile" which would be really useful for me - reason being that some of our pages don't actually have any content in the user guide (they are more advanced topics that are reserved to the REference Guide). The Reference guide does, however, contain a link to the reference guide, and I'd like this link to be a little easier to manage. Right now I'm adding a block at the beginning with the link, but have to change the URL - this can be prone to human error and I want to avoid that.
The System.SourceFile and System.Title variables would be awesome to use, but while I can use the System.Title easily because it's the contents of a link, I don't know how to place the System.SourceFile variable within my href="/folder/****.html" (where ****.html would turn into System.SourceFile).
Does anyone know how to do this?
Thank you!
Edit: Just to be sure, I checked in the documentation which says I could use something like <a href="mcvariable:VariableSet.VariableName">My hyperlink text</a>, but that doesn't work when combining with a path - that is, <a href="/path/to/other/folder/mcvariable:System.SourceFile">Reference Guide</a> does not work.
Using SourceFile variable inside an href?
-
Eric Lachance
- Sr. Propeller Head
- Posts: 127
- Joined: Thu May 13, 2010 11:51 am
- Location: Montreal, Quebec, Canada
- Contact:
-
JasonThePirate
- Jr. Propeller Head
- Posts: 2
- Joined: Wed Mar 28, 2012 11:15 am
Re: Using SourceFile variable inside an href?
You need to use the format [%=System.SourceFile%] inside of attributes (like href). For example:
http://www.somesite.com/index.html?SourceFile=[%=System.SourceFile%]
This used to work fine for me, but in Flare 8 it doesn't seem to work.
http://www.somesite.com/index.html?SourceFile=[%=System.SourceFile%]
This used to work fine for me, but in Flare 8 it doesn't seem to work.