On Wed, Nov 17, 2010 at 2:26 AM, Sam Whited <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Does anyone know if there is an option to set the default filter for > snippets in Radiant 0.9.0? > > I've got my default pages filter set ('defaults.page.filter') so I > thought there might be a similar option for snippets > ('defaults.snippets.filter' or similar) but nothing I've tried has > worked, and I can find no information about it online.
If you want a quick solution, you can override the view for creating snippets with an extension. Radiant does not currently set a default filter for Snippets. There are some details on the wiki about configuration https://github.com/radiant/radiant/wiki/Additional-Configuration-Options In 0.9.0 look at https://github.com/radiant/radiant/blob/0.9.0/app/models/page.rb#L228-234 That's where it uses the Radiant::Config settings for the default page part filter. Snippets aren't as complex as pages, though. This could be addressed in the model with after_initialize or in the controller. A well-tested patch would be applied, for sure. Or, if you can't do that, make an issue for it https://github.com/radiant/radiant/issues > > Thanks, > Sam > > - -- > Sam Whited > pub 2048R/0DBB515F > > SamWhited.com > [email protected] > > Georgia Institute of Technology > Mechanical Engineering Undergraduate > [email protected] > 404.492.6008 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJM44OuAAoJEHjfG+UNu1FfPkoH/3LVG+nXcjlfRiL6zGdSNzeV > 5t02cnmCOTZ9rJGFX/lxWsY6oS2al+agUP3/pnjIByDb9aK/PeK6lQzKXLH9+qXw > 1jkMiacy568sbdyZ6qKIU2h+KUCcNYQjVXxH4rssNoRsacsItwRKMFTOCHubpivo > nfSsJ6MSJu/WrjGMSYHIlWd2Mvo4CBHWopmjMHFpjDaN3mXQZ/t0tSSoYBDzLCdg > qMHLOcBLOb/F92FREZ+qa5VorMzaqHESrF/kln4TWIsY9/Oke+dSe5iz4F8in7XZ > u6wVzNI3z3Hpj1v1FLePASR2uX/I6U6bsAu+e70kMirYS0CIMBMYq2hRNGeNRhY= > =fI0+ > -----END PGP SIGNATURE----- > -- Jim Gay Saturn Flyer LLC http://www.saturnflyer.com 571-403-0338
