Thursday, January 17, 2013

Host another web page as a CRM web resource

CRL2011 allows only web pages of type .html to be stored as a web resource. What happens if you want to add an external web page as a resource?  This article shows how to do that.

Important Note that the internal HTML editor tends to add its own bits and pieces to web resource pages, and sometimes interferes with the META tags. This is a nuisance, so the approach I adopt when this becomes a problem is to import the .htm as an external file when editing my web resources - and not using the internal html "text editor" button.
  1. Create a separate file as the web resource with this content:
    <HEAD>
    <TITLE>HTML Redirect</TITLE>
    </HEAD>
    <BODY onload=window.location='http://microsoft.com'>
    Nothing to see here folks...
    </BODY>
    </HTML>
2. Embed that as a web resource. The magic happens because of the onload redirect...

No comments:

Post a Comment