Yearly Archive Plugin problems
Posted: 02 October 2009 04:37 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  70
Joined  02-02-2006

Have two problems, I am hoping someone can assist me with.

I am using the Yearly Archive Plugin to split out the left navigation archive section,
http://life.cc/index.php/media_arts/online_sermons/category/corporate_podcast

The first problem is, it starts with January, even though I have start_month=“1” sort=“desc” in the parameters. I would prefer it to start with the latest month with entries (currently September)

The second problem. If you go to any of the last three categories (The Journey, The Source or Fusion) notice, it is splitting out additional lines <li></li>  Only seems to happen when there is are no entries on some months.

Any help would be appreciated.

<ul id="nav_categories">

<?php
$ctg
= "{segment_4}";
global
$DB;
$results = $DB->query("SELECT cat_id FROM exp_categories WHERE cat_url_title = '$ctg'  AND group_id ='8'");
$ctg_id = $results->row['cat_id'];
?>

{exp
:yearly_archives weblog="podcasts" start_month="1" sort="desc" category="<?php echo $ctg_id; ?>" }
     {if entries_in_year
> 0}
{if leap_year
== 1}  <li><a href="">{year}</a>{if:else}  <li><a href="">{year}</a>{/if}


  
<ul>{months}
      
<li>
        
{if num_entries != 0}
          
<a href="{path=/media_arts/online_sermons/category/{segment_4}/}{year}/{month_num}/">{month}</a>
        
{/if}
      
</li>{/months}
    
</ul>

  </
li>
{/exp:yearly_archives}

{
!--This conditional will create a show all posts link only if an archive link was selected --}
{if segment_5
!=""}
    
<li><a href="{site_url}index.php/media_arts/online_sermons/category/{segment_4}">Show All</a></li>
{/if}

</ul>
Profile
 
 
Posted: 02 March 2010 11:23 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  98
Joined  03-13-2009

hello I’m using this plugin as well and I found that it doesnt display entries from this (2010) year. It does display however entries from 2008 and 2009.
I have entries from 2008, 2009 and 2010, which are poping out with EE build in Monthly archive tag.
Some help will be appreciated .

Profile
 
 
   
 
 
‹‹ New Line to <p>      Plugin: Image Info ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120170 Total Logged-in Users: 45
Total Topics: 126297 Total Anonymous Users: 23
Total Replies: 664219 Total Guests: 337
Total Posts: 790516    
Members ( View Memberlist )