Embed News Archive box into comic page?

Working on a new template and need help? Come here for support.

Moderator: Help Desk Team

Embed News Archive box into comic page?

Postby bomango » January 9th, 2018, 6:21 pm

I'd like to be able to show the most recent news post links in a sidebar on the comics pages. I tried copying this block from the news template into the comic template but it does nothing on page load except show the text "News Archive":
Code: Select all
<div class="header">News Archive</div>
      
         <ul class="months">
         
            <!-- BEGIN loop_months -->
            <li><a href="{loop_months.MONTH_LINK}">{loop_months.MONTH}</a></li>
   
            <!-- BEGIN loop_posts -->
            
               <!-- BEGIN switch_selected_post -->
               <li class="post-item selected">
               <!-- END switch_selected post -->
            
               <!-- BEGIN switch_unselected_post -->
               <li class="post-item">
               <!-- END switch_unselected_post -->
   
                  <a href="{loop_months.loop_posts.LINK}">{loop_months.loop_posts.TITLE}</a>
                  
               </li>
               
            <!-- END loop_posts -->
            <!-- END loop_months -->
         
         </ul>
      
      </div>

Am I doing it incorrectly, or is the site code unable to use this template code outside the News page template? Is there another way I should be doing this?
User avatar
bomango
 
Posts: 11
Joined: November 17th, 2017, 10:09 pm

Re: Embed News Archive box into comic page?

Postby eishiya » January 9th, 2018, 7:11 pm

The news template stuff is only available on the news page, so you can't embed it elsewhere.
Image
User avatar
eishiya
 
Posts: 9769
Joined: December 5th, 2009, 11:17 am


Return to Template Development & Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron