Uups, made a mistake, the line - f = self is not necessary. On Thu, Mar 26, 2009 at 8:23 PM, Martin Mauch <[email protected]>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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
