You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Odelya YomTov-Glick <od...@jpost.com> on 2008/04/27 11:57:42 UTC
get weblog by month
Hi,
I would like to get all weblogs' entries by month and year.
What is the best way to do it?
Odelya YomTov - Glick
RE: get weblog by month
Posted by Odelya YomTov-Glick <od...@jpost.com>.
You are right. It doesn't return by day and month. Only between specific
dates.
I will look into implementing something else.
Thanks
-----Original Message-----
From: Dave [mailto:snoopdave@gmail.com]
Sent: Monday, April 28, 2008 3:26 PM
To: user@roller.apache.org
Subject: Re: get weblog by month
On Mon, Apr 28, 2008 at 3:38 AM, Odelya YomTov-Glick <od...@jpost.com>
wrote:
> When I opened the link to WeblogManager I saw that class
> JPAWeblogManagerImpl has a method for it. Does it implement it?
Yes, each of the manager interfaces has an implementation.
Do you see methods in WeblogManager that provide the results you are
looking for? There are methods that return entries between a start
date and an end date.
- Dave
> -----Original Message-----
> From: Dave [mailto:snoopdave@gmail.com]
> Sent: Sunday, April 27, 2008 5:28 PM
> To: user@roller.apache.org
> Subject: Re: get weblog by month
>
> On Sun, Apr 27, 2008 at 5:57 AM, Odelya YomTov-Glick <od...@jpost.com>
> wrote:
> > I would like to get all weblogs' entries by month and year.
> > What is the best way to do it?
> > Odelya YomTov - Glick
>
> Roller doesn't support those types of queries out of the box.
>
> But... internally Roller does support queries for retrieving entries
> by date, see the WeblogManager interface (http://tinyurl.com/4fkyqe)
> for example, so making this information available in page templates is
> possible but you'll have to do a little programming.
>
> If you do have some Java programming skills you could create a new
> Page Model that could appear in template with a name like $archive and
> could return the type of information you want. There is some
> information about creating a Page Model in my Advanced Roller
> presentation on pages 50-53.
>
>
>
http://people.apache.org/~snoopdave/presentations/advanced-roller-aceu2008.p
> df
>
> If you want to try this I can provide more information.
>
> - 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.
****************************************************************************
********
Re: get weblog by month
Posted by Dave <sn...@gmail.com>.
On Mon, Apr 28, 2008 at 3:38 AM, Odelya YomTov-Glick <od...@jpost.com> wrote:
> When I opened the link to WeblogManager I saw that class
> JPAWeblogManagerImpl has a method for it. Does it implement it?
Yes, each of the manager interfaces has an implementation.
Do you see methods in WeblogManager that provide the results you are
looking for? There are methods that return entries between a start
date and an end date.
- Dave
> -----Original Message-----
> From: Dave [mailto:snoopdave@gmail.com]
> Sent: Sunday, April 27, 2008 5:28 PM
> To: user@roller.apache.org
> Subject: Re: get weblog by month
>
> On Sun, Apr 27, 2008 at 5:57 AM, Odelya YomTov-Glick <od...@jpost.com>
> wrote:
> > I would like to get all weblogs' entries by month and year.
> > What is the best way to do it?
> > Odelya YomTov - Glick
>
> Roller doesn't support those types of queries out of the box.
>
> But... internally Roller does support queries for retrieving entries
> by date, see the WeblogManager interface (http://tinyurl.com/4fkyqe)
> for example, so making this information available in page templates is
> possible but you'll have to do a little programming.
>
> If you do have some Java programming skills you could create a new
> Page Model that could appear in template with a name like $archive and
> could return the type of information you want. There is some
> information about creating a Page Model in my Advanced Roller
> presentation on pages 50-53.
>
>
> http://people.apache.org/~snoopdave/presentations/advanced-roller-aceu2008.p
> df
>
> If you want to try this I can provide more information.
>
> - Dave
>
>
>
>
>
> ****************************************************************************
> ********
> This footnote confirms that this email message has been scanned by
> PineApp Mail-SeCure for the presence of malicious code, vandals & computer
> viruses.
> ****************************************************************************
> ********
>
>
>
>
>
RE: get weblog by month
Posted by Odelya YomTov-Glick <od...@jpost.com>.
When I opened the link to WeblogManager I saw that class
JPAWeblogManagerImpl has a method for it. Does it implement it?
Thanks!
-----Original Message-----
From: Dave [mailto:snoopdave@gmail.com]
Sent: Sunday, April 27, 2008 5:28 PM
To: user@roller.apache.org
Subject: Re: get weblog by month
On Sun, Apr 27, 2008 at 5:57 AM, Odelya YomTov-Glick <od...@jpost.com>
wrote:
> I would like to get all weblogs' entries by month and year.
> What is the best way to do it?
> Odelya YomTov - Glick
Roller doesn't support those types of queries out of the box.
But... internally Roller does support queries for retrieving entries
by date, see the WeblogManager interface (http://tinyurl.com/4fkyqe)
for example, so making this information available in page templates is
possible but you'll have to do a little programming.
If you do have some Java programming skills you could create a new
Page Model that could appear in template with a name like $archive and
could return the type of information you want. There is some
information about creating a Page Model in my Advanced Roller
presentation on pages 50-53.
http://people.apache.org/~snoopdave/presentations/advanced-roller-aceu2008.p
df
If you want to try this I can provide more information.
- Dave
****************************************************************************
********
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
****************************************************************************
********
Re: get weblog by month
Posted by Dave <sn...@gmail.com>.
On Sun, Apr 27, 2008 at 5:57 AM, Odelya YomTov-Glick <od...@jpost.com> wrote:
> I would like to get all weblogs' entries by month and year.
> What is the best way to do it?
> Odelya YomTov - Glick
Roller doesn't support those types of queries out of the box.
But... internally Roller does support queries for retrieving entries
by date, see the WeblogManager interface (http://tinyurl.com/4fkyqe)
for example, so making this information available in page templates is
possible but you'll have to do a little programming.
If you do have some Java programming skills you could create a new
Page Model that could appear in template with a name like $archive and
could return the type of information you want. There is some
information about creating a Page Model in my Advanced Roller
presentation on pages 50-53.
http://people.apache.org/~snoopdave/presentations/advanced-roller-aceu2008.pdf
If you want to try this I can provide more information.
- Dave