Easiest way of changing text on site

amandana1234's picture

They have: 2 posts

Joined: May 2009

I want to make a simple website, one page (text only) has to be able to be changed in a quick and easy way. Maybe something with a login name and a really simple editor. How can I do this? thanks in advance

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

How much text is there that needs changing? Do you need a WYSIWYG editor?

If it's just a small bit of text you could build a PHP script that would take a form and write the contents to a .txt file. Then use a PHP include to include that txt file in your page. I built a system like that recently for a small project.

If you need more than that, and more features like a WYSIWYG editor, you could look into simple CMS systems.

They have: 17 posts

Joined: Apr 2009

You can use some free/open source Content Management Systems. As your site is a single page you can use any custom php script.

greg's picture

He has: 1,581 posts

Joined: Nov 2005

As Megan said, it really depends on WHAT you are wanting to change.
If it's a basic HTML page with not much content, then I would say editing it in an editor each time is the quickest and easiest.

If for a client that doesn't want to do that, then either save the editable content to a Database or in a file. Then create a secure log in area that has a HTML form that gets all the current data and allows editing of all the data as required (form text and textarea inputs etc).
Submitting the form will update the saved file or the database.

The file can be the actual file, although then you would need to also add any and all other code in the file each time it's updated, such as CSS, DIV's, other text, header, footer etc.
The best method using the file approach is to use a separate file to the one you are trying to edit, then with PHP include the file where required.

Using a DB is "easier" as you would just get all the data from the DB in the file to display it, editing and updating it is also simple. The DB method may be overkill though if the site doesn't already have one and if it's only a little amount of content you wish to be editable.

Best methods depend on specific circumstances 99% of the time.

Hafsoh's picture

They have: 108 posts

Joined: Jan 2008

You can use FTP, It have editing option. There are a lot of text editors that have the ability to upload directly to FTP. Also, your operating system may support 'mounting' FTP or WebDAV on your local system as a directory, which would make it as easy as editing a file on your PC.

They have: 29 posts

Joined: Apr 2010

I think CSS is the easiest way to change the text on the entire webpage.

If you enter this code in the header of the page it will change the text of the entire page.

body {
font-family: sans-serif;
font-size: 14px;
}

That will change all the text into sans-serif with a font size of 14 pixels, and you can replace the font and size with whatever you want.

He has: 13 posts

Joined: May 2010

you are talking about a static web page. well, for that you need to know html, css and a good editor like notepad. refer some online tutorials for building a login form. that should be enough.

They have: 22 posts

Joined: Oct 2010

Hey,

There are a couple of methods available for you.

1. I personally love Joomla, it is a great way to edit content, you will need hosting that has Linux/MySQL capabilities.

2. Something else you can do is check with your web host for a possible Fantastico app where you can just click a button and it is installed instantly...this includes several content management systems, websites in HTML, blogs and more.

3. Mentioning blogs above, wordpress is great also.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.