Re: [Radiant] Re: Update for tutorial "Creating an extension V"

2009-03-26 Thread Shaolo
You don't seem to need to register.  You just "login" and it saves your info
so no one can masquerade as you. With that said, I tried to edit the wiki
and it just kept crashing, so I gave up...

On Thu, Mar 26, 2009 at 12:24 PM, Martin Mauch wrote:

> Uups, made a mistake, the line - f = self
> is not necessary.
>
> On Thu, Mar 26, 2009 at 8:23 PM, Martin Mauch  >wrote:
>
> > In http://wiki.radiantcms.org/Creating_an_extension_V about under
> >
> > Add partial with fields to the page edit view
> >
> > the path for the partial should probably
> > read
> /vendor/extensions/tennis/app/views/admin/pages/_player_base_info.html.haml
> > (so pages instead of page if colors don't display).
> >
> > Also, the _player_base_info.html.haml needs to be updated to the
> following:
> >
> > - if @page.is_a?(PlayerPage)
> >   - f = self
> >   %table.fieldset
> > - ['player_first_name', 'player_last_name', 'player_rank'].each do
> > |field|
> >   = render :partial => "meta_row",:locals => {:f => self}, :object =>
> > {:field => field, :type => "text_field", :args => [{:class => 'textbox',
> > :maxlength => 100}]}
> >
> > I would have updated the page by myself, but I have not found a link for
> > registering for the Wiki.
> >
> > Best regards
> >   Moe
> >
> ___
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>



-- 

- Shawn Wilton
- (503) 881-2707
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Re: Update for tutorial "Creating an extension V"

2009-03-26 Thread Martin Mauch
Uups, made a mistake, the line - f = self
is not necessary.

On Thu, Mar 26, 2009 at 8:23 PM, Martin Mauch wrote:

> In http://wiki.radiantcms.org/Creating_an_extension_V about under
>
> Add partial with fields to the page edit view
>
> the path for the partial should probably
> read 
> /vendor/extensions/tennis/app/views/admin/pages/_player_base_info.html.haml
> (so pages instead of page if colors don't display).
>
> Also, the _player_base_info.html.haml needs to be updated to the following:
>
> - if @page.is_a?(PlayerPage)
>   - f = self
>   %table.fieldset
> - ['player_first_name', 'player_last_name', 'player_rank'].each do
> |field|
>   = render :partial => "meta_row",:locals => {:f => self}, :object =>
> {:field => field, :type => "text_field", :args => [{:class => 'textbox',
> :maxlength => 100}]}
>
> I would have updated the page by myself, but I have not found a link for
> registering for the Wiki.
>
> Best regards
>   Moe
>
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant