These are chat archives for OrchardCMS/Orchard

12th
Mar 2017
jiangyo4
@jiangyo4
Mar 12 2017 14:24
How to add Count() method on my content type in orchard?
I have a content type named "News" with title;body; autoroute and text field. I have 2 problems: 1.To Count value of content items by text field named Author( can't use taxonomy terms)
  1. To Count total sum of content items by Date (from 2017-01-01 to 2017-12-31)
    Now,I want add Count() method on my content type. so I can filter;sort and Projection. How to do it?or do you have the better method for it? Thanks!
siyamandayubi
@siyamandayubi
Mar 12 2017 15:05
@jiangyo4 take a look at the Orchard.Reporting module in the gallery. I implemented something similar there.
jiangyo4
@jiangyo4
Mar 12 2017 16:32
@siyamandayubi Thanks! I will try it.
TemperedEnterprises
@TemperedEnterprises
Mar 12 2017 17:37
is building orchard supposed to be as simple as downloading the source and hitting build?
siyamandayubi
@siyamandayubi
Mar 12 2017 17:42
@Tallmaris yep
TemperedEnterprises
@TemperedEnterprises
Mar 12 2017 17:42
mine didn't work :(
i am using visual studio 2015
jiangyo4
@jiangyo4
Mar 12 2017 17:58
@siyamandayubi your Reporting module is great. It is very help to me .but,I want a bar charts.please help me. thanks!
siyamandayubi
@siyamandayubi
Mar 12 2017 19:31
@jiangyo4 the module uses jqplot which supports many charts. It is not a big deal to add supports for the other plots or replace piechart with bar chart
@TemperedEnterprises sometimes you must build the solution twice as the first build failed due to lack of some dependencies. But the second build will be successful