> > > And the problem is that when I modify my acount , code > > > for it is in one of a subpages element, so it is "refreshed" > > > on the next page or after refresh. >
The general task is clear. But the details may depend on the admin surface (oldadmin, asgard). I think I had this problem in a similiar way with asgard. > I got code for account from style and code for modifying account > is in subpage element so: > 'account' is part of person objects and updated with the mgd_update_password function. In Asgard admin a form is filled out, submitted and 'posted' to a page called user where the update happens with preset variables of the form. > code-global > code-init > account (here is style with account value) > ROOT page > subpage > subpage element > etc > > got it? > Yes or No. Yes because the general traversal for applying code is clear. No, because instead of the object account a style element is applied. Maybe with code for an account. Since your are using other admin code I have no idea what this code looks like. > The only way to get fresh account value for subpage element > and style element is get code to modify it to code-global > If you mean that you want to modify it in code-global it has the disadvantage that it will be run for every page though you may not change your password on displaying every page. Did I get it right now ? > BTW account value code is in snippet, so on every page first of all > I have to have _true_ account value to display it correctly > wherever on page , even style , page , element etc.... > Displaying the userid or account name e.g. for a customer on every visible page should be part of the style. That I understood. I can only tell how I did it with the Asgard way of changing accounts. I redirected code execution with the php-header command/directive after asgard changed successfully the account. After redirection the new (fresh?) account can be used on every element passed on it's way to the address given by the header directive. hope it still helps, dieter --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
