Documentation >> Conditionals >> Web Server >> requestIsNewThread
Conditional Macro: requestIsNewThread
Operators:
Usage Notes
- Tests to see if the current request is for a "__NewThread__" page (such as http://www.yoursite.com/__NewThread__).
- Returns false for anything that is not a __NewThread__ page.
- While it could be used anywhere, this conditional macro will probbaly be most useful in your message editing template (which is used for creating, editing, and replying to messages).
Examples
This example would show line 1 only if the page is a __NewThread__ as described above. Otherwise, it will show line 2.
<!--#if condition="requestIsNewThread"-->
1. Before creating a new discussion topic, please check the Recent Messages page to make sure that we're not already discussing it under a slightly different subject/title.
<!--#else-->
2. Can't find the topic you'd like to discuss? Click on the "New Message" link in the navbar to the left.
<!--#endIf-->
See the above code in action, here:
2. Can't find the topic you'd like to discuss? Click on the "New Message" link in the navbar to the left.
View in DG
|