The intended audience is webmasters and developers who create websites for non-technical customers and want the customer to be able to edit parts of the site content.
SnippetEdit is really as simple as it gets. It does not have a menu system or lots of options to confuse your content editors. SnippetEdit does not require your users to know anything about the website file system or how to use ftp.
"Snippets" are usually small sections of content such as a product description or a news headline. SnippetEdit lets you define both text and images as snippets so the customer can easily edit text, modify images, and even upload their own images. Text can be entered in either plain text or using a rich-text editor.
Snippets can be stored inline directly within the HTML (or PHP, etc.) file. Snippets can also be stored in a database.
Visit www.SnippetEdit.com for more details and a demo.
SnippetEdit does not require a database. You only need a database if you choose to store your snippets in a database.
You can use SnippetEdit regardless of whether your website is static HTML or dynamically generated using CGI, PHP, ColdFusion, JSP, etc.
SnippetEdit has a very simple password authentication system so only authorized users can edit the site. However, you can easily override the built-in authentication to integrate SnippetEdit into your own authentication system.
You define which parts of the website are editable (the "snippets") by adding <SNIPPET> elements to your HTML or to the generated HTML within your dynamic scripts. For example, if you had the following HTML:
SnippetEdit does have some "limitations"--it is designed that way on purpose. SnippetEdit is not a website design and creation tool. SnippetEdit won't allow your users to create new pages or add entirely new sections of content to existing pages. The idea is that you, the webmaster, pre-define the parts (snippets) of the website the user can modify. The user simply navigates their website like any normal visitor would and the snippets "magically" appear next to editable snippets. The tool does not have bells and whistles that would only confuse the non-technical user. SnippetEdit does not even have a menu system or force the user to traverse the website directory structure. It's amazingly easy to use.
SnippetEdit was created from several years of website development and hosting. In my experience, I had lots of customers who didn't know anything about HTML or FTP and they didn't want to. (Why should they?!) As easy as tools such as FrontPage and a host of others are to use, most non-technical customers do not want to learn the tools. So they would call me to change a picture in their product catalog or to update a news item on their home page. I'd end up hacking a "quick & dirty" admin tool to let them easily change content snippets. Out of that grew SnippetEdit--a generic, powerful, flexible, and EASY tool that solves all those problems.
The SnippetEdit website also has a live demo that allows you to see SnippetEdit in action.
When you are satisfied that SnippetEdit is all you dreamed it could be, purchase your license at the SnippetEdit website at www.snippetedit.com. Once your purchase transaction is complete, you'll be given a zip file to download that is your licensed copy that will only run on the website domain you specified when ordering.
# ***************************************************************************** # SnippetEdit - a tool that simplifies website content editing. # Copyright 2005 SnippetEdit.com# Visit http://www.SnippetEdit.com for more information. # # SnippetEdit Configuration File # Modify these parameters specific to your website. # Lines that begin with a pound sign (#) are comments. Blank lines are ignored. # ***************************************************************************** # The full URL to your site's home page. Do not include a trailing slash. # Do include the 'http://' or 'https://' part. SnippetEdit assumes SnippetEdit # is installed one subfolder below this home page. The folder this home page # is in becomes the top-most editable folder. FULL_HOME_PAGE_URL = http://www.mydomain.com/homepage.html # You can define one folder as the default image folder. Enter the relative # path from your home page listed above. IMAGE_FOLDER = images # The image file types you allow to be uploaded. You probably do not need # to change this. ALLOWED_IMAGES = gif,jpg,jpeg,png # You can use the built-in basic password-protection or use your own. PASSWORD_PROTECT = true PASSWORD = admin # Database configuration. SnippetEdit DOES NOT require a database. # SnippetEdit does support updating snippets stored in a database. # if you are storing snippets in a database, then you must configure # the parameters below. # Uncomment the line for your database type. DB_TYPE = mysql #DB_TYPE = postgres #DB_TYPE = MSSQL # Enter your database connection information. DB_HOSTNAME = localhost DB_DBNAME = DB_USER = DB_PWD = # Define your database snippets here. # (Defined here rather than within the element for security.) # You indicate that a snippet is stored in the database by giving your # <SNIPPET> tag a dbid attribute like so: # <SNIPPET dbid="1"> # The dbid does not have to be numeric. You could name your snippets # if this makes it easier for you to keep things straight: # # array with 3 values. The three values are: # 1. table name: Name of database table snippet is stored in. # 2. column name: Name of column snippet is stored in. # 3. where clause: The SQL WHERE clause to find the snippet. # For example, if your select statement to get your snippet is: # SELECT foo # FROM bar # WHERE foo_name = 'bob'; # You could enter: # 1 = bar,foo,foo_name='bob' # Or, you could do: # news_header = bar,foo,foo_name='bob' # # SnippetEdit limits SELECTs and UPDATEs to 1 row. This prevents a mal-formed # WHERE clause from accidentally updating every row in your table! # YOUR DBID's MUST BE UNIQUE! They can not be named the same as any of the # other parameter names in this file. 0 = table_name,column_name,where_clause
Notice the three highlighted lines above? Those are the only three lines you will probably need to edit! The comments in config.php should be enough to explain what the parameters are. Simply open config.php in Notepad or your favorite text editor and modify those three lines for your website.
SnippetEdit also assumes it is installed in the same folder as the home page you specify. For example, if you specify:
You can disable password protection by setting PASSWORD_PROTECT to false. Why would you want to do this? If you already have a password protected admin directory, you can put SnippetEdit in that directory.
You can also leave SnippetEdit's password protection enabled, but integrate it into your own authentication. This would be useful in situations where you already have a password protected customer controlpanel and you want to allow your user to login to SnippetEdit directly from your controlpanel. For tips on how to do this, contact SnippetEdit Support at support@snippetedit.com.
If you want to use the database snippet feature, setup the parameters in the database configuration section of config.php. Currently, only MySql is supported. However, it is rather trivial to add other database types to the system. So let us know if you need another database supported! support@snippetedit.com.
There are 2 things you have to do to tell SnippetEdit about database snippets. First, in your snippet element, you'd add the dbid attribute.
You can rename the 'edit' directory to anything you want. I think 'edit' is simple, short, and applicable, but perhaps you'd prefer to rename it 'marklar'.
By the way, in the mary and john example above, you are only required to purchase a single license since the website domain name is the same for both.
You must also write-enable any files that you want to edit with SnippetEdit since SnippetEdit will need to save your changes back to your web pages. If you choose to store your snippets in a database, SnippetEdit will not need write access to your web page files.
Point your browser to http://www.yourdomain.com/edit. (Of course replace with your real domain name.) If SnippetEdit detects any problems with your configuration, it will tell you about it, and hopefully tell you how to fix it.
Once you've unlocked SnippetEdit and all configuration issues are resolved, you should see the SnippetEdit login page unless you set PASSWORD_PROTECT = false. Login with the password you set in config.php. (The default is admin.)
If all goes well, you'll be looking at a narrow SnippetEdit bar at the top of the page and your home page below. CONGRATULATIONS! The next step is to add snippets to your HTML.
Notice in the example above that the word SNIPPET is uppercase! YOU MUST MAKE YOUR SNIPPET TAGS UPPERCASE. However, all the attribute names within your SNIPPET tags must be lowercase.
BY USING SNIPPETEDIT, EITHER THE TRIAL OR LICENSED VERSIONS OR ANY OTHER VERSION, YOU AGREE THAT THE DEVELOPER(S) OF SNIPPETEDIT AND/OR ANYONE ELSE ASSOCIATED WITH SNIPPETEDIT ARE NOT IN ANY WAY RESPONSIBLE FOR ANY PROBLEMS, ISSUES, AND/OR LOSS OF DATA THAT MAY RESULT FROM THE USE OF SNIPPETEDIT. SNIPPETEDIT IS NOT WARRANTIED FOR ANY PARTICULAR PURPOSE AND IS PROVIDED AS IS.
YOU MAY NOT REPACKAGE OR REDISTRIBUTE SNIPPETEDIT WITHOUT PERMISSION.