Diễn đàn    Các Projects Dotnetnuke (DNN)    module quản lý tin tức News trên dotnetnuke

Thành viênTrả lời
aspnet

Lập trình không biên giới
608  bài
15-6-2008 8:59:5
Download tại đây


http://coder.awas.vn/downloads.ashx?id=f1756bfa8e814ecf9478c007daa14acc
 
aspnet

Lập trình không biên giới
608  bài
27-7-2008 10:5:44
Hướng dẫn cài đặt

- Tạo cấu trúc bảng bằng cách chạy file cms.sql

- Copy thư mục News vào /Website/DesktopModules/News

- Trong thư mục News có 3 file news 'category.dnn', 'news content.dnn', 'news listing.dnn' chạy 3 file này bằng cách login với user host, vào Import Module Definition -> Import Manifest

- Copy 2 file news.dll và providers.dll vào /dotnetnuke/bin/

Làm tuần tự vậy là OK
 
ndthu


7  bài
29-7-2008 14:30:45
bác ơi cho em hỏi là bác có code bằng VB ko
 
aspnet

Lập trình không biên giới
608  bài
29-7-2008 16:40:10
bác ơi cho em hỏi là bác có code bằng VB ko


Không có em ạ.
 
kiditer


2  bài
18-10-2008 1:44:25
cài đặt xong làm sao để xài vậy bạn ?
 
quietman


1  bài
30-10-2008 17:17:38
Mình cài đặt theo hướng dẫn của bạn đã thành công, nhưng khi sử dụng module thì nó báo lỗi như này:


1)Category
Error: CategoryTinTuc is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'News.cat_menu'. ---> System.Web.HttpParseException: Could not load type 'News.cat_menu'. ---> System.Web.HttpParseException: Could not load type 'News.cat_menu'. ---> System.Web.HttpException: Could not load type 'News.cat_menu'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---


2)Content
Error: ContentTin1 is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'News.news_view'. ---> System.Web.HttpParseException: Could not load type 'News.news_view'. ---> System.Web.HttpParseException: Could not load type 'News.news_view'. ---> System.Web.HttpException: Could not load type 'News.news_view'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---


3)Listing
Error: Listing1 is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'News.news_list'. ---> System.Web.HttpParseException: Could not load type 'News.news_list'. ---> System.Web.HttpParseException: Could not load type 'News.news_list'. ---> System.Web.HttpException: Could not load type 'News.news_list'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

Vậy là sao??? Bạn debug giùm mình với!!!
 
aspnet

Lập trình không biên giới
608  bài
1-11-2008 5:14:38
mấy hôm nay bận quá, vài hôm nữa rỗi mình sẽ trả lời chi tiết nhá
---
Coding for food
 
aspnet

Lập trình không biên giới
608  bài
5-11-2008 10:21:17
1)Category
Error: CategoryTinTuc is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'News.cat_menu'. --->
.........
Vậy là sao??? Bạn debug giùm mình với!!!


Cái lỗi này có nghĩa là bạn chưa có file News.dll nằm trong /dotnetnuke/bin/news.dll Thực tế cái mà bạn nói là cài đặt thành công thì thực chất là chưa thành công đâu. Bạn vẫn thiếu công đoạn dịch mã nguồn ra file dll. Trong cai file zip mình gửi thì đó là mã nguồn chưa biên dịch, các bạn phải dịch được nó mới có thể dùng được. Hiện tại mình chưa làm bản cài đặt đầy đủ nên hơi bất tiện cho các bạn sử dụng.
---
Miệt mài, miệt mài ...
http://awas.vn
 
aspnet

Lập trình không biên giới
608  bài
5-11-2008 10:50:19

- Tạo cấu trúc bảng bằng cách chạy file cms.sql

- Copy thư mục News vào /Website/DesktopModules/News

- Trong thư mục News có 3 file news 'category.dnn', 'news content.dnn', 'news listing.dnn' chạy 3 file này bằng cách login với user host, vào Import Module Definition -> Import Manifest

- Copy 2 file news.dll và providers.dll vào /dotnetnuke/bin/


trong các bước này bạn còn làm thiếu 1 bước là copy 2 file news.dll và providers.dll vào bin.


