Documentation >> Conditionals >> Web Server >> requestIsMirror
Conditional Macro: requestIsMirror
Operators:
Usage Notes
- Tests to see if a directory mirror page is somewhere in the URL for the page being rendered. The page being rendered is never a Directory Mirror page, so you can't test for it with RequestPageType. Instead, the Directory Mirror modifies the output of other pages.
- If the path to the current page includes a Directory Mirror, this conditional will return true. Otherwise, it returns false.
Examples
This example would show line 1 if the path to this page (the URL) does not include a Directory Mirror (note the ! in the conditional, which means not). If there is a directory mirror in the path, it will show line 2.
<!--#if condition="! requestIsMirror"-->
1. The path to this page did not include a directory mirror.
<!--#else-->
2. One of the directories in the path to this page is a directory mirror.
<!--#endIf-->
See the above code in action, here:
1. The path to this page did not include a directory mirror.
View in DG
|