0

I am currently trying to figure out a way to create templates for a number of pages that look exactly the same. The only thing that is different is the content part.

I have worked with PHP and include() to separate several parts of my pages, but still need something that allows me to set a default layout and styling of an entire page since I will be creating thousands of pages that are identical.

Please help me with some tips! Highly appreciated.

4
  • 3
    Any reason you are not using a CMS? THOUSANDS of pages? Commented Aug 2, 2012 at 1:11
  • do you have something like a header.php and a footer.php? Commented Aug 2, 2012 at 1:11
  • yes ofcourse why is that strange? So what options are there with cms Commented Aug 2, 2012 at 1:16
  • 1
    Using a simple PHP include system for the header and footer of every page works, but if you are making thousands of pages you should really consider a CMS solution, which will make organizing your pages much more simple and also help your site grow in complexity over time. Plus you can harness community-submitted plugins for common tasks. If PHP is your preferred language, look at WordPress, Drupal, Concrete5, Expression Engine. Commented Aug 2, 2012 at 1:19

1 Answer 1

3

thousands of pages that are identical.

As stated in the comments, you should definitely go with a CMS (Content Management System)

Main features of a CMS:

  1. Allow for a large number of people to share and contribute to stored data
  2. Control access to data based on user role (i.e., define information users or user groups can view, edit, publish, etc.);
  3. Facilitates storage and retrieval of data;
  4. Control data validity and compliance;
  5. Reduces duplicate inputs;
  6. Simplify report writing;
  7. Improve communication among users.
  8. Define data as almost anything: documents, movies, texts, pictures, phone numbers, articles etc.
  9. Content Management of Pages

    Reference: http://en.wikipedia.org/wiki/Content_management_system


With that said, unless you want to spend countless hours studying and learning (which is not a bad thing) but it seems that you simply want to get this sophisticated website working, then a CMS is what you really need.

Take a look at what i believe are the top CMS's out there:

  1. Joomla
  2. Wordpress
  3. Dupral

In a nutshell, you just need to get your Host, http://www.godaddy.com/ (not my personal favorite) but for simplicity; godaddy will install the CMS for you with a click of a button, it will setup everything and get you up and running! After that is complete, you can login via the administrator panel and play around with the settings to see how things work.

I would start with WordPress, heres a nice site to get you going once you have everything setup (assuming you go for Wordpress CMS)

Have fun! Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.