ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Get EE to show archives as per ...

April 28, 2009 6:02am

Subscribe [3]
  • #1 / Apr 28, 2009 6:02am

    shahW

    12 posts

    Greetings fellow EE-ians ,


    I have a couple of question today, just wondering if you guys could point me to the right direction 😊

    FYI - I only have the EE core v1.6.7. And definitely will be upgrading to personal / commercial as soon as I’m off the training wheels.

    Q #1 - I’m looking for a way for EE to return me weblog archives in the following scenario. Let’s say I have 10 entries in 2009, 20 entries in 2008 and XX entries in 2007 so forth. How do I get EE to return the year *once* only as per example below

    --------------------------------------------------------------------
    
    2009       19 Mar      Entry title 5        Excerpt    commentNumber
    
               13 Mar      Entry title 4        Excerpt    commentNumber
    
               10 Feb      Entry title 3        Excerpt    commentNumber
    
                3 Jan      Entry title 2        Excerpt    commentNumber
    
    --------------------------------------------------------------------
    
    2008       19 Mar      Entry title 5        Excerpt    commentNumber
    
               13 Mar      Entry title 4        Excerpt    commentNumber
    
    --------------------------------------------------------------------
    
    2007       19 Mar      Entry title 5        Excerpt    commentNumber
    
               13 Mar      Entry title 4        Excerpt    commentNumber

    Q #2 - How can I retrieve no. of comments for each entry?


    ExpressionEngine newbie here, please pardon for not knowing exactly the terms I should be searching for on the forum.

    Thanks in Advance

    -sw

  • #2 / Apr 28, 2009 9:06am

    Boyink!

    5011 posts

    This plugin might do the trick.

  • #3 / Apr 28, 2009 9:46am

    shahW

    12 posts

    Hi Mike,

    Thanks for the plugin info.😊

    Do you or anybody else happen to know the answer for Question 2?

    thanks

  • #4 / Apr 28, 2009 9:56am

    Ingmar

    29245 posts

    Have you considered using {comment_total}? Otherwise, a custom query might be the easiest way.

  • #5 / Apr 28, 2009 11:29am

    shahW

    12 posts

    Ingmar,

    yes I did. However, it does not work with {exp:weblog:category_archive}. Or maybe I could just do away with it. I need to play more with EE.

    Thanks
    -sw

  • #6 / Apr 28, 2009 12:03pm

    Ingmar

    29245 posts

    No, it does not, it’s available only in exp:weblog:entries. So, I suggest a custom query using COUNT. Shouldn’t be too difficult.

  • #7 / Apr 28, 2009 9:57pm

    shahW

    12 posts

    Isn’t the Query module only available on Personal/Commercial EE? Currently, I’m only using the core.

  • #8 / Apr 29, 2009 2:13am

    Ingmar

    29245 posts

    That’s right, the query module is not available in EE Core, so you’d probably have to use some PHP.

  • #9 / May 26, 2009 11:30am

    shahW

    12 posts

    Would someone help me with the question below? I’ve tried playing with exp:query unfortunately I’m not much of a programmer.

    Q #1 - I’m looking for a way for EE to return me weblog archives in the following scenario. Let’s say I have 10 entries in 2009, 20 entries in 2008 and XX entries in 2007 so forth. How do I get EE to return the year *once* only as per example below

    --------------------------------------------------------------------
    
    2009       19 Mar      Entry title 5        Excerpt    commentNumber
    
               13 Mar      Entry title 4        Excerpt    commentNumber
    
               10 Feb      Entry title 3        Excerpt    commentNumber
    
                3 Jan      Entry title 2        Excerpt    commentNumber
    
    --------------------------------------------------------------------
    
    2008       19 Mar      Entry title 5        Excerpt    commentNumber
    
               13 Mar      Entry title 4        Excerpt    commentNumber
    
    --------------------------------------------------------------------
    
    2007       19 Mar      Entry title 5        Excerpt    commentNumber
    
               13 Mar      Entry title 4        Excerpt    commentNumber

    Q #2 - How can I retrieve no. of comments for each entry?


    Thanks in Advance

    -sw[/quote]

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases