Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Banned
    Join Date
    Jan 2004
    Location
    Minneapolis, MN
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how do you structure your sites? includes? seperate pages?

    i recently did a site where there's a master index page, and then each main area of the site is a file with only markup for content that is included in the body of the index file when needed.

    typically, i like some form of this modular approach, but i did realize today that this makes it a little trickier if, say, i want a popup to open on only one page. the friendly onLoad option isn't available for most attributes, and putting it on the body is obviously not an option since all areas of the site are loading index.cfm.

    what are others' thoughts on these things?

  • #2
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    Up until now I've mainly resorted to just SSI, and using includes for the repetitive parts of a page. I've played around with PHP/mySQL and a few template systems, though for me, SSI is good enough in most cases. And you can't beat the reliability and performance of SSI pages versus dynamic.
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.

  • #3
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    404
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Personally I use a templating system everywhere I can these days. It makes it easier for sitewide changes with minimal work, as well as easily skinning the site for new updates. Using PHP/MySQL combinations along with intuitive JS includes, I can use that same templating file but still serve up unique pages (keywords, description, UI considerations such as your individual popups, etc.) without much alteration. It also allows me to completely separate my code from my content. Although there are considerations for caching, depending on how much traffic you expect, but that is something that can be added into a site fairly easily.

    Includes, such as WA mentioned, is the predecessor to my method, and I used them myself in the past. I simply find the more advanced options do a better job, especially with large or data-heavy sites. You certainly can do this through simple includes or executables, though it may not be as streamlined or easily customizable as options that flow from a templating system with a DB backend. But it certainly can work, at the appearnce level, just as well. Even though I keep trying to talk WA into letting some of us do a templating or full-blown CMS for JK =]
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've been playing with entirely dynamically generated sites using a "clean URLs" approach - http://af.brothercake.com/dropdown/ - other than the demo pages, the main site is just one page, with all the data passed in query strings - like "c" for the URI of a content file, and "s" for subcontent - but over the top of the that I'm using mod_rewrite so that the URLs in the status bar make it appear to be a static site - which is better for google, and easier for people to remember the URLs.

    The data source itself is include files - the main HTML content is merged into a template. The beauty of this approach is that I can change that in the future without the front-end appearing to change at all - call my data from a DB, or from XML.

    There is a performance hit there by the amount of pre-processing I'm doing, and other lesser disadvantages, but I don't mind that for how much easier it is to maintain.
    Last edited by brothercake; 02-07-2004 at 07:21 AM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •