Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Anchor named tag

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
sbalay
Smarty Rookie


Joined: 30 Aug 2011
Posts: 5

PostPosted: Wed Aug 31, 2011 2:22 pm    Post subject: Anchor named tag Reply with quote

hello,

On the first page I have a link READ MORE

On clicking it should goto particular section (somewhere in the middle of the page)

I tried using regular anchor named tag in html but it did not work...

Any suggestions....
Back to top
View user's profile Send private message
bimal
Smarty Elite


Joined: 19 Apr 2007
Posts: 423

PostPosted: Wed Aug 31, 2011 5:48 pm    Post subject: basic HTML Reply with quote

It is a basic HTML related question, and is not related to Smarty.
However, here is what you probably want to do:

In the read more link, jump to a hashed anchore name.
Code:
<a href="another-page.php#textmiddle">Read more</a>


In the another-page.php, produce a named anchor just before where you want to come, when read more button of the other page is clicked on.

Code:
<a name="textmiddle"></a>


Thats all.
Back to top
View user's profile Send private message Visit poster's website
sbalay
Smarty Rookie


Joined: 30 Aug 2011
Posts: 5

PostPosted: Wed Aug 31, 2011 6:10 pm    Post subject: Reply with quote

Thanks for ur reply..

I did it in the same way.. Its not working...

I wrote on .tpl file...
It doesnt go to the particular section.. Is there something different to write in tpl files..??
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP