an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Multiple Content Group problem
Last Post 10/30/2008 9:32:12 AM By Newmedia Design. 4 replies.
10/30/2008 6:47:26 AM
Newmedia Design
Posts: 65
Joined: 9/25/2008
Multiple Content Group problem
Hi
 
When i add an article to multiple content groups I get an error but when i add the article to one group its fine. Is there anything I can do to fix this?
 
Thanks
 
Here is the error.
 
Server Error in '/' Application.
Sequence contains more than one matching element
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Sequence contains more than one matching element
Source Error:
Line 147:                        else
Line 148:                            preArticle.Groups = groups;
Line 149:                        preArticle = articles.Single(a => a.ArticleId == ga.ArticleId);
Line 150:                        groups = new List<Group>();
Line 151:                    }

Source File: c:\Inetpub\wwwroot\DotShoppingCartSuiteV2.53\DotShoppingCartSuiteV2.53\Web\View\ArticleListControl.ascx.cs    Line: 149
Stack Trace:
10/30/2008 8:21:01 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Multiple Content Group problem
I can add article to muliple content groups just fine. Are these content goups parent and chlid? If so, try just adding it to the child. The parent content group contains all the child content groups automatically.
DotShoppingCart Staff
10/30/2008 8:30:23 AM
Newmedia Design
Posts: 65
Joined: 9/25/2008
Re: Multiple Content Group problem
Thanks Lukezy
 
The problem occurs when i added the article to a parent and child group. If i add to just 2 child groups it works fine.
I have another question in relation to articles. I have created a news page where i have added the article list block. Using this edit option i have disabled view author, date etc but when i go to the full article page i dont have the option to hide the author,date etc. Is there away of doing this as the date and author etc are displayed on this page?
10/30/2008 9:25:39 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Multiple Content Group problem
Yes, we could add this functionality to the next version. Would you please add a feature request to here so that we can get this scheduled?
 
As the workaround you can open up Web\View\ArticleControl.ascx.cs and set the properties "HideAuthor, HideCreatedTime" directly.
DotShoppingCart Staff
10/30/2008 9:32:12 AM
Newmedia Design
Posts: 65
Joined: 9/25/2008
Re: Multiple Content Group problem
Thanks Lukezy