<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>overwrite or remove Menu(2) item</title>
			<link>http://www.silverstripe.org/archive/show/231118#post231118</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I would like to overwrite a Menu(2) item in a Page_Controller method.&lt;/p&gt;&lt;p&gt;Here is the scenario: I added a search form as described in &lt;a href=&quot;http://doc.silverstripe.com/doku.php?id=tutorial:4-site-search&amp;amp;s=search%20form&quot;&gt;http://doc.silverstripe.com/doku.php?id=tutorial:4-site-search&amp;amp;s=search%20form&lt;/a&gt; and added the search results template to /my_template/templates/Layout/Page_results.ss&lt;/p&gt;&lt;p&gt;As usual all works well, but my second level navigation Menu(2) now displays a link to &quot;Page Not Found&quot;, probably because the results page is a function but not part of the site tree so Silverstripe thinks the page does not exist.&lt;/p&gt;&lt;p&gt;I hope this makes sense.&lt;/p&gt;&lt;p&gt;I thought the best way to avoid this incorrect second level link is to either completely remove the link or replace it - preferably in the function that gets the search results.&lt;/p&gt;&lt;p&gt;Maybe there is another easy way that does not require to changes to the template. Any hint is highly appreciated.&lt;/p&gt;&lt;p&gt;Cheers!&lt;br /&gt;Anatol&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: overwrite or remove Menu(2) item &lt;a href=&quot;http://www.silverstripe.org/archive/show/231118#post231118&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/231118#post231118&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 18 Nov 2008 12:50:50 +1300</pubDate>
			<dc:creator>Anatol</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/231118#post231118</guid>
		</item>
		

	</channel>
</rss>