How To Implement An OWS Module As A Skin Object

By

November 27, 2008

This can be easily provided through the use of the SkinObject control within the skin ascx pages. You can use ResourceKey and ResourceFile (as provided documentation regarding PA'd modules), or simply the ConfigurationID (as provided here):

In you skin file, at the top with the other registration entries, add:

<%@ Register Assembly="r2i.OWS.Wrapper.DotNetNuke" Namespace="r2i.OWS.Wrapper.DNN" TagPrefix="cc1" %>

Then place the module where you want it to appear in the module

<cc1:SkinObject id="owsXX1" ConfigurationID="12167625-4879-0fab-b771-89a8ed87e1d5" runat="server"></cc1:SkinObject>

WHERE: "owsXX1" is an arbitrary id for the skin object element and the value for ConfigurationID is the ConfigurationID value for the module in the OpenWebStudio_Settings table. You can also find this value in the OWS Administration application by opening your module and selecting the Export icon in the Toolbar Ribbon. It will be in the "ConfigurationID" string which will be in the first line that you see.

NOTE - make sure ANY lxFetch or ows.Fetch javascript calls in any module that you use as a skin object references the first parameter in call in single quotes....

ows.Fetch('[ModuleId,System]',0,''); and NOT ows.Fetch([ModuleId,System],0,'');

Average (2 Ratings):
 
Want to help out?
 
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • info@openwebstudio.com

Bookmark & Share Bookmark and Share