<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss">

<channel>
	<title>www.netsi.dk &#187; newsVw</title>
	<atom:link href="http://www.netsi.dk/wordpress/index.php" rel="self" type="application/rss+xml" />
	<link>http://www.netsi.dk/wordpress</link>
	<description>&#34;The internet is just a layer on the real world&#34; (don&#039;t forget that!)</description>
	<lastBuildDate>Fri, 27 Jan 2012 15:57:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<atom:link rel="next" href="http://www.netsi.dk/wordpress/index.php?page=2" />

		<item>
		<title>Ensure that news items in Dynamicweb CMS are rendered correct</title>
		<link>http://www.netsi.dk/wordpress/index.php/2010/06/29/ensure-that-news-items-in-dynamicweb-cms-are-rendered-correct/</link>
		<comments>http://www.netsi.dk/wordpress/index.php/2010/06/29/ensure-that-news-items-in-dynamicweb-cms-are-rendered-correct/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 07:24:11 +0000</pubDate>
		<dc:creator>netsi</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[dynamicweb]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[newsVw]]></category>

		<guid isPermaLink="false">http://www.netsi.dk/wordpress/index.php/2010/06/29/ensure-that-news-items-in-dynamicweb-cms-are-rendered-correct/</guid>
		<description><![CDATA[In Dynamicweb CMS when you click to a detail view of a news item you will by default get a parameter “M=News” or “M=NewsV2” depending on the News Module version. That parameter will make your details view render incorrect. You can fix it in your template, but if you use the RSS feed of news [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.netsi.dk/wordpress/index.php/tag/dynamicweb/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dynamicweb">Dynamicweb</a> CMS when you click to a detail view of a <a href="http://www.netsi.dk/wordpress/index.php/tag/news/" class="st_tag internal_tag" rel="tag" title="Posts tagged with news">news</a> item you will by default get a parameter “M=<a href="http://www.netsi.dk/wordpress/index.php/tag/news/" class="st_tag internal_tag" rel="tag" title="Posts tagged with news">News</a>” or “M=NewsV2” depending on the <a href="http://www.netsi.dk/wordpress/index.php/tag/news/" class="st_tag internal_tag" rel="tag" title="Posts tagged with news">News</a> Module version. That parameter will make your details view render incorrect. You can fix it in your template, but if you use the RSS feed of <a href="http://www.netsi.dk/wordpress/index.php/tag/news/" class="st_tag internal_tag" rel="tag" title="Posts tagged with news">news</a> items, you cannot do that.</p>
<p>The javascript below will fix that problem by redirecting the page to an URL without those two parameters. It is a simple javascript, just insert it into the HEAD section.</p>
</p>
<pre class="javascript" name="code">&lt;script type=&quot;text/javascript&quot;&gt;

// Dynamicweb CMS fix: Make sure that details view of news item is rendered correct

// Insert in Master page in HEAD section

// Will redirect to same URL but with any &quot;M=News/M=NewsV2&quot; removed

// 2010-06-29: Sten Hougaard, Bleau A/S

var loc = document.location+'';

var newLoc = loc.replace('&amp;M=NewsV2', '').replace('&amp;M=News', '');

if (loc!=newLoc) {

 document.location = newLoc;

}

&lt;/script&gt;</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.netsi.dk%2Fwordpress%2Findex.php%2F2010%2F06%2F29%2Fensure-that-news-items-in-dynamicweb-cms-are-rendered-correct%2F&amp;title=Ensure%20that%20news%20items%20in%20Dynamicweb%20CMS%20are%20rendered%20correct" id="wpa2a_2"><img src="http://www.netsi.dk/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.netsi.dk/wordpress/index.php/2010/06/29/ensure-that-news-items-in-dynamicweb-cms-are-rendered-correct/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

