A few customer reactions (was Re: [Soks] Re: [Fwd: Soks rocks])
Copied from Email on Thu, 03 Mar 2005 11:17:15 -0500 from Bil Kleb (Bil.Kleb@nasa.gov)
Tom Counsell wrote: > Hi Bil, Hello. >> 2. To have pre-categorized page creation [..] > > To add an extra page category you could: > > 1) edit the frame.rhtml file in the views folder of the wiki you have > created, say to have <a href='<%= url 'Trip Report: Type the title of > the report here', 'edit' %>'>Add a new trip report</a>, Works like a charm. For some reason, I was thinking that as soon as I started typing in the title area, the text would vanish like it does for the content box but it doesn't. > I'd be interested to know how important it would be to have the > categories etc be modified through the web interface, rather than in the > start.rb and views/*.rhtml files. I've left a message on the customer's phonemail. >> 3. A method to have certain "core" page links show up in >> the menu (and not be repeated in the dynamic menu section). > > Again, you can sort of do this now. The approach would be to add the > links manually to the views/frame.rhtml file in your wiki and add a > 'next if ['core link A','core link B'].include? linkedpage.name.downcase > line to the views/frame.rhtml file (around line 27). Actually, I had already hacked this in (although w/o the downcase). > I've been wondering about making a more dynamic version of this, by > having the default views/frame.rhtml include the content of another page > in the side bar. This would be done by writing in views/frame.rhtml > something like: > > <% sidebarpage = @wiki.page( "Sidebar Page") %> > <%= redcloth( sidebarpage) %> > > and then later on, in the dynamic bits page have something like, > next if sidebarpage.links_to.include? linkedpage Perfect. I'll experiment with this approach and report back. Regards, -- Bil Kleb http://fun3d.larc.nasa.gov _______________________________________________ Soks-discuss mailing list Soks-discuss@rubyforge.org http://rubyforge.org/mailman/listinfo/soks-discuss
Edit this page or
watch for changes using RSS.