On Wed, Feb 11, 2009 at 5:36 AM, Linly <[email protected]> wrote:
>
> I've write some action page containing some function which will force
> forwarding to other page. Some times it's a funny play when I edit and
> save the action page, it forward to another page so I have to bring it
> back to edit again.
>
> Finally I write a condition to limit the action page does not act on
> itself when I edit it:
>
> ======================================
> [if equal {p1} action]/*Do Nothing*/
> [else]
> [(info field='{p}' value='ezDone' target='info.{p1}.{p2}')]
> <(forward {p1}.{p2})>
> [if]
> ======================================
>
> I don't know this method is batter or do it at system level is batter?

No this is fine. Of course this is a bit simpler...

[if ! equal {p1} action]
[(info field='{p}' value='ezDone' target='info.{p1}.{p2}')]
<(forward {p1}.{p2})>
[if]

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to