On Sep 18, 2009, at 9:18 PM, Spiralis wrote:

>
> Hi all,
>
> Thanks for your replies. I have tried a few things, but I seem to bang
> my head against the wall no matter what I try. This is what I am
> trying to do:
>
> I have an extra tag that I want to add to just about all my forms,
> "formguide":
> <def tag="formguide">
> ...
> </def>
>
> I redefine form to include it, remembering to set formguide as a
> param:
> <extend tag="form">
>       <formguide param/>
>       <old-form merge/>
> </extend>
>
> This all works fine and the formguide works excellently for all my
> form-pages (with bells and whistles :). After having this formguide
> integrated I then log out and discover that the login-form really
> don't need the formguide. I extended the login-page and got the error
> I originally reported.
>
> As suggested by Tom I can indeed override the page in app/views/users/
> login.dryml (since there indeed seems to be a problem with extending
> the login-page tag). I want the page to show without the formguide,
> hence my code in login.dryml looks like this:
>
> <login-page without-formguide />
>

This is one of the trickier issues with nested parameters; the docs  
aren't terribly clear on this at the moment.

Try this:

<login-page>
   <form:>
     <formguide: replace />
   </form:>
</login-page>

That should work correctly.

--Matt Jones


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to