You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by nathan barron <na...@Rightmove.co.uk> on 2002/05/28 16:50:20 UTC

Anchors in velocity

Hi guys
 
I have a link within a vm file like this:
 
<a href="$link.setPage("publicsite,Sitefaq.vm")">Click here</a>
 
This works fine, but I would like to send the user to a specific point in
the 'Sitefaq.vm' page. How can I do this???????
 
Within HTML you use an anchor in the target page and specify the name of the
anchor in the link with a '#' symbol I tried this but it didn't work.
Perhaps I have the syntax wrong!!???!
 
Any help would be much appreciated.
 
Cheers
 
Nathan
 


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs service. 
________________________________________________________________________

Re: Anchors in velocity

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 5/28/02 10:50 AM, "nathan barron" <na...@Rightmove.co.uk> wrote:

> Hi guys
> 
> I have a link within a vm file like this:
> 
> <a href="$link.setPage("publicsite,Sitefaq.vm")">Click here</a>
> 
> This works fine, but I would like to send the user to a specific point in
> the 'Sitefaq.vm' page. How can I do this???????
> 
> Within HTML you use an anchor in the target page and specify the name of the
> anchor in the link with a '#' symbol I tried this but it didn't work.
> Perhaps I have the syntax wrong!!???!
> 
> Any help would be much appreciated.
> 

This seems turbine-ish with the link.setPage(), but you should be able to do
:

 <a href="$link.setPage("publicsite,Sitefaq.vm")#linkname">Click here</a>


-- 
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>