This question about Topic Markup Language and applications: Answered
A URL that isn't a link
If I have a URL (http://
...) in a macro variable that I want to appear on a wiki page, I can just write it in the code. But if I want it to display as plain text, not as a link to the URL, that doesn't seem possible. (For example, the URL may be bogus, just an example, so following a link could actually be harmful.) I can write the URL itself directlly and bound it with verbatim tags and that works. But then the variable isn't expanded and I really want to use the variable. Solution?
* Set MYURL = "http://example.com/"
I want the value of http://foswiki.org
to appear here as plain text, not as a link.
- 30 Aug 2013
tags into the URL. E.g.:
renders as http:%nop%//example.com
- 31 Aug 2013
Thanks, but that doesn't help. The reason this value is a variable is so that it can be used multiple places. Some of those places expect to use the value as part of an active link ("http://foswiki.org/dir/file"). The http://foswiki.org
value by itself is not a valid link so I don't want it look like one when displayed alone.
- 03 Sep 2013
in front of the % tag when you don't want it to be a link.
* Expands: %MYURL%/Main/WebHome
- Suppressed: http://foswiki.org
* Suppressed: <nop>%MYURL%
- 04 Sep 2013
Thanks, George. That solves my problem.
- 05 Sep 2013
BTW, my examples never used "foswiki.org" as part of the URL. I don't know what changed the text but it is now quite confusing to read.
- 05 Sep 2013
| Subject || Topic Markup Language and applications |
| Extension || |
| Version || Foswiki 1.1.8 |
| Status || Answered |
| Related Topics || |