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
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
