Agramont.net

Sr. Product Manager, Enterprise Tech for Accelrys
Welcome to Agramont.net Sign in | Join | Help
in Search

Conrad Agramont's Blog

Community Server 2.0: Adding support for iFrames

Recently, I signed up to be an Amazon.com Associate and I wanted use this so I could reference books on Amazon that I reviewed using their "buy now" button.  In order to make this work in Community Server, I had to make a small change in the communityserver.config file for my site.

By default, there are only certain tags that Community Server 2.0 (CS2) will allow you to use within your posts.  It turns out that the Amazon Associate program uses an iframe (as do other referral programs) to display their content on your page and this is one of the tags that CS2 does not allow.  So I simply needed to add that tag to the below file "communityserver.config".  The section below shows what you need to add to the html tag (there's more in that tag)

<CommunityServer><MarkUp><html>

      ... other tags ...

      <iframe style="true" src="true" marginheight="true" marginwidth="true" frameborder="true" scrolling="true"/>

</html></MarkUp></CommunityServer>

You must set the attributes as well and enable them by setting their value to true.  Also, once you upload this file change to your site, it may not take right away.  So you may need to "touch" your web.config file (I just add a space somewhere in the file and save it) as that will reset the ASP.NET application and force it to "reload".

Perhaps there's more to it than this, but it's a good start.

Published Jul 03 2006, 09:16 PM by agramont
Filed under:

Comments

 

Community Server Daily News said:

from the editor&amp;#39;s deskoccasional messages that don&amp;#39;t fit anywhere elseIn case you were wondering
July 5, 2006 1:11 PM
 

Community Server Bits said:

Conrad Agramont blogs about adding iFrames to Community Server, which he uses to display Amazon.com Associate

March 12, 2007 10:00 AM
 

...and then there was BLOG. said:

My last little project on this site was to integrate the AOL Instant Messenger WIMZI Widget. The first

December 17, 2007 8:40 PM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About agramont

Conrad Agramont is focused on .NET Development, Virtualization, Windows 7, Windows Server 2008, Virtual Desktop, and Microsoft Business Productivity (Exchange, Office, Live Communications)
For more information on Conrad and Agramont Services, please visit: http://agramontservices.com
Follow Me On Twitter (@agramont)

This Blog

Syndication

News

Add to Technorati Favorites

Community Tools