Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Antoine 11/18/2008 9:55 AM
I just upload in the contrib repo a new version of the Cuyahoga.Modules.News module (https://cuyahogacontrib.svn.sourceforge.net/svnroot/cuyahogacontrib/Cuyahoga.Modules.News/trunk), it’s a little bit different than the oldest version, so be careful if you make an upgrade, back up your data first…

New feature:
- Category system to classify document
- Multy-image with thumbnail system
- Rendering of data throw templates, 3 different templates: Category, Document and document’s detail
- Tag cloud system
- rendering historical classification of document
- connection between different news module …

With this new version, you can rendering your data where you want in your web site and as you want using jquery plug-in, flash... have a look in this page for example of practice:
http://www.intervida.org/en/home.aspx (Blog, press release are using the News module)
http://www.intervida.org/unete/bolsa-de-trabajo.aspx (the list of job vacancies are using it to)

We would like for the next version add some new features like:
- Custom field manage
- Workflow and versioning system
- Rendering throw KML file for google heart
- Auto subject for tags field …

If someone have something that could be utile !!

Thank you..
# martijnb 11/18/2008 7:09 PM
Well done!
# DannyT 1/20/2009 1:08 AM
Just tried to open this in VS2008 and it fails without giving reason :( all the default cuyahoga modules have imported without issue. Can anyone suggest what the problem might be?
# kamchatka 5/6/2009 3:12 PM
Hi Antoine,

I have to include a news system in my website and, looking at intervida
links you gave, it is something similar... But two questions:

1. how can I enable the fact that when I click in news list, a new page with
full news contents? At my first try, the news full content are displayed in
the same page

2. I have to put a news list page inbetween, that is: a brief list of news in
homepage, I news dedicated page with list of all news using some filter
and finally a page for single news with full details; suggestions for this,
and about where to attach sections (to node or template)?

Thank you for attention,
K.
# hobbis 5/28/2009 6:27 PM
Hi Antoine,

I am having trouble installing then activating the module in Cuyahoga 1.6.

The error I get is:

There is a component already registered for the given key news.documentdao

Does anyone have any ideas?

I looked at the table and there is row with that in.

Thanks.
# Constructor 5/28/2009 7:29 PM
Do you have an earlier version of the module already installed?

If not there seems to be an entry in the database (moduleservice table?) that is using the same key as the news module.
# hobbis 5/28/2009 11:25 PM
Thanks for reply constructor. I unistalled it and the table cleared so nothing is in it now. Re-installed fine. Then make active and it fails with the same error again.

I'll look into it more and see if I can find anything else causing the problem...
# hobbis 5/29/2009 12:43 AM (edited 5/29/2009 1:22 AM)
No couldn't get around it. I managed to clear the cuyahoga_moduleservice table to activate it but then I was able to add it to almost add it to a section but save failed saying these errors:
Cuyahoga.Modules.News.DataAccess.IBookmarkDao which was not registered. - Cuyahoga.Modules.News.DataAccess.IFilesDao which was not registered. - Cuyahoga.Modules.News.DataAccess.ICategoryDao which was not registered. - Cuyahoga.Modules.News.DataAccess.IDocumentDao which was not registered. - Cuyahoga.Core.Extensions.Services.Rss.IRssRender which was not registered. - Cuyahoga.Modules.News.DataAccess.ITagDao which was not registered. - Cuyahoga.Modules.News.DataAccess.INewsimageDao which was not registered. - Cuyahoga.Modules.News.DataAccess.IConfigDao which was not registered. - Cuyahoga.Modules.News.DataAccess.ICommentsDao which was not registered. 

I tried adding these to the services.config but this didn't help.

Why am I having problems activating the module? It's all about the Dao's but not sure why.

When I refresh the Modules.aspx page:

I get this error too:
ERROR 500:
There is a component already registered for the given key news.documentdao

and this was in the log for when I tried to activate the module:
2009-05-29 00:20:59,521 [7] INFO  Cuyahoga.Web.HttpHandlers.PageHandler [(null)] <(null)> - Starting request for /admin/Modules.aspx
2009-05-29 00:20:59,552 [7] INFO  Cuyahoga.Web.HttpHandlers.PageHandler [(null)] <(null)> - Request finshed. Total duration: 15 ms.
2009-05-29 00:21:02,521 [12] INFO  Cuyahoga.Web.HttpHandlers.PageHandler [(null)] <(null)> - Starting request for /admin/Modules.aspx
2009-05-29 00:21:02,536 [12] INFO  Cuyahoga.Web.HttpHandlers.PageHandler [(null)] <(null)> - Request finshed. Total duration: 15 ms.
2009-05-29 00:21:04,286 [9] INFO  Cuyahoga.Web.HttpHandlers.PageHandler [(null)] <(null)> - Starting request for /admin/Modules.aspx
2009-05-29 00:21:04,286 [9] DEBUG Cuyahoga.Web.Components.ModuleLoader [(null)] <(null)> - Loading module Cuyahoga.Modules.News.NewsModule, Cuyahoga.Modules.News.
2009-05-29 00:21:04,286 [9] DEBUG Cuyahoga.Web.Components.ModuleLoader [(null)] <(null)> - Loading module service news.documentdao, (1).
2009-05-29 00:21:04,286 [9] INFO  Cuyahoga.Web.HttpHandlers.PageHandler [(null)] <(null)> - Request finshed. Total duration: 0 ms.
# Constructor 5/29/2009 7:23 PM
I have just done a quick test with the News module on my build.

I had to make a few changes like:

using Category = Cuyahoga.Modules.News.Domain.Category;

and the Action to ModuleAction rename changes. It installs and activates fine here. I tried to add it to a section and it did (although it then threw an error because I did not make the changed to the template). So it is fine.

The only thing I can think of is that these services are not being added to your database on install:
DECLARE @moduletypeid int
DECLARE @ExistServive int

SELECT @moduletypeid = moduletypeid FROM cuyahoga_moduletype WHERE assemblyname = 'Cuyahoga.Modules.News';

INSERT INTO cuyahoga_moduleservice (moduletypeid, servicekey, servicetype, classtype) 
VALUES (@moduletypeid, 'news.documentdao', 'Cuyahoga.Modules.News.DataAccess.IDocumentDao, Cuyahoga.Modules.News', 'Cuyahoga.Modules.News.DataAccess.DocumentDao, Cuyahoga.Modules.News')

INSERT INTO cuyahoga_moduleservice (moduletypeid, servicekey, servicetype, classtype) 
VALUES (@moduletypeid, 'news.commentsdao', 'Cuyahoga.Modules.News.DataAccess.ICommentsDao, Cuyahoga.Modules.News', 'Cuyahoga.Modules.News.DataAccess.CommentsDao, Cuyahoga.Modules.News')

INSERT INTO cuyahoga_moduleservice (moduletypeid, servicekey, servicetype, classtype) 
VALUES (@moduletypeid, 'news.filesdao', 'Cuyahoga.Modules.News.DataAccess.IFilesDao, Cuyahoga.Modules.News', 'Cuyahoga.Modules.News.DataAccess.FilesDao, Cuyahoga.Modules.News')

INSERT INTO cuyahoga_moduleservice (moduletypeid, servicekey, servicetype, classtype)
VALUES (@moduletypeid, 'news.bookmarkdao', 'Cuyahoga.Modules.News.DataAccess.IBookmarkDao, Cuyahoga.Modules.News', 'Cuyahoga.Modules.News.DataAccess.BookmarkDao, Cuyahoga.Modules.News')

INSERT INTO cuyahoga_moduleservice (moduletypeid, servicekey, servicetype, classtype)
VALUES (@moduletypeid, 'news.rssrender', 'Cuyahoga.Core.Extensions.Services.Rss.IRssRender, Cuyahoga.Core.Extensions', 'Cuyahoga.Core.Extensions.Services.Rss.utilrssargotic, Cuyahoga.Core.Extensions')

INSERT INTO cuyahoga_moduleservice (moduletypeid, servicekey, servicetype, classtype)
VALUES (@moduletypeid, 'news.tagcloud', 'Cuyahoga.Modules.News.DataAccess.ITagDao, Cuyahoga.Modules.News', 'Cuyahoga.Modules.News.DataAccess.TagDao, Cuyahoga.Modules.News')

INSERT INTO cuyahoga_moduleservice (moduletypeid, servicekey, servicetype, classtype)
VALUES (@moduletypeid, 'news.configDao', 'Cuyahoga.Modules.News.DataAccess.IConfigDao, Cuyahoga.Modules.News', 'Cuyahoga.Modules.News.DataAccess.ConfigDao, Cuyahoga.Modules.News')

INSERT INTO cuyahoga_moduleservice (moduletypeid, servicekey, servicetype, classtype)
VALUES (@moduletypeid, 'news.categorydao', 'Cuyahoga.Modules.News.DataAccess.ICategoryDao, Cuyahoga.Modules.News', 'Cuyahoga.Modules.News.DataAccess.CategoryDao, Cuyahoga.Modules.News')

INSERT INTO cuyahoga_moduleservice (moduletypeid, servicekey, servicetype, classtype)
VALUES (@moduletypeid, 'news.newsimagedao', 'Cuyahoga.Modules.News.DataAccess.INewsimageDao, Cuyahoga.Modules.News', 'Cuyahoga.Modules.News.DataAccess.NewsimageDao, Cuyahoga.Modules.News')
GO

Otherwise I can not think of anything. This exercise has made me get the news module working on my equivalent trunk build anyway :)
# hobbis 5/29/2009 11:38 PM
Interesting. I can see the moduleservice table has these entries in there. I changed the Action to ModuleAction as it didn't compile without those but maybe there is something else? What version of Cuyahoga are you running? And what did you mean about changing the Category bit?

I wonder if it is something to do with the fact that before 1.5 modules were loaded up dynamically rather than on application startup.

I think the News module was meant for 1.1.2.

Are you using MySQL?


# Constructor 5/30/2009 1:00 AM (edited 5/30/2009 1:03 AM)
'Category' is an ambiguous reference between 'Cuyahoga.Core.Domain.Category' and 'Cuyahoga.Modules.News.Domain.Category' so I got around this by being more explicit in the directive:

using Category = Cuyahoga.Modules.News.Domain.Category;

This had to be added to a few pages.

Also 'Action' had to be renamed to 'ModuleAction' and 'ActionCollection' to 'ModuleActionCollection' for the same reason: ('Action' is an ambiguous reference between 'System.Action' and 'Cuyahoga.Core.Communication.Action').

I am using what is essentially the tunk although it is customised a bit (it is still 100% compatible).

Also I am using SQL server 2008. The news module seems fine on this, although I have not done much testing.
# hobbis 5/30/2009 1:32 AM
Ok, all seems to make sense and the tables look fine. I'll have to have another look at it (getting late).

Anyway, I acheived what I wanted to do on this site: http://www.gardnermarine.com

where I have a main news page with articles items but I also wanted to pull exactly 2 items from the same content and display them on the home page too. Like a teaser.

the RemoteContent Module in conjunction with the Articles syndicatable abilities worked fine to acheive this.

Pity I cannot get News working though. It looks very extensive.
# YKS 6/20/2009 5:46 PM
This module develop by intervida web team.

We work now in 1.4 version of this module with facebook connect support and SEO capacities.
# mejner 6/30/2009 9:11 AM
DannyTJust tried to open this in VS2008 and it fails without giving reason :( all the default cuyahoga modules have imported without issue. Can anyone suggest what the problem might be?

Any news on opening the module in VS2008?
# banderson 9/16/2009 7:14 PM
Hey mejner,

I just stumbled across this post while trying to import the News module into 2008, and I found a solution to the problem. I'm not sure if you ever solved it, but I wanted to add it here for future reference:

You need to comment out the ProjectExtensions section towards the bottom of the .csproj file before the migration. Once I did that everything imported successfully!

-Ben
# jernejl 3/17/2010 5:06 PM
Hey banderson,

Thanks for the tip!!