Basic Scope Of Work Templates Filename
This article is intended for PHP web developers who create template systems for consistently presenting website content. PHP designers who create their own template systems should be concerned about how their choices affect the website s position in search engines. Below is a discussion of three types of systems their impact on search ranking and a recommendation for the best approach. Webpage as a CGI Argument In this architecture one PHP script contains the entire template and plugs in content from a file it reads in - getting the file name from a CGI parameter.
I find this system the most search-engine friendly because it keeps the title information and the content together - allowing for the presence of relevant unique titles for each page. This system is also the most human friendly as storing the title information in the same file as the page content allows for fast updating and avoids maintaining a second "workaround" system that attempts to match titles to content. Conclusion The types of template system that PHP developers choose to implement for clients sites have a crucial impact on the future search-engine popularity of the client s webpages.
Most Popular This Week
The popular web statistics packages AWstats and Webalizer are most affected by this. However this type of templating system is popular and successfully used in the world of e-commerce. In such systems product information is stored in a database and is inserted into the template when a product is requested by its code. This means that both a unique title and a set of meta-tags can be stored alongside the product data (or generated on the fly) and inserted into the global template effectively. The only detrimental effects that remain are the latter mentioned two and are usually an acceptable tradeoff for the increased ease of administration that a database-driven system provides.
Important factors to consider when developing a template solution are: relevant titles tied to content relevant meta-tags standalone files and ease of statistics tracking. The popular approaches of page-as-an-argument and template-as-an-include do not effectively provide these functions. Including template information after the body tag and keeping headers intact is the best way to ensure that sites are optimized for search engines - and this is why you should consider using the Body-Only Includes model during your next project. You probably know that submitting articles can boost your website s popularity in search engines.