On 9/4/07, Wladimir Boton <[EMAIL PROTECTED]> 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

Reply via email to