vince
2008-May-03 17:42 UTC
is it possible to let users define/customize their own stylesheets?
I have a blog feature on part of my site which essentially is just a Posts and Comments controller. I was wondering if it''s possible to let users define or customize their own stylesheets for their blogs similar to how tumblr.com or blogger.com. Anyone know how? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rick DeNatale
2008-May-03 18:50 UTC
Re: is it possible to let users define/customize their own stylesheets?
On Sat, May 3, 2008 at 1:42 PM, vince <sthapit-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I have a blog feature on part of my site which essentially is just a > Posts and Comments controller. I was wondering if it''s possible to > let users define or customize their own stylesheets for their blogs > similar to how tumblr.com or blogger.com. Anyone know how?Sure. Of how depends on exactly what you want to do. If you want to let users select from several pre-defined themes, you can define those themes as css stylesheets, and have the controllers/views (most likely in your layout views) include the selected stylesheet(s) needed to implement the selected theme. Typo does this. If you want to actually let users customize individual css styles, then you might generate one or more html style tags in a template using information stored for the user in the database. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---