TinyButStrong - the PHP Template Engine
Categories > TinyButStrong general >

Jump to an anchor in a page while using subtemplates

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: Sine
Date: 2014-08-18
Time: 06:55

Jump to an anchor in a page while using subtemplates

Hello,
I wish to add page anchors to jump to a location within a page. But I need to use subtemplates in which one of the html pages will have anchors defined. Is there a mechanism to make it work?

Thanks in advance,
-Sine
By: Skrol29
Date: 2014-08-18
Time: 11:08

Re: Jump to an anchor in a page while using subtemplates

Hi,

I don't understand what is the problem.
Do you want to retrieve the anchor name of a sub-template ?
By: Sine
Date: 2014-08-18
Time: 15:52

Re: Jump to an anchor in a page while using subtemplates

I want to embed anchors within a page (eg "#tag1", "#tag2", etc) so that I can access the same from the merged block (eg mergedblock.php#tag1). Is this supported by TBS?
By: Skrol29
Date: 2014-08-18
Time: 18:19

Re: Jump to an anchor in a page while using subtemplates

I see no problem with that.
TBS does not interpret the HTML code, TBS does process the HTML as a text containing tags.
By: Sine
Date: 2014-08-20
Time: 04:54

Re: Jump to an anchor in a page while using subtemplates

I was doing it wrong. Based on an online tutorial I was giving <a href="#tag"> instead of <a id="tag">. TBS is great! :D