Latest Register Log In

+ Advanced Search

Using a Frameset

Using a Frameset
By
05/22/07 (Edited 01/30/14)

When you think of framesets on web pages, you think of the 1990s. It's rare these days except for configuration panels like WSN's admin panel. Framesets are also bad for search engine ranking, your SEO will suffer. Nonetheless, there may still be a few cases where putting your site in a frameset is appropraite (perhaps the site is an internal tool for your company, or the like).

The direct approach of putting the frameset code in the wapper would be problematic since you don't want each page to create a new sub-frameset. To get around this you need to put the frameset in a custom template. Create a custom template with this content:
<html>
<head>
<title>{PAGETITLE}</title>
</head>
<frameset frameborder="1" border="1" cols="15%,85%">
<frame src="index.php?custom=yes&TID=leftframe" name="frameleft">
<frame src="index.php" name="frameright">
<noframes>Your browser must support frames to use this site.</noframes>
</frameset>
</html>


You could link to that directly with wrapper suppression (index.php?custom=yes&TID=yourtemplate&usewrapper=no), but you'll probably want to use the custom template anywhere hack (be sure to change the usewrapper value to 'no' there).

You could avoid having to update any inbound links by moving everything into a subdirectory of where it currently is, then depositing your index.php from the custom template anywhere into the original directory, and having the frameset call the subdirectory's index.php.




Description How to place your entire site in frames.
Rating
Views 360 views. Averaging 0 views per day.