I've got the request paramenter:

<html><body><h1>My blog is named $model.weblog.name</h1>
<h2>Anchor: $model.getRequestParameter("showpost")</h2>
#set($anchor = $model.getRequestParameter("showpost"))
#set($entry = $model.weblog.getEntry($anchor))
$entry.text
#showWeblogEntryComments($entry)
</body></html>

but Are you sure there is a getEntry method? This template when I call
http://blogt.abril.com.br/wboton/page/comments?showpost=nova_entrada

shows:

<html><body><h1>My blog is named Do Boton</h1>
<h2>Anchor: nova_entrada</h2>
$entry.text
    <a name="comments"></a>
    <div class="comments" id="comments">

            <div class="comments-head">Comentários:</div>

    <br/>
        </div>
</body></html>
it gets the anchor (nova_entrada) but didn't get the $entry for that anchor
and I'm sure there is one comment to that post.
I didn't find this method getEntry on the template documentation.
Where is the problem?

I'm using Roller 3.1.


On 8/31/07, Dave <[EMAIL PROTECTED]> wrote:
>
> The second form is correct, but you don't need the quotes.
>
> If I create a custom page with this content:
>
>   <html><body>
>   $model.getRequestParameter("test")
>   </body></html>
>
> And then call that with this URL:
>
>   http://localhost:8080/roller/daveblog/page/params?test=foo
>
> I see this in the browser:
>
>   foo
>
> - Dave
>
>
> On 8/31/07, Wladimir Boton <[EMAIL PROTECTED]> wrote:
> > Sorry, but How I send a request parameter to a template page?
> > I've tried:
> >
> > http://localhost:8084/roller/wboton/page/comentarios/anchor="teste";
> > http://localhost:8084/roller/wboton/page/comentarios?anchor="teste";
> > http://localhost:8084/roller/wboton/page/comentarios/?anchor="teste";
> > http://localhost:8084/roller/wboton/page/comentarios/anchor/teste
> >
> > None of them worked.
> >
> > On 8/31/07, Dave <[EMAIL PROTECTED]> wrote:
> > >
> > > Use a request parameter to pass the entry's anchor and then in the
> comment
> > > page:
> > >
> > >   #set($anchor = $model.getRequestParameter("anchor"))
> > >   #set($entry = $model.weblog.getEntry($anchor))
> > >
> > > - Dave
> > >
> > >
> > > On 8/31/07, Wladimir Boton <[EMAIL PROTECTED]> wrote:
> > > > I've created a new template called "comentarios"
> > > >
> > > > http://localhost:8084/roller/wboton/page/comentarios
> > > >
> > > > that has only:
> > > >
> > > > <html><body><h1>My blog is named $model.weblog.name</h1>
> > > > #showWeblogEntryComments($entry)
> > > > </body></html>
> > > >
> > > > How I send the $entry I want to the popup window?
> > > >
> > > >
> > > >
> > > > On 8/31/07, Dave <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > On 8/30/07, Wladimir Boton <[EMAIL PROTECTED]> wrote:
> > > > > > Is it possible to open all comments of a post in a new window
> > > (popup)?
> > > > > >
> > > > > > We don't want that when the user click on the "Comments ( 2 )"
> link
> > > open
> > > > > the
> > > > > > post with all its comments. We want that it opens a popup
> listing
> > > all
> > > > > > comments to the post.
> > > > >
> > > > > That is not possible without writing some template code. You'll
> need
> > > > > to create a custom page just for displaying comments and modify
> your
> > > > > blog templates to launch that page as a popup.
> > > > >
> > > > > Check the template author guide for more information about
> template
> > > > > programming:
> > > > >
> > > > >
> > >
> http://cwiki.apache.org/confluence/display/ROLLER/Roller+User+Documentation
> > > > >
> > > > > - Dave
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Wladimir Boton
> > > > http://www.wboton.com
> > > >
> > >
> >
> >
> >
> > --
> > Wladimir Boton
> > http://www.wboton.com
> >
>



-- 
Wladimir Boton
http://www.wboton.com

Reply via email to