Category Archives: Level: Advanced

Content Management: Building a sitemap for your dynamic Texty content

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.

As with the other content management systems I’ve discussed, the actual text delivered to your Web site will not be indexed by search engines such as Google. Most major search engines ignore any text delivered to your page via javascript or other scripting methods that take place in the browser, rather than on the server. If you happen to have a Web site that allows you to run javascript codes on the server side, you can avoid problems with indexing your site content by adding a code within your <script> tag to tell the server to run the code before delivering the page to your user. Simply change <script> to <script runat=server>. However, if you are using Microsoft Office Live Basics, you can not run any scripts at the server level, so you have to find some other way to deliver your content. I will spend a little time discussing the problems this presents to individuals and small businesses trying to establish a Web presence in the next series of posts.

Read more»

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){
document.writeln(Texty);
}

Here’s the corrected code (I’ve also corrected the code in the original post):
Read more»

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:

Read more»