nmduc073 posted on July 24, 2010 05:06

::69 view(s)
Dưới đây, mình tóm tắt cách sử dụng skin object từ một bài viết tiếng Anh.
-Ví dụ mình đang sử dụng skin Zen_BusinessStyle. Nó đặt trong Portals\_default\Skins.
-Trên file skin index.ascx trong thư mục chứa skin hiện hành, đặt đoạn code sau trên đầu file:
<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>
-Copy đoạn code sau đặt ở nơi nào đó trong file index.ascx.
<dnn:TEXT runat="server" id="dnnTEXTWelcome" Text="Welcome, " CssClass="NormalBold" ResourceKey="Welcome.Text" ReplaceTokens="false" />
-Tạo thư mục App_LocalResources trong thư mục Zen_BusinessStyle.
[Read the rest of this article...]