HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
A home-made SSI framework
Post new topic   Reply to topic    HTML Help Forum Index -> SSI
View previous topic :: View next topic  
Author Message
yangyang



Joined: 05 Oct 2006
Posts: 23
Location: kavoir.com

PostPosted: Fri Oct 06, 2006 10:26 pm     A home-made SSI framework Reply with quote

I have written a petty SSI framework in my spare time, very simple but with the following functionalities in mind:

Specific meta information for each category and article:

1. Specific keywords independently for each category and article.
2. Specific description independently for each category and article.
3. Specific title independently for each category and article.

Note: Since all the meta information is self-contained within each category and article, wherever you move them in the hierarchy of your website, all the meta information is preserved and re-stacked when you access them from the new URI. Let's take title information for example, we have a hierarchy of,

kavoir.com
 |
 |=Reference
 | |
 | |=HTML Entities
 | | |
 | | |=page1.shtml <===Access it from your browser
 | | |
 | | |=page2.shtml
 | | |
 | | |=page3.shtml
 | |
 | |=CSS Colors
 |   |
 |   |=page1.shtml
 |   |
 |   |=page2.shtml
 |
 |=Tools
 | |
 | |=Color Scheme from Pics
 | |
 | |=Email Pics Generator
 | |
 | |=Text Pics Generator
 |
 |=Bullshit
   |
   |=Devil Dic

page1.shtml's title should be "titleofpage1::HTML Entities::Reference::titleofkavoir.com" at first. After you move it to another category, say, CSS Colors, the title on your browser will automatically* change to "titleofpage1::CSS Colors::Reference::titleofkavoir.com" when you access it with the new URI. It's the same with keywords and description stacking.
And of course, you can choose to maintain an category or article whose meta information is totally at its own and not stacked with their fathers at all.

4. Each category has its own self-contained independent navbar, with navigation information of categories and articles directly under it.

Note: Just like the meta information, navigation is also re-stackable. Take the example above, before the move, the whole navigation on article page1.shtml looks like this,

=> [navigation of kavoir.com]
=> [navigation of category Reference]
=> [navigation of category HTML Entities]

After the move, the navigation on page1.shtml automatically changes to

=> [navigation of kavoir.com]
=> [navigation of category Reference]
=> [navigation of category CSS Colors]

Note: As you can move articles around the website hierarchy freely without worrying about the meta information and navigation, you can also move categories(and the whole structure within) the same way.

5. The skeleton.shtml in the framework deals with the skeleton of every page in the website, so it would be easy to make any global change.

6. Instead of using the skeleton.shtml, an article could as well resort to a combination of headsec.shtml + bodysec.shtml for skeleton, which is equal to skeleton.shtml. In this way, customized meta information(be it local css styles, scripts or meta tags) specific to this article can be easily added between the including of headsec.shtml and bodysec.shtml.


*Note: Actually not a total automation, you have to modify the nav info of the category into which page1.shtml is moved and that of the category from which page1.shtml is moved out. Other than that, things are automatically taken care of.


You can download the framework at: ssi2.zip

Remember, it has to be put in the DOCUMENT ROOT to work. It's a website framework, not a directory framework.
yangyang



Joined: 05 Oct 2006
Posts: 23
Location: kavoir.com

PostPosted: Fri Oct 06, 2006 10:29 pm     Reply with quote

It's so simple that I didn't even bother to put it online. Now that we are here, complaining and rambling about SSI, I thought, why not. So this is it.

I use it for one of my other websites: econguru.com, and it worked pretty good with a small undertaking such as this. Or you may not want to bother implementing it, cause' you can easily write your own. Smile

Anyway, hit me! Cool
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> SSI All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial