Free-Conversant Support / Conditional Macro: requestIsNewThread
 Home   About Conversant   Free Sites   Hosting   Support   XML-RPC 

Search




Subject Conditional Macro: requestIsNewThread
Posted 3/30/2001; 6:54 PM by Seth Dillingham
In Response To Conditional Macros (#2519)
Label None. Read 1483
<Previous Next> Thread: Forward chronological view Reverse chronological view Hierarchical outline view Edit Reply

Conditional Macro: requestIsNewThread

Operators:

  • no 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.
<Previous Next> Thread: Forward chronological view Reverse chronological view Hierarchical outline view Edit Reply
ENCLOSURES

None.
REPLIES

RE: Conditional Macro: requestIsNewThread
7/30/2003 by Mark Morgan
From the docs: "Tests to see if the current request is for a "__NewThread__"


TRACKBACKS



This site managed with Conversant, © Copyright 2010 Macrobyte Resources