[Radiant] GET params through Radiant page?

2006-11-12 Thread Michael Roper
Hi guys, It is possible to access GET parameters passed in the url of a Radiant page? For example, I'm making a contact page, and instead of making multiple enquiry forms (sales, support, general, etc), it would be good if i could pass a url like '/contact/?type=sales' and then programatically

Re: [Radiant] Adding extended content to existing page?

2006-11-12 Thread Sean Cribbs
Brian, Yes, that is one of the basic things that the Styled Blog template does. Essentially you have this on the page that only displays part of the article: r:children:each ... r:content / r:if_content part=extendedr:linkRead more.../r:link/r:if_content /r:children:each That loops

Re: [Radiant] GET params through Radiant page?

2006-11-12 Thread Sean Cribbs
Michael, You can do it, but you'll need a behavior. By default, all pages are cached and your page would not be able to respond to the GET parameters. Another option would be to create child pages of your Contact page called sales, support, or whatever. Then only the page that processes

[Radiant] [mental] problem starting the mental branch

2006-11-12 Thread Ollivier Robert
Am I the only where the first connection to mongrel on the mental branch results in the following? ** Starting Mongrel listening at 0.0.0.0:3001 ** Starting Rails with production environment... /Volumes/Users/www/rron/nradiant/config/../vendor/rails/activerecord/lib/active_

Re: [Radiant] GET params through Radiant page?

2006-11-12 Thread Michael Roper
thanks for the reply sean, i'll have a think about your suggestion... On 11/12/06, Sean Cribbs [EMAIL PROTECTED] wrote: Michael, You can do it, but you'll need a behavior. By default, all pages are cached and your page would not be able to respond to the GET parameters. Another option

Re: [Radiant] GET params through Radiant page?

2006-11-12 Thread Leon Yeh
Hi Michael, I experienced the same problem, here how I fixed it. I added below 3 lines of code into models/page_context.rb # r:page:query_string / define_tag 'page:query_string' do | tag| tag.globals.page.request.parameters['q'] unless tag.globals.page.request.nil? end As you

Re: [Radiant] Table of contents snippet help

2006-11-12 Thread Joseph Banks
This is what I came up with. Its not ideal because its less automated than I wanted. I have to add an extra if_url section for every category I create. r:if_url matches=./*faq/$ div id=tableofcontents h2. Table of Contents: ul id=contentlist r:children:each li r:title/:r:url/:

[Radiant] My Radiant doesn't work on IE

2006-11-12 Thread jlopez
Hi, I've set up a radiant site and it works fine on Firefox and Epiphany, however when on Internet Explorer 6-7 the site doesn't render instead it forces a save as prompt for the main html page. The problem persists running the site with Webrick, Mongrel, and Apache FCGI. I've another radiant

Re: [Radiant] My Radiant doesn't work on IE

2006-11-12 Thread jlopez
Hi, Ok. When I remove the utf-8 declaration from the Normal layout More Content-Type tab the page does display in Internet Explorer 5.0, 5.5, and 6.0. However, the page's layout appears very distorted. At least now it's a matter of css. Has anybody experienced similar problems? jose. Hi,

Re: [Radiant] Table of contents snippet help

2006-11-12 Thread Ruben D. Orduz
Can you just create a FAQ controller (and behaviour) and have the url encode the arguments? Even though your solution *works,* it violates DRYBIG TIME!On 11/12/06, Joseph Banks [EMAIL PROTECTED] wrote: This is what I came up with.Its not ideal because its less automatedthan I wanted.I have to

Re: [Radiant] Table of contents snippet help

2006-11-12 Thread Joseph Banks
Ruben D. Orduz wrote: Can you just create a FAQ controller (and behaviour) and have the url encode the arguments? Even though your solution *works,* it violates DRYBIG TIME! I'm a css/html guy, don't know any rails. I was hoping someone could point me in the right direction though. --