Or put a variation of this in your template.

#foreach($entry in $model.weblog.getRecentWeblogEntries("nil", 5))
    #set ( $thisdate = $utils.formatDate( $entry.pubTime, "MMMMMMMMM,
yyyy" ) )
    #set ( $thisyear = $utils.formatDate( $entry.pubTime, "yyyy" ) )
    #set ( $thismonth = $utils.formatDate( $entry.pubTime, "MM" ) )
    #if ( !$olddate )
        #set ( $olddate = $thisdate )
        <strong><a href="http://yourblogurl/$thisyear
$thismonth">$thisdate</strong>
        #elseif ( $thisdate != $olddate )
           #set ( $olddate = $thisdate )
           <strong>$thisdate</strong>
        #end
#end

J




On Mon, 2007-11-19 at 07:33 -0500, Dave wrote:
> On Nov 10, 2007 4:58 PM, Raúl Fuenzalida <[EMAIL PROTECTED]> wrote:
> > I would like to build a popup menu with the list of the months with
> > entries published into:
> >
> >  -------------------------------
> > |  Select a Month >>
> > |-------------------------------
> > |  February 2007
> > |  March 2007
> > |  ...
> >  -------------------------------
> >
> > And if it has the number of the entries published:
> >  -------------------------------
> > |  Select a Month >>
> > |-------------------------------
> > |  February 2007 (3)
> > |  March 2007 (8954312)
> > |  ...
> >  -------------------------------
> 
> Roller doesn't support the queries necessary to do that type of
> display. If you wanted to do something like that you'd have to create
> a plugin "page model" object (written in Java) which queries the
> Roller database.
> 
> - Dave
***********************************************************
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
************************************************************

Reply via email to