Dbarr Posted October 8, 2012 Report Share Posted October 8, 2012 Hello, i followed the how to build a cms series and ive got a functioning cms but i'd like to make a few additions i've figured out how to get a few options but i'd like the ability to have multiple pages that you can edit(duh) and if its possible it have the option to which it may read one of 2 css files. Thanks Denver Quote Link to comment Share on other sites More sharing options...
falkencreative Posted October 8, 2012 Report Share Posted October 8, 2012 i'd like the ability to have multiple pages that you can edit The CMS is built to easily work with existing HTML/CSS pages. You'd just need to duplicate the main index.php page and make any changes you need to link things up or change the structure of the page. As long as you have the couple <?php pieces in the code, like the include at the top of the page, the $this->FP->head() (I can't remember offhand, but I believe it was something like that) and the code that creates each of the content blocks, you should be fine. if its possible it have the option to which it may read one of 2 css files This is on the front-end only, right? That the visitor gets to choose which style they view the site in? If so, that shouldn't involve the CMS at all -- you'd just follow a tutorial that discusses how to make a style sheet switcher. Quote Link to comment Share on other sites More sharing options...
Dbarr Posted October 9, 2012 Author Report Share Posted October 9, 2012 The CMS is built to easily work with existing HTML/CSS pages. You'd just need to duplicate the main index.php page and make any changes you need to link things up or change the structure of the page. As long as you have the couple <?php pieces in the code, like the include at the top of the page, the $this->FP->head() (I can't remember offhand, but I believe it was something like that) and the code that creates each of the content blocks, you should be fine. This is on the front-end only, right? That the visitor gets to choose which style they view the site in? If so, that shouldn't involve the CMS at all -- you'd just follow a tutorial that discusses how to make a style sheet switcher. What i meant is like have navbar with the ability to add pages(which are added to the navbar) without having to copy files etc. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted October 9, 2012 Report Share Posted October 9, 2012 What i meant is like have navbar with the ability to add pages(which are added to the navbar) without having to copy files etc. That probably won't be very easy, since the entire concept that I built the CMS on is the idea that its purpose is to make it easy to convert a static HTML/CSS site to a dynamic site where an admin user can enter content. Can it be done though? Yes. You'd need to switch over to a system where the CMS loads a default index page when the site is first loaded, or loads a specific page depending on the URL. You could probably use a modified version of the current system, but use template for each page type rather than a separate page for each page in the site. Obviously you'd need a full backend to manage pages, and would need to figure out how to deal with parent and child pages (if you need that). Realistically though... Why not use Wordpress, or some other system that's prebuilt? Maybe Pixie (http://www.getpixie.co.uk/), MojoMotor (http://mojomotor.com/) or Perch (http://grabaperch.com/)? Personally, knowing how much time writing that functionality would take, a < $50 licensing fee is relatively inexpensive (personally) compared to the amount of time involved to custom develop that. Quote Link to comment Share on other sites More sharing options...
Dbarr Posted October 9, 2012 Author Report Share Posted October 9, 2012 That probably won't be very easy, since the entire concept that I built the CMS on is the idea that its purpose is to make it easy to convert a static HTML/CSS site to a dynamic site where an admin user can enter content. Can it be done though? Yes. You'd need to switch over to a system where the CMS loads a default index page when the site is first loaded, or loads a specific page depending on the URL. You could probably use a modified version of the current system, but use template for each page type rather than a separate page for each page in the site. Obviously you'd need a full backend to manage pages, and would need to figure out how to deal with parent and child pages (if you need that). Realistically though... Why not use Wordpress, or some other system that's prebuilt? Maybe Pixie (http://www.getpixie.co.uk/), MojoMotor (http://mojomotor.com/) or Perch (http://grabaperch.com/)? Personally, knowing how much time writing that functionality would take, a < $50 licensing fee is relatively inexpensive (personally) compared to the amount of time involved to custom develop that. I have used wordpress and i was just hopeing to be able to use this one. and i'l ask around see what has to be done and the best way thanks! Quote Link to comment Share on other sites More sharing options...
Dbarr Posted October 21, 2012 Author Report Share Posted October 21, 2012 That probably won't be very easy, since the entire concept that I built the CMS on is the idea that its purpose is to make it easy to convert a static HTML/CSS site to a dynamic site where an admin user can enter content. Can it be done though? Yes. You'd need to switch over to a system where the CMS loads a default index page when the site is first loaded, or loads a specific page depending on the URL. You could probably use a modified version of the current system, but use template for each page type rather than a separate page for each page in the site. Obviously you'd need a full backend to manage pages, and would need to figure out how to deal with parent and child pages (if you need that). Realistically though... Why not use Wordpress, or some other system that's prebuilt? Maybe Pixie (http://www.getpixie.co.uk/), MojoMotor (http://mojomotor.com/) or Perch (http://grabaperch.com/)? Personally, knowing how much time writing that functionality would take, a < $50 licensing fee is relatively inexpensive (personally) compared to the amount of time involved to custom develop that. Wondering where this gets its style? <div class="fp_edit" style="height: 110px; width: 760px; "> Denver Quote Link to comment Share on other sites More sharing options...
falkencreative Posted October 21, 2012 Report Share Posted October 21, 2012 The inline style is determined using Javascript within app/core/templates/t_head.php. The "fp_edit" class is styled within the CMS stylesheet, in app/resources/css/fp_style.css. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.