Dynamic CSS Customization?
-
I’d say I’m 6 out of 10 on the programming scale, and I feel I know my way around CSS/HTML/PHP fairly well… But I’m having trouble visualizing a solution to this feature I’d like to code (if it hasn’t been done already).
I have several authors that write for my website, who each post on a specific day of the week. I want my site to have a default CSS style (which it currently does), and through the admin panel I want to have some easy-to-change fields so the authors can customize their specific days. These fields will affect only their day of posting.
I can code the admin interface, the panel, deal with variables, and showing a daily css file is as easy as saying include $dayoftheweek.’.css’. What I’m having trouble wrapping my head around, is how to get the admin interface to write to the appropriate file without messing the whole thing up.
It would be fairly simple to use the already-present editor function to edit the entire source, but my writers are html-inept and wouldn’t know where to start. I want my admin interface to just say “BACKGROUND COLOR:” and an input field next to it.
How to line up those input fields with, say, line 452 of my css?
- The topic ‘Dynamic CSS Customization?’ is closed to new replies.