---
Coding for food
 
fx111983


1  bài
12-11-2008 15:32:9

- Tạo cấu trúc bảng bằng cách chạy file cms.sql

- Copy thư mục News vào /Website/DesktopModules/News

- Trong thư mục News có 3 file news 'category.dnn', 'news content.dnn', 'news listing.dnn' chạy 3 file này bằng cách login với user host, vào Import Module Definition -> Import Manifest

- Copy 2 file news.dll và providers.dll vào /dotnetnuke/bin/


trong các bước này bạn còn làm thiếu 1 bước là copy 2 file news.dll và providers.dll vào bin.


---

- Ban co the cho bon minh xem cai demo duoc ko vay?
Coding for food
[/quote]
 
aspnet

Lập trình không biên giới
608  bài
12-11-2008 19:36:4
demo trên site http://thienan.vn
---
 
aspnet

Lập trình không biên giới
608  bài
12-11-2008 23:40:55
Để có thể triển khai ngon module CMS, thực tế chúng ta cần có 1 chút kiến thức về XSL.

1/ well-form (định dạng thẻ chuẩn) : có nghĩa là nếu có mở thẻ thì phải có đóng thẻ, không thì là lỗi.

Ví dụ :

<xsl:template match="/">
<table width="140" cellpadding="4" cellspacing="0">
<xsl:apply-templates select="/categories/category"></xsl:apply-templates>
</table>
</xsl:template>

<xsl:template> là thẻ template. có đóng thẻ là </xsl:template>

Nếu không có thẻ đóng thì phải có dạng như sau : <tag />

Tức là để vẽ các thẻ đặc biệt trong HTML ví dụ thẻ <br> xuống dòng thì trong XSL phải là <br />, và thẻ <hr> thì trong XSL viết <hr />
---
Coding for food
http://yenbai.awas.vn
http://tknd.vn
 
aspnet

Lập trình không biên giới
608  bài
12-11-2008 23:45:19
<xsl:template match="/">
<table width="140" cellpadding="4" cellspacing="0">
<xsl:apply-templates select="/categories/category"></xsl:apply-templates>
</table>
</xsl:template>

<xsl:template match="category">
<tr>
<td style="padding-left:6px;">
<a>
<xsl:attribute name="href"><xsl:value-of select="link"></xsl:value-of>
</xsl:attribute>
<xsl:value-of select="CatName"></xsl:value-of>
</a>
</td>
</tr>
</xsl:template>

Cái đoạn này sau khi transform chúng ta sẽ có kết quả như sau:

<table width="140" cellpadding="4" cellspacing="0">
<tr>
<td style="padding-left:6px;">
<a href="http://vnexpress.net>vnexpress</a>
</td>
</tr>
<tr>
<td style="padding-left:6px;">
<a href="http://vietnamnet.vn>Vietnamnet</a>
</td>
</tr>
</table>
Tức là thực tế là XSL làm việc transform tương đương với thay thế đoạn template bằng nội dung mới rồi ghép chúng lại với nhau.
---
Coding for food
http://yenbai.awas.vn
http://tknd.vn
 
aspnet

Lập trình không biên giới
608  bài
13-11-2008 0:0:34
<table width="140" cellpadding="4" cellspacing="0">

thì table là thẻ (tag) còn width là attribute và 140 là attribute_value

nên để ra được cái này

<a href="/">text text</a>

thì chúng ta phải viết thế này trong XSL

<a>
<xsl:attribute name="href">/</xsl:attribute>
text text
</a>

Thoả mãn tất cả các tiêu chí, có mở thẻ thì có đóng thẻ, muốn thêm attribute thì phang cái này vào

<xsl:attribute name="href">attribute_value</xsl:attribute>

Đơn giản không?

Tiếp theo sẽ là thẻ ảnh nhé

< img src="link vao day" border="0">

thì trong XSL sẽ là thế này

<img border="0">
<xsl:attribute name="src">
/portal/skins/coder/desktop/coder-logo2.jpg
</xsl:attribute>
</img>

Đấy thế thôi, còn lại những cái khác các bạn tự tìm hiểu, nghịch dần sẽ thấy XSL dễ không, ngoài ra còn thêm kỹ thuật sử dụng xsl:if nữa để rẽ nhánh thế là ngon.
---
 
aspnet

Lập trình không biên giới
608  bài
13-11-2008 0:3:52
Nói chung là biết làm XSL thì coi như bạn có thể sinh ra mọi loại html, và quên đi các control của dotnet, khó tùy biến.

Chúc các bạn tìm được nhiều thông tin bổ ích!
---
Coding for food
http://yenbai.awas.vn
http://tknd.vn
 
cyber


4  bài
9-12-2008 16:47:37
demo trên site http://thienan.vn
---

Ở Site ThienAn.VN, trường hợp click vào Menu "Dịch Vụ" -> Chả thấy gì cả.
 
aminpro


2  bài
6-1-2009 11:34:5
đã có modul tin tức bản beta 4.0 các bạn lên download về mà xài.
---
 
giangvan


9  bài
12-1-2009 9:5:43
demo trên site http://thienan.vn
---

Ở Site ThienAn.VN, trường hợp click vào Menu "Dịch Vụ" -> Chả thấy gì cả.
[/quote]

Bên quản trị nội dung họ chưa cập nhật thông tin gì thì làm sao thấy gì được ?
---
 
trung_vp1983

Dốt phải biết hỏi, Giỏi phải biết trả lời, không trả lời => Dốt
18  bài
21-2-2009 15:59:39

- Tạo cấu trúc bảng bằng cách chạy file cms.sql

- Copy thư mục News vào /Website/DesktopModules/News

- Trong thư mục News có 3 file news 'category.dnn', 'news content.dnn', 'news listing.dnn' chạy 3 file này bằng cách login với user host, vào Import Module Definition -> Import Manifest

- Copy 2 file news.dll và providers.dll vào /dotnetnuke/bin/


trong các bước này bạn còn làm thiếu 1 bước là copy 2 file news.dll và providers.dll vào bin.


---

- Ban co the cho bon minh xem cai demo duoc ko vay?
Coding for food
[/quote]
[/quote]
---
 
trung_vp1983

Dốt phải biết hỏi, Giỏi phải biết trả lời, không trả lời => Dốt
18  bài
21-2-2009 16:3:12
Anh Khánh ơi! Ở bước chạy 3 file news 'category.dnn', 'news content.dnn', 'news listing.dnn' em đăng nhập với quyền host, nhưng khi import thì chỉ control và manifest kô thấy xuất hiện những file trên. Em đã làm đầy đủ 2 bước kia rùi. Anh chỉ giáo giúp em. Thanks
---
 

Chủ đề gần đây :

Cùng loại :

Tên file Mô tả chi tiết Ngày
cr.zip (1680) Crystal report với dotnet 2.0 VS2005 C#.6/14/2008 10:09:41 PM
101Csharpsample.rar (532) 101 sample code in C# (easy to understand)6/13/2008 3:44:27 PM
CODE_vb.zip (405) VBNET Code sample, đơn giản dễ đọc, dễ hiểu.6/11/2008 9:12:24 PM
ajax.zip (607) ajax sample đơn giản với ajaxpro26/11/2008 6:02:11 PM
GenCode_cs.zip (353) Engine generate code C# (viết trên VB.NET)6/11/2008 9:27:18 AM
Num2String.zip (529) Đọc tiền từ số ra chữ (hữu dụng trong kế toán và bán hàng trực tuyến)6/11/2008 1:46:25 AM
DotNetNuke.zip (656) Mã nguồn dotnetnuke 4.6.2, module core.6/11/2008 12:56:02 AM
IniFile.zip (306) đọc và ghi file INI với vb.net6/9/2008 10:06:50 PM
ResXManager.zip (124) Resource Manager: sử dụng cho quản lý tài nguyên ảnh trong game Battle City. VB.Net6/9/2008 9:53:29 PM
BattleCity.zip (2270) Battle City, game nintedo với mã nguồn viết trên C# (bài tập hớn Agent Nguyễn Đức Khánh CNPM K45)6/9/2008 9:31:31 PM