Skip navigation
DiNoia
Currently Being Moderated

How to create content that my client can update himself

Jan 9, 2013 6:57 AM

Hello!

 

I'm fairly new to Dreamweaver and new to this forum so I would greatly appreciate help from the experts.

 

I am about to start building my second website and my client wants to be able to have content (probably only type in a "News" section) that he can update himself as often as he needs to without contacting me every few weeks. What is the easiest way to set this up? I looked into creating a Wordpress site within Dreamweaver, but that seems like an awful lot just to accomplish this.

 

Thank you!

 
Replies
  • Currently Being Moderated
    Jan 9, 2013 7:28 AM   in reply to DiNoia

    If he is using an html editor, doing a simple .php include is pretty easy.

     

    As long as you have .php on your server (most hosts do), it's as simple as adding in a little line of code, for example:

     

    <?php include("content.php"); ?>

     

    Wherever you want your content.php file to show in your main page.

     

    In this situation, you would have your news page set up with a .php extension (just change .html to .php) and within that page you would have the include code that points to the content.php page in the location where you want that content to load. Your client would then only update and upload the content.php page which would only have the html for the text and images that they want to add. The content.php page would not have the html, head (or its contents) or body tags, since those will already be written into your news.php page and you wouldn't want to duplicate them, so literally just the html for the text and images in the content.php file.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 9, 2013 8:45 AM   in reply to DiNoia

    Yep, that'll do the trick, just make sure the content.php file is saved in the same directory as the news.php page if you leave the link the same in the .php include snippet.

     

    It may take a little effort on your part to help them understand what they're doing initially, but it's always gone smoothly for me in the past with clients who wanted to do updates.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 9, 2013 11:19 AM   in reply to DiNoia

    That's normal.

     

    DW will mimic the server  by processing php includes internally to some extent. Preview in Browser won't work at all.

     

    If your server has .php, uploading and viewing the files will work fine.

     

    You could set up a local server to verify everything is correct before uploading to your webserver by installing XAMPP (PC) or MAMP (Mac)  which will allow you to run Apache web server, php and mySQL locally for testing.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (1)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points