If you followed along with my last series of posts, I’ve showed you how to build a customized content management system into your Web site using AjaxIncludes, Zoho Creator’s JSON feeds, and the powerful Texty SCMS (Simple Content Management System). In this last post of this series, I want to show you how you can expand the same principal to not only deliver the content to your site, but to build a simple sitemap to help your users find content within your site.
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:
Here’s the corrected code (I’ve also corrected the code in the original post):
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: