[Radiant] Re: Re: Custom Radiant Tags

2009-02-03 Thread Little Known
Thank you, very helpful! -- Posted via http://www.ruby-forum.com/. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant

[Radiant] Re: Custom Radiant Tags

2009-02-03 Thread Little Known
Jim Gay wrote: > On Feb 3, 2009, at 11:12 AM, Little Known wrote: > >> tag 'kids:kid_sport_list' do |tag| >>kid = tag.locals.kid >>kid.sports.each do |sport| >>%{#{sport.name}) >>end >> end >> >> For some reason th

[Radiant] Custom Radiant Tags

2009-02-03 Thread Little Known
tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a "#" for each sport in kid.sports instead of the name... Would anyone know why? -- Posted via http://www.ruby-forum.com/. _

[Radiant] Re: Adding image uploads to custom extension

2009-01-23 Thread Little Known
Little Known wrote: > ### player.rb # > has_attached_file :photo, > :styles => { > :thumb=> "100x100#", > :small => "150x150>", > :medium => "300x300>", > :large => "400x400>" } If

[Radiant] Re: Adding image uploads to custom extension

2009-01-23 Thread Little Known
Sean Cribbs wrote: > Little Known wrote: >> Could anyone provide some direction in adding something like this? I'm >> guessing I would have to use the attachment_fu plugin but I'm not sure >> how to integrate this with Radiant. >> > I recently swit

[Radiant] Adding image uploads to custom extension

2009-01-23 Thread Little Known
Could anyone provide some direction in adding something like this? I'm guessing I would have to use the attachment_fu plugin but I'm not sure how to integrate this with Radiant. -- Posted via http://www.ruby-forum.com/. ___ Radiant mailing list Post: R

[Radiant] Re: Extension - multiple checkboxes

2009-01-23 Thread Little Known
I figured this out, thank you for the initial help. -- Posted via http://www.ruby-forum.com/. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/

[Radiant] Re: Extension - multiple checkboxes

2009-01-22 Thread Little Known
Sean Cribbs wrote: > Typically I'd do something like this inside the player editing form (in > Haml): > > - Sport.all.each do |sport| > = check_box_tag 'player[sport_ids][]', sport.id, > player.sports.include?(sport), :id => "player_sport_ids_#{sport.id}" > %label{:for => "player_sport_ids_#{s

[Radiant] Re: Extension - multiple checkboxes

2009-01-22 Thread Little Known
Sean Cribbs wrote: > Typically I'd do something like this inside the player editing form (in > Haml): > > - Sport.all.each do |sport| > = check_box_tag 'player[sport_ids][]', sport.id, > player.sports.include?(sport), :id => "player_sport_ids_#{sport.id}" > %label{:for => "player_sport_ids_#{s

[Radiant] Extension - multiple checkboxes

2009-01-22 Thread Little Known
Ok, I have two extensions for my first radiant project. Players - Name Biography Sports - Soccer Football Baseball Hockey In Players--->edit.html.erb I want to generate a checkbox for each Sport (to assign players to multiple sports). I have no idea how to do this, but I have

[Radiant] Re: Re: Automating navigation?

2008-11-17 Thread Little Known
Mohit Sindhwani wrote: > Little Known wrote: >> Wow I can't believe I missed that on the wiki. This works great although >> I am having one problem with it. The links that come out of sitemapper >> are formatted like http://localhost/link/ with a trailing / >>

[Radiant] Re: Re: Automating navigation?

2008-11-17 Thread Little Known
> If you install the Reorder extension[1] then you can specify the order > in > which pages appear. If you took this approach, you would also have to > change: > > > > to > > > > In the sitemap example[2]. > > [1]: http://github.com/radiant/radiant-reorder-extension/tree/master > [

[Radiant] Re: Re: Automating navigation?

2008-11-17 Thread Little Known
Mohit Sindhwani wrote: > Little Known wrote: >> > A trailing / is a good thing. Is your stylesheet referenced relative to > the page? > > Cheers, > Mohit. > 11/18/2008 | 12:52 AM. I did the whole "make a stylesheet page in radiant" thing. perhaps I did

[Radiant] Re: Automating navigation?

2008-11-17 Thread Little Known
Little Known wrote: > Mohit Sindhwani wrote: >> Little Known wrote: >>> Is there a way to automate the nav such that it shows a list of every >>> page, or must you make a snippet and manually code all of the links? >>> >> Like a site map? http://

[Radiant] Re: Automating navigation?

2008-11-17 Thread Little Known
Mohit Sindhwani wrote: > Little Known wrote: >> Is there a way to automate the nav such that it shows a list of every >> page, or must you make a snippet and manually code all of the links? >> > Like a site map? http://wiki.radiantcms.org/How_to_Make_a_Site_Map >

[Radiant] Automating navigation?

2008-11-17 Thread Little Known
Is there a way to automate the nav such that it shows a list of every page, or must you make a snippet and manually code all of the links? -- Posted via http://www.ruby-forum.com/. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://ra