Build a miniCMS for my custom web site?

taltos1

Senior member
Nov 15, 2001
892
0
0
Hello,
I am working on a website that I am crafting from scratch.

I was then going to tie in some CMS (simpleCMS, Drupal etc..) so some non-tech users could easily use a web based login to add/edit pages. Simple stuff. But I decided against that approach because it seems to cumbersome.

So now I am working with HTML, CSS, and some simple PHP ( mainly "include" to use for the header and footer of the pages) and am trying to figure out how to do something like this:

<html>
<body>
<?php include("news_teaser.php"); ?>
<h1>Welcome to my home page</h1>
<p>Some text</p>
</body>
</html>
------------------------------------------------------
Where "news_teaser.php" will truncate and display, lets say the first 20 words, of some content on a page like "news.html" and provide a link to the full article.
------------------------------------------------------
Then I need a script that will allow user to login, like "mysite.com/admin" and then get a GUI where they can select "news.html" and do basic edits in a TinyMCE type interface.

Whew! That's all. I think this can be done with PHP but I am really not sure, I am more then willing to learn but I would love some advice as to what coding can accomplish this..

Thanks a lot
 

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
This can definitely all be done in PHP.

There isn't much that PHP CANNOT do.

Pending how complex you want your site to be, you might want to consider building a framework so that future additions are relatively painless to do.

and a suggestion to remember. The flow of the application is highly critical. (I'm anal on flow on every app I create)

if you need help, feel free to ask
 

taltos1

Senior member
Nov 15, 2001
892
0
0
I do need help please! I am not sure where to even begin in coding this. I am not sure if I need database access, what PHP functions I can use?
Anyone have some examples or can point me in the right direction. I already went through the W3schoosl but I am not sure what functions can do what I am looking for.

Thanks a lot

 

tfinch2

Lifer
Feb 3, 2004
22,114
1
0
There are tons of examples on the net. Go to Sourceforge or Hotscripts and do a search for "simple cms". Your bound to find examples that you can use.
 

taltos1

Senior member
Nov 15, 2001
892
0
0
I have been to hotscripts and tried numerous simple CMS's, but they are still a bit to cumbersome, but do you know of any scripts that do just what is listed above? I would like to add this functionality from the ground up/learn something so that is why I am looking at the coding side of things.