2 users online. Create an account or sign in to join them.Users
Stats from a Data Source
This is an open discussion with 3 replies, filed under General.
Search
- Try just including the pagination in your output, you can use the
total-entriesto get all the entries that match your filter. - Agreed, that’s why you’ll just output the pagination
later than last yearshould work. It’s a little known secret that whatever you filter on data fields is usesstrtotimein the backend
You can also use the Global Parameter Loader extension to add parameters to Symphony’s parameter pool for datasource filtering.
OK, that is fantastic. I knew there had to be a far more elegant (and obvious) solution…never had a reason to use pagination up to this point. Thanks a bunch!
Re: the date, I tried later than last year and it returned everything, not just the stuff from 2010. If I use later than 2009-12-31 it works. I agree that this is supported by PHP’s strtotime though, so I can’t imagine why it wouldn’t work…
One more question: I need to do some analysis on the content in all entries in a section, such as the number of occurrences of a specific word in a text input field. Is there a sneaky way to do something like this without resorting to processing it all with XSL?
Create an account or sign in to comment.
Hi all,
I’m trying to figure out the optimal solution to get stats about content in sections. I’m using XML Importer to bring in lots of content, and I want to output simple statistics such as the number of entries dated within the current year.
My current solution is to dump the content out with a data source and then use the XPath count() function to obtain the number of entries. There are a few problems with this approach:
any suggestions would be greatly appreciated, thanks in advance!