<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Externally linked navigation menu?</title>
	<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu/</link>
	<description>Comments on Ask MetaFilter post Externally linked navigation menu?</description>
	<pubDate>Fri, 06 Jan 2006 00:21:23 -0800</pubDate>
	<lastBuildDate>Fri, 06 Jan 2006 00:21:23 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Externally linked navigation menu?</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu</link>	
		<description>I&apos;m making a website in CSS, and I want it to have a left-side navigation menu.  It doesn&apos;t need to be fancy, just some text links will do.  What I want is to have the navigation menu externally linked, so that if I need to change it, I can change it in only one place and have it affect the whole site, like CSS does for the style. My server apparently isn&apos;t set up to use server side includes, and I prefer not to use frames. &lt;br /&gt;&lt;br /&gt; I prefer straight coding in Notepad2 - I really hate WYSIWYG editors - even those with a code view.  I&apos;ve asked a couple of people who mention using DreamWeaver with its layers feature - I don&apos;t want to learn another piece of software unless I have to. &lt;br&gt;
&lt;br&gt;
Is there any other option besides frames? Would an inline frame work, and if so, can inline frames look seamless?  I want it to work in at least IE6 and Firefox, but preferably as many browsers as possible.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.30292</guid>
		<pubDate>Fri, 06 Jan 2006 00:08:58 -0800</pubDate>
		<dc:creator>IndigoRain</dc:creator>
		
			<category>html</category>
		
			<category>css</category>
		
			<category>webdesign</category>
		
	</item> <item>
		<title>By: kcm</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476654</link>	
		<description>Try &lt;a href=&quot;http://csszengarden.com/&quot;&gt;csszengarden&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476654</guid>
		<pubDate>Fri, 06 Jan 2006 00:21:23 -0800</pubDate>
		<dc:creator>kcm</dc:creator>
	</item><item>
		<title>By: raaka</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476656</link>	
		<description>&amp;lt;script src=&quot;leftnav.html&quot;&amp;gt;&amp;lt;/script&amp;gt; with a bunch of document.writes in leftnav.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476656</guid>
		<pubDate>Fri, 06 Jan 2006 00:27:20 -0800</pubDate>
		<dc:creator>raaka</dc:creator>
	</item><item>
		<title>By: bpt</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476657</link>	
		<description>If you don&apos;t want to use any kind of SSI, templating system, or preprocessor, then yes, you have to use frames. Inline frames can indeed look seamless; it may require JavaScript, though, if you don&apos;t know the height of the content in advance. However, most users of text-mode browsers won&apos;t be able to see the navigation, which is an accessibility problem.&lt;br&gt;
&lt;br&gt;
If you&apos;re just serving static HTML files, you could use a preprocessor to generate them. There&apos;s everything from &lt;a href=&quot;http://www.gnu.org/software/m4/&quot;&gt;m4&lt;/a&gt; to &lt;a href=&quot;http://kid.lesscode.org/&quot;&gt;Kid&lt;/a&gt; and &lt;a href=&quot;http://www.w3.org/TR/xslt&quot;&gt;XSLT&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Is &lt;a href=&quot;http://upontherainbow.com/test/test.html&quot;&gt;this&lt;/a&gt; going to become the website you&apos;re making? If so, the server&apos;s response headers indicate that it supports PHP. I object to use of PHP when unnecessary on the grounds that it&apos;s a shitty language, but other people will probably have recommendations for PHP-based templating systems and such if you&apos;d like to use it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476657</guid>
		<pubDate>Fri, 06 Jan 2006 00:28:38 -0800</pubDate>
		<dc:creator>bpt</dc:creator>
	</item><item>
		<title>By: oliyoung</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476658</link>	
		<description>If your server doesn&apos;t support SSI (server side includes) does it support PHP or Perl ? You could achieve similar abilities with php (a la &quot;&lt; ? include(navigation.html); ?&gt; )&lt;br&gt;
&lt;br&gt;
iframe would work, you can make it appear seamless, but if won&apos;t help your google ranking - it should work in every 5.x + browser&lt;/&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476658</guid>
		<pubDate>Fri, 06 Jan 2006 00:29:41 -0800</pubDate>
		<dc:creator>oliyoung</dc:creator>
	</item><item>
		<title>By: bpt</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476660</link>	
		<description>raaka, that&apos;s even less accessible than iframes, and it won&apos;t work with JavaScript disabled or with XHTML documents.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476660</guid>
		<pubDate>Fri, 06 Jan 2006 00:31:38 -0800</pubDate>
		<dc:creator>bpt</dc:creator>
	</item><item>
		<title>By: TheDonF</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476665</link>	
		<description>RE: document.writes.  Search engines ignore these, so if your entire navigation system uses these, your site won&apos;t be crawled with any degree of success.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476665</guid>
		<pubDate>Fri, 06 Jan 2006 00:54:29 -0800</pubDate>
		<dc:creator>TheDonF</dc:creator>
	</item><item>
		<title>By: malevolent</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476668</link>	
		<description>As others have said, you&apos;d have to use frames or JavaScript, either of which would be bad for accessibility and search engine optimisation.&lt;br&gt;
&lt;br&gt;
The best solution would be to switch to better hosting if what you currently have really doesn&apos;t allow any server side scripting (if the site&apos;s big enough to make includes a necessity, surely it&apos;ll need things like a search, contact form, etc?).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476668</guid>
		<pubDate>Fri, 06 Jan 2006 01:14:32 -0800</pubDate>
		<dc:creator>malevolent</dc:creator>
	</item><item>
		<title>By: madman</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476669</link>	
		<description>What kind of hosting company doesn&apos;t allow server-side includes? If this is a commercial set-up, I advise you to switch.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476669</guid>
		<pubDate>Fri, 06 Jan 2006 01:18:25 -0800</pubDate>
		<dc:creator>madman</dc:creator>
	</item><item>
		<title>By: Hartster</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476671</link>	
		<description>I&apos;d try PHP: most hosts will allow it, and you don&apos;t even need to know PHP to get this to work. Simply create the menu in a file called, for example, &quot;menu.html&quot;, create the rest of the page as normal but, where you would have the html for the menu, instead write&lt;br&gt;
&lt;br&gt;
&lt; ?php include_once(menu.html); ?&gt;&lt;br&gt;
&lt;br&gt;
Then save the page but, instead of calling it page.html, it needs to be named page.php. The whole thing should take five minutes and if you upload both files to your server will work perfectly for your needs assuming PHP is allowed.&lt;/&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476671</guid>
		<pubDate>Fri, 06 Jan 2006 01:45:49 -0800</pubDate>
		<dc:creator>Hartster</dc:creator>
	</item><item>
		<title>By: IndigoRain</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476672</link>	
		<description>Uh... well, it might, but my friend and I share the account at Bluehost.com, and I&apos;ll have to call her up to ask her to enable it, as she has the admin password.  Can anyone confirm if Bluehost does allow SSI?  I am pretty sure we have PHP but I don&apos;t know it... I have minor experience with CGI because of Ikonboard but that&apos;s it.&lt;br&gt;
&lt;br&gt;
If Bluehost allows SSI, then I coded wrong somewhere. I used &lt;a href=&quot;http://www.htmlbasix.com/includes.shtml&quot;&gt;this tutorial&lt;/a&gt;. &lt;br&gt;
&lt;br&gt;
BPT, good sleuthing - that&apos;s it. I&apos;m e-mailing you, hope you don&apos;t mind.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476672</guid>
		<pubDate>Fri, 06 Jan 2006 01:47:15 -0800</pubDate>
		<dc:creator>IndigoRain</dc:creator>
	</item><item>
		<title>By: nowonmai</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476682</link>	
		<description>You say &quot;if I need to change it&quot;; I think that all of the suggestions above are overkill for something that will happen rarely if ever.&lt;br&gt;
I use a text-editor that does a search-and-replace on every file  in my local copy of the website, and then upload all the changed files. I use Textwrangler on a Mac, but there must be dozens of free Windows apps that will do the job.&lt;br&gt;
This is perhaps inelegant, but for something to be done once a month or once a year there&apos;s no point learning some fancy server-side coding stuff that you&apos;ll have to relearn if you ever want to change it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476682</guid>
		<pubDate>Fri, 06 Jan 2006 02:46:04 -0800</pubDate>
		<dc:creator>nowonmai</dc:creator>
	</item><item>
		<title>By: grumblebee</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476691</link>	
		<description>Okay, I know you don&apos;t want to use Dreamweaver, but did you know that you can hand code in it? Just start it up and switch into code view (View &amp;gt; Code), and you&apos;re basically in Notepad with color-coding and code hints. Code your page and choose File &amp;gt; Save As Template when you&apos;re done (instead of Save). &lt;br&gt;
&lt;br&gt;
In the code, wherever you want to be able to have differences on individual pages based on the template, insert the following:&lt;br&gt;
&lt;br&gt;
[!-- TemplateBeginEditable name=&quot;EditRegion1&quot; --]EDIT HERE[!-- TemplateEndEditable --] &lt;br&gt;
&lt;br&gt;
(Change the EditRegion1 to any identifier you want. Use greater-than/less-thans instead of the brackets.)&lt;br&gt;
&lt;br&gt;
Save. Close. Then, start making your individual templates by choosing File &amp;gt; New. Click the TEMPLATE tab and select your template file. Dreamweaver will generate a new file, based on your template, with the navigation bar (and anything else) you placed on the template. On these pages, make changes ONLY in the EDIT HERE areas.&lt;br&gt;
&lt;br&gt;
Now that you have pages based on a template, Dreamweaver will automatically update them whenever you make changes to the template file.&lt;br&gt;
&lt;br&gt;
The only other thing you need to know about Dreamweaver is that when you start a site, you need to set it up by going to Site &amp;gt; Manage Sites, clicking the New button and telling it where on your harddrive to store the files.&lt;br&gt;
&lt;br&gt;
Having said all of this, I would prefer a server-script-based solution, but I wanted to point out that Dreamweaver DOES provide a workable, easy solution to your problem.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476691</guid>
		<pubDate>Fri, 06 Jan 2006 03:47:19 -0800</pubDate>
		<dc:creator>grumblebee</dc:creator>
	</item><item>
		<title>By: staggernation</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476732</link>	
		<description>Bluehost&apos;s hosting plan feature list indicates they do allow SSIs. It&apos;s possible that by default it&apos;s only enabled for .shtml files, though, and not .html files. Did you try using an include on a page with a .shtml extension?&lt;br&gt;
&lt;br&gt;
If that works, but you want your pages to be .html, you may be able to enable SSIs by creating a file called .htaccess in your web root directory, and putting this line in it:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;AddHandler server-parsed .html&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
(Bluehost may also have a control panel that lets you do this.)&lt;br&gt;
&lt;br&gt;
PHP would be just as easy, though.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476732</guid>
		<pubDate>Fri, 06 Jan 2006 06:03:29 -0800</pubDate>
		<dc:creator>staggernation</dc:creator>
	</item><item>
		<title>By: whatnot</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#476833</link>	
		<description>I am a fiend for includes. I use the same little hunk of php over and over again:&lt;br&gt;
&lt;br&gt;
&#60;?php&lt;br&gt;
include(&apos;includes/foo.php&apos;);&lt;br&gt;
?&amp;gt;&lt;br&gt;
&lt;br&gt;
(the above assumes you have all your includes in a directory called &quot;includes&quot;)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-476833</guid>
		<pubDate>Fri, 06 Jan 2006 07:58:05 -0800</pubDate>
		<dc:creator>whatnot</dc:creator>
	</item><item>
		<title>By: purephase</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#477063</link>	
		<description>The &lt;a href=&quot;http://css.maxdesign.com.au/listamatic/index.htm&quot;&gt;listamatic&lt;/a&gt;  has a lot of really good examples of formatting. As for populating the links, I&apos;m with whatnot. Using whatever language is at your disposal, just include a navbar/sidebar file on each page and any changes made to that file affect the entire site.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-477063</guid>
		<pubDate>Fri, 06 Jan 2006 11:14:22 -0800</pubDate>
		<dc:creator>purephase</dc:creator>
	</item><item>
		<title>By: IndigoRain</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#477472</link>	
		<description>&lt;b&gt;Staggernation&lt;/b&gt;, I did indeed.  I tried the .htaccess file in both my root and the test directory. If you&apos;d like to check my code, &lt;a href=&quot;http://www.upontherainbow.com/test/test.html&quot;&gt;here is the HTML&lt;/a&gt; and &lt;a href=&quot;http://www.upontherainbow.com/test/test.css&quot;&gt;here is the CSS&lt;/a&gt;.  The include file is currently called &quot;navbar.shtml&quot; and is in the test directory. (Should you look at it, I&apos;m not stupid, LOL - the tutorial said to leave out the (HTML) and (BODY) tags but I even tried it with them in.)  If the include was working, under the words &quot;Navigation Test&quot; on the left side (which is coded into the HTML page), you would see a Link One that goes to Yahoo and then the word Text under that.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Nowanmai&lt;/b&gt; - does your text editor do a search and replace on all the files without having to open them all? If so, please tell me what you&apos;re using - that would work as well!!&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Purephase&lt;/b&gt; - that&apos;s exactly what I&apos;m trying to do! I know how to format the list, just not include the file.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-477472</guid>
		<pubDate>Fri, 06 Jan 2006 15:14:33 -0800</pubDate>
		<dc:creator>IndigoRain</dc:creator>
	</item><item>
		<title>By: IndigoRain</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#477703</link>	
		<description>THANK YOU whoever e-mailed me with how to fix it - the include works now!!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-477703</guid>
		<pubDate>Fri, 06 Jan 2006 21:03:11 -0800</pubDate>
		<dc:creator>IndigoRain</dc:creator>
	</item><item>
		<title>By: MetaMonkey</title>
		<link>http://ask.metafilter.com/30292/Externally-linked-navigation-menu#493900</link>	
		<description>Just wanted to correct &lt;a href=&quot;http://ask.metafilter.com/mefi/30292#476671&quot;&gt;Hartster&apos;s code&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Reads: &lt; ?php include_once(menu.html); ?&gt;&lt;br&gt;
Should be: &lt; ?php include_once(&apos;menu.html&apos;); ?&gt;&lt;br&gt;
&lt;br&gt;
Notice the additional single-quotes [ &apos; &apos; ] around menu.html.&lt;br&gt;
Otherwise Hartster&apos;s method works great for me.&lt;/&gt;&lt;/&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.30292-493900</guid>
		<pubDate>Wed, 25 Jan 2006 23:46:33 -0800</pubDate>
		<dc:creator>MetaMonkey</dc:creator>
	</item>
	</channel>
</rss>
