Return-Path: Delivered-To: apmail-roller-user-archive@www.apache.org Received: (qmail 29802 invoked from network); 19 Feb 2009 21:48:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2009 21:48:19 -0000 Received: (qmail 92123 invoked by uid 500); 19 Feb 2009 21:48:18 -0000 Delivered-To: apmail-roller-user-archive@roller.apache.org Received: (qmail 92101 invoked by uid 500); 19 Feb 2009 21:48:18 -0000 Mailing-List: contact user-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@roller.apache.org Delivered-To: mailing list user@roller.apache.org Received: (qmail 92090 invoked by uid 99); 19 Feb 2009 21:48:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 13:48:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of snoopdave@gmail.com designates 209.85.217.178 as permitted sender) Received: from [209.85.217.178] (HELO mail-gx0-f178.google.com) (209.85.217.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 21:48:12 +0000 Received: by gxk26 with SMTP id 26so1732672gxk.21 for ; Thu, 19 Feb 2009 13:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=N5sJR9X/CohfaMyPQYId63VqM0KadFYqJPZStZvgpac=; b=i1t6BQunxglmD2BaAPFJpnmwLxNTJFyItt1gzHjkMIM/thvk7mI3eoH/1dZTBmFvOT t/i0fa3KT6FkcqdYjEdT5y2NXSME8W1x0g3FIW2b/uWicyd0o/pMkRY3AVrlTEhbVQIb QQtB2zM5VuIco7CS3pacilFA8IOdPgtwCPFRo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=xbFNFwRjGEyMESKa6zHmtSQZpMrmPi2qAeneKedRhISuqB1i9qrsbn+8p+LXH2CmIC vgAqAYsn5cU4o/NAqTABbnGt/SBI56an/auGBSUyPjIQNJLBjhqRkyWdgfqyNaxiBU+3 THxv1ml6QI+eubXR7GL9oMxxiQFCmPo4dAnuQ= MIME-Version: 1.0 Received: by 10.100.135.16 with SMTP id i16mr56872and.99.1235080069858; Thu, 19 Feb 2009 13:47:49 -0800 (PST) In-Reply-To: <000801c99291$9310ba30$b9322e90$@com> References: <011001c98eda$96cef4d0$c46cde70$@com> <8fb9ac720902161203pdd4893bmd78a2338c63e8bed@mail.gmail.com> <022501c990c5$118d74d0$34a85e70$@com> <8fb9ac720902180646s798e3505nf7a7d2ec720e4754@mail.gmail.com> <000801c99291$9310ba30$b9322e90$@com> Date: Thu, 19 Feb 2009 16:47:49 -0500 Message-ID: <8fb9ac720902191347q7e84102en21a6c2b0e8bd50c8@mail.gmail.com> Subject: Re: Tags From: Dave To: user@roller.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Feb 19, 2009 at 7:57 AM, Odelya YomTov wrote: > I understood the idea behind separating front page and tags index. > But if I separate it, how can I use the $site object in a tags index that is > not a front page? I have Enable aggregated site-wide frontpage. It is possible to use any model in any weblog. There are two ways to do it: 1) add the model class name to the appropriate list of models in your roller-custom.properties file. 2) login as a global admin user, edit the Weblog Settings of the blog where you want to use the model and add the model class name (e.g. ) to the "Comma-separated list of custom page model classes to be loaded for this weblog." The classname of the $site model is "org.apache.roller.weblogger.ui.rendering.model.SiteModel". Hope that helps... - Dave > -----Original Message----- > From: Dave [mailto:snoopdave@gmail.com] > Sent: Wednesday, February 18, 2009 4:47 PM > To: user@roller.apache.org > Subject: Re: Tags > > On Tue, Feb 17, 2009 at 1:00 AM, Odelya YomTov wrote: >> Now, when I point it to my site + /tags/harris it shows the tags. >> but when it's on my site only > > I'm not sure I understand. > > Is the page where you call $site.getWeblogEntriesPager(365, 30) a > tagsIndex page? > > Do you have "Enable aggregated site-wide frontpage" enabled? > > >> it shows the last 30 entries with I don't want to display. > > You can change 30 to whatever number you want, or -1 for no limit (not > advisable). > > >> I want to display the titles only in case that the url is with > /tags/harris >> etc. How can I distinguish if the user from clicking on a tag, or if it's > simply >> the main page? > > You should have a separate Weblog page as the main page of your site > and a tagsIndex page for displaying entries in one tag. > > Hope that helps... > > - Dave > > > >> -----Original Message----- >> From: Dave [mailto:snoopdave@gmail.com] >> Sent: Monday, February 16, 2009 10:03 PM >> To: user@roller.apache.org >> Subject: Re: Tags >> >> On Sat, Feb 14, 2009 at 2:29 PM, Odelya YomTov wrote: >>> I have a problem that I am trying to solve for quite a long time. >>> I want to display tags for all the site. >>> So I use the method: >>> $site.getPopularTags(-1, 10) >>> >>> #foreach ($tag in $mytags) >>> href="$url.tag($tag.name)">$tag.name >>> #end >> >> OK. Good. Make sure that is the tempate that your main blog's tagsIndex >> page. >> >> >>> The URL points to my site + /tags/harris etc.. >> >> Good. >> >> >>> In the site I have the following code: >>> #set($pager = $model.getWeblogEntriesPager()) >>> #set($map = $pager.getEntries()) >>> #if ($map.keySet().size()!=0) >>> #foreach($day in $map.keySet()) >>> #set($entries = $map.get($day)) >>> #foreach($entry in $entries) >>> $entry.title >>> #end >>> #end >>> #end >>> >>> But it doesn't display the entries with the tags as I would expect! >>> $model.getWeblogEntriesPager() - retruns an empty pager. >>> (I saw an example in http://blogs.sun.com/) >>> What do I need to change in the main blog's code so it would work? >> >> Site wide pagers work a little differently. They don't divide entries >> up into a day map. >> >> Try this instead: >> >> #set($pager = $site.getWeblogEntriesPager(365, 30)) >> #foreach($entry in $pager.getItems()) >> $entry.title >> #end >> >> Where 365 is the number of days back in time you wish to go (or -1 for >> no limit), and 30 is the max number of entries you want. >> >> - Dave >> >> >> >> >> >> > **************************************************************************** >> ******** >> This footnote confirms that this email message has been scanned by >> PineApp Mail-SeCure for the presence of malicious code, vandals & computer >> viruses. >> > **************************************************************************** >> ******** >> >> >> >> >> > > > > > > **************************************************************************** > ******** > This footnote confirms that this email message has been scanned by > PineApp Mail-SeCure for the presence of malicious code, vandals & computer > viruses. > **************************************************************************** > ******** > > > > >