Yes, each command must have a unique field name. So use target target_1 target_2 etc.
The same with savedata, rename, and/or any other fields. Cheers Dan On Thu, Oct 1, 2009 at 6:17 PM, Markus <[email protected]> wrote: > > Hey, > > I am trying to create action.lock to lock the site with a custom > blocked-message. > > The current code is: > > [form] > The following message will be displayed to non-admins while the site > is locked: > [box lockmessage rows=4][box] > [submit LOCK] > [session if "exists action.blocked.lock || exists > site.auth.view.lock ? warn=Could not lock the site. Site already > locked."] > [session warn] > [session author {member}] > [session changesummary "Page renamed from site.auth.view to > site.auth.view.lock by {=author}"] > [session savedata author,changesummary] > [session rename 'site.auth.view|site.auth.view.lock'] > [session content '*: @admin > action.blocked: @guest > action.login: @guest'] > [session target site.auth.view] > [session boltedit '{=content}'] > [session author {member}] > [session changesummary "Page created by {=author}."] > [session savedata author,changesummary] > [session changesummary "Page renamed from action.blocked to > action.blocked.lock by {=author}"] > [session savedata author,changesummary] > [session rename 'action.blocked|action.blocked.lock'] > [session target action.blocked] > [session boltedit '{=lockmessage}'] > [session changesummary "Page created by {=author}."] > [session savedata author,changesummary] > [session nextpage action.lock] > [form] > > The code does only work for action.blocked OR site.auth.view. As soon > as I try to process both only the latter is processed. If I remove the > code for either one of the files, the action works as intended (but of > course only for the appropriate file). > > Ideas? > > Regards, Markus > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
