Update to code from previous post

My apologies, but I left out a critical element from the code in my last post. If you use the code I originally posted, it will write ALL of your Texty’s into a single page.

I should have included a line that will compare the actual URL with the values from your JSON feed to determine whether or not to write a particular Texty:

if (val==winval){

Here’s the corrected code (I’ve also corrected the code in the original post):
Continue reading “Update to code from previous post”

Advanced Content Management: Using AjaxIncludes, JSON feeds, and Texty together

Digging a little deeper, we find that Texty can even be used with more advanced features. Let me show you how to combine AjaxIncludes , JSON feeds from Zoho Creator , and Texty content management into a single powerful site-building tool.

First, you will want to use the AjaxIncludes scripts to build your site framework. Remember that these elements will not be indexed as part of your site, but that’s OK because they are just the design elements of your page. This can include items like your page banner, navigation structure, and a blank “block” for your page’s content. I’ll use the following assumptions in this example:

  • You are using Microsoft Office Live Basics (MOLB), so all of your files are stored in the same directory: http://yoursite.com/Documents/.
  • You have already saved a copy of the AjaxIncludes script from Dynamic Drive as a separate file in your site at http://yoursite.com/Documents/AjaxIncludes.txt (You don’t want to save files with the “.js” extension if you are using MOLB).
  • You have created the following files to provide the framework for your site:
    • banner.htm (The main banner for your page)
    • navigation.htm (The top navigation structure for your page)
    • footer.htm (The footer for your page)

With this structure in place, you are ready to build a blank page like this:

Continue reading “Advanced Content Management: Using AjaxIncludes, JSON feeds, and Texty together”

Content Management Simplified: Texty

Texty: Simple Content Management and SyndicationI’ve recently discovered a new Simple Content Management System (SCMS) from Texty. The idea is very simplistic, and very powerful. You can create your content from within your Texty account using a WYSIWYG (“What You See Is What You Get”) editor (rich-text editor). If you prefer, you can even edit the raw HTML for your Texty, although any javascript codes you include in the HTML will be stripped out when you save it. When you are finished editing, you will be given a small HTML script code to embed in your Web site where you want the content to appear. That’s it. Just drop the code on your site and every time that you update the content from your Texty account, the changes will automatically be reflected on your Web page.

This is very much the same idea that I’ve been using for both the AjaxIncludes and JSON forms of content management. Essentially, the only difference between Texty and these other systems is that texty provides you with a WYSIWYG editor for your content (a benefit), but you can’t include additional javascript codes directly in your Texty (a drawback).

Continue reading “Content Management Simplified: Texty”

Content Management using JSON: Pros and Cons

As I explained in my last post, JSON offers almost endless possibilities for dynamically manipulating and displaying content from you Zoho Creator databases into your own Web site. By turning your entire database into a single javascript variable using a series of nested arrays, JSON allows you to select and display records based on date/time values, user credentials, user cookies, URL parameters, form controls, and your custom CSS styles to match the data precisely to your Web’s format and style.

However, there are a few drawbacks to using JSON feeds to provide your site content, so I wanted to use this post to weight some of the pros and cons of using JSON feeds to deliver custom content to your site.

Continue reading “Content Management using JSON: Pros and Cons”