CornishFlyer Posted December 8, 2012 Share Posted December 8, 2012 (edited) Hi guys, So, I've just finished creating my own CMS. What I'm looking to do now is to develop this further by allowing either myself or another user to change the template or adjust the colours of the website which are defined in the CSS. Something like you can do with the likes of Wordpress, 1&1 etc, is this possible, or easy to develop? In other words, allow a user to change a template or implement a template system rather than fixed style sheets? I've taken a look through YouTube, but found nothing that seems to be what I'm after. Any hints would be great please! Thanks. Edited December 8, 2012 by CornishFlyer Link to comment Share on other sites More sharing options...
birbal Posted December 8, 2012 Share Posted December 8, 2012 It will be quite same like the CMS you have made. You have built CMS to use a HTML template to get data from database and populate the page. here you need to use a css file as template where user chanagble things will be in placeholder and the data will be pulled from database. Link to comment Share on other sites More sharing options...
CornishFlyer Posted December 9, 2012 Author Share Posted December 9, 2012 Could you provide any help on how to achieve this please? Link to comment Share on other sites More sharing options...
CornishFlyer Posted December 10, 2012 Author Share Posted December 10, 2012 Can no one else please shed any light on this? Link to comment Share on other sites More sharing options...
satishpoul Posted December 10, 2012 Share Posted December 10, 2012 yes it is possible.. for that u will have to give the option to the user to choose the color of background or particular div or else...u can make ur css file dynamic like /* store in stype.php #header { background: url("<?php echo $CDNURL; ?>/images/header-bg.png") no-repeat;}a { color: <?php echo $linkColor; ?>;}*/and then you can use this for css file path<link rel='stylesheet' type='text/css' href='css/style.php' />. Link to comment Share on other sites More sharing options...
satishpoul Posted December 10, 2012 Share Posted December 10, 2012 if u want to do this run-time then u have to use jquery look at this link http://api.jquery.com/css/ hope so this will help you.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now