mojoportal学习之特色模块对Artisteer2.4生成的模板的支持

分析各个模块

 

以博客模块为例:

//第一行 模块模板

<portal:ModulePanel ID="pnlContainer" runat="server">

//第二行 mojo面板

<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">

//第三行  圆角  asp面板

 

<mp:CornerRounderTop id="ctop1" runat="server" />

<asp:Panel ID="pnlWrapper" runat="server" cssclass="art-Post-inner panelwrapper blogmodule">

//第四行  模块标题控件

<portal:ModuleTitleControl id="Title1" runat="server" />

//第五行  mojo面板

 

<portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">

 

===================================================================

以论坛模块为例:

 

<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">

<mp:CornerRounderTop id="ctop1" runat="server" />

<asp:Panel ID="pnlWrapper" runat="server" CssClass="art-Post-inner panelwrapper forums">

<portal:ModuleTitleControl id="Title1" runat="server" />

<portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">

<div class="modulecontent">

<forum:SearchBox id="sb1" runat="server" />

<asp:Panel ID="pnlForumList" runat="server">

===================================================================

 

以简单文章模块为例:

 

<%@ Control language="c#" Inherits="mojoPortal.Web.ContentUI.HtmlModule" CodeBehind="HtmlModule.ascx.cs" AutoEventWireup="false" %>

//第一行   模块面板

<portal:ModulePanel ID="pnlContainer" runat="server">

//第二行   mojo面板

<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">

//第三行  圆角  asp面板

<mp:CornerRounderTop id="ctop1" runat="server" EnableViewState="false" />

<asp:Panel ID="pnlWrapper" runat="server"  CssClass="art-Post-inner panelwrapper htmlmodule">

 

//第四行  模块标题控件

<portal:ModuleTitleControl id="Title1" runat="server" EditUrl="/Modules/HtmlEdit.aspx" EnableViewState="false" />

//第五行  mojo面板

<portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">

//第六行  打分控件

<portal:mojoRating runat="server" ID="Rating" Enabled="false" />

//第七行   模块内容

<div class=" modulecontent">

//第八行  幻灯模板

<portal:SlidePanel id="divContent" runat="server" EnableViewState="false" EnableSlideShow="false" class="slidecontainer"></portal:SlidePanel>

</div>

//第九行  模块底端

<div class="modulefooter"></div>

</portal:mojoPanel>

<div class="cleared"></div>

</asp:Panel>

//第十行 低端圆角

<mp:CornerRounderBottom id="cbottom1" runat="server" EnableViewState="false" />

</portal:mojoPanel>

</portal:ModulePanel>

 

posted on 2010-10-17 15:38  蓝蓝的天2016  阅读(279)  评论(0编辑  收藏  举报