roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <snoopd...@gmail.com>
Subject Re: Open comments of a post in a popup window
Date Tue, 04 Sep 2007 23:46:03 GMT
On 9/4/07, Wladimir Boton <wboton@gmail.com> wrote:
> to be similar as getWeblogEntry() that already exists and change the Weblog
> template adding the new method together with the original:
>       ...
>        #if ($model.permalink)
>            #showWeblogEntryComments($model.weblogEntry)
>            <hr>
>            <h1>Isso chama a nova funcao</h1>
>            #showWeblogEntryComments($model.weblogEntry("teste"))
>            <hr>
>            #showWeblogEntryCommentForm($model.weblogEntry)
>         #end


First, my mistake. You must add that method to the WebsiteData object
not PageModel.

And then, when you call it you must use the full method name:

   $model.weblog.getWeblogEntry("teste")

- Dave

Mime
View raw message