Hi Dave Thank you for the answer. I created an iframe under http://cgis.jpost.com/Blogs/mandell/pages/mostpopular.html (where mandell is another blog name) but when I display it in iframe in the theme as <iframe src="http://cgis.jpost.com/Blogs/mandell/pages/mostpopular.html" frameborder="0" /> it only displays the code itself and doesn't generate the comments from it! It displays: #set ($theEntries = $site.getMostCommentedWeblogEntries(null,7,5)) #if ($theEntries.size() > 0) <div class="bord_out"> <div class="bord_in"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valing="top" class="smallTxt140"> <h4 class="topstory" style="margin-bottom:5px">Most Popular</h4> <div class="mostpop"> <ol> #set ($entriesLast10Days = $site.getWeblogEntriesPager(7,100)) #set ($entriesLast10DaysItems = $entriesLast10Days.getItems()) Etc..
(I removed it off the site so it wouldn't display it now) What could be the problem? Thanks Odelya -----Original Message----- From: Dave [mailto:[email protected]] Sent: Thursday, April 30, 2009 12:17 AM To: [email protected] Subject: Re: Problem with $site.getWeblogEntriesPager I think the problem is that two pagers do not work well on one page together because both show the page indicated by the request parameter "page." That's a problem because when you're on page 5 of the blog it doesn't mean you are on page 5 of the sidebar listing of most-commented-entries. You could solve this by fetching the data for the most-commented-entries list from Roller, then using JavaScript or an iframe to display them in the sidebar of your page. The iframe idea is the easiest for me to explain. You create a simple page template with the $site.getMostCommented...() call and just enough HTML and to display the comments. Then you use a borderless iframe to display it in the sidebar of your page: <iframe src="http://cgis.jpost.com/Blogs/otherview/pages/mostcommented.html" frameborder="0" /> That way, the most-commented pager won't see the page request parameter at all. - Dave On Tue, Apr 28, 2009 at 11:33 AM, Odelya YomTov <[email protected]> wrote: > I have this blog: > > http://cgis.jpost.com/Blogs/otherview/ > > I display in the right column Most Popular box that displays the most 7 > commented posts. > The problem is that on the first page of a blog, it works fine, but from the > second page it doesn't work!! > > http://cgis.jpost.com/Blogs/otherview/?page=1 > > the code is: > #set ($theEntries = $site.getMostCommentedWeblogEntries(null,7,5)) > #if ($theEntries.size() > 0) > #set ($entriesLast10Days = $site.getWeblogEntriesPager(7,100)) > #set ($entriesLast10DaysItems = $entriesLast10Days.getItems()) > ... > ... > #end > > $site.getWeblogEntriesPager from the second page returns no items! It's very > weired.. > > Why is it? > > Odelya > > > **************************************************************************** ******** This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. **************************************************************************** ********
