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

Search



Documentation >> Conditionals >> Web Server >> requestIsEdit

Conditional Macro: requestIsEdit

Operators:

  • no operators

Usage Notes

  • Tests to see if the current request is for a message editing page (such as http://www.yoursite.com/777/edit).

  • Returns false for anything that is not a message editing page for browser-based message editing. Replying to messages, and creating new messages with the /__NewThread__ page, are not examples of message editing.

  • 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 message editor as described above. Otherwise, it will show line 2.

<!--#if condition="requestIsEdit"-->

1. If you're message has been quoted by someone else in a reply, common etiquette says that you should not change the content of your message except to fix grammar and spelling.

<!--#else-->

2. If you're the owner of this message, or are a manager of this site, you can click the edit link to change the content of this message.

<!--#endIf-->

See the above code in action, here:

2. If you're the owner of this message, or are a manager of this site, you can click the edit link to change the content of this message.
View in DG