HTML fragment identifier
| From: | Lee Doolan | Date: | Tue, 18 Dec 2001 21:26:34 +0000 |
| Subject: | HTML fragment identifier | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2330@lists.php.net to get a copy of this message | ||
I have some code which instantiates a smarty object and displays
a template which generates an HTML page which has a bunch of
HTML tags like this:
[. . .]
<a name="CPhowprivate"><strong>How can I keep my gifts
private?</strong></a>
[. . .]
<a name="CPhowsource"><strong>How do I get the source
code?</strong></a>
[. . .]
and so forth. Is there a attribute of the smarty object which can be set
for the HTML fragment id, so that when the smarty->display() method is
invoked the browser will scroll to the selected anchor?
TIA
-lee