Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: RE: Using HTML code to jump from table of cont. to a textpassage(Wiki)?
Hi dear community.
Does anybody know how i have to configure my wiki to be able of clicking for example on
1. Introduction (This is in the table of contents)
so that it jumps to the,,introduction section".
I would need a html code(NOT CREOLE), but i dont know how to solve this.
Can anybody help.
Thanks
Fal Al
To create clickable links in your wiki’s table of contents that jump to the corresponding sections, you can use HTML anchors. Here’s a simple example of how to set it up:
<!-- Table of Contents -->
<ul>
<li><a
href="#introduction">1.
Introduction</a></li>
<!-- Add more items as
needed -->
</ul>
<!-- Content Sections -->
<h2
id="introduction">Introduction</h2>
<p>Content for the Introduction section goes here.</p>
<!-- Add more sections as needed -->
In this code:
The <a> tag creates a hyperlink that references an anchor named
#introduction.
The href attribute in the <a> tag specifies
the anchor link.
The <h2> tag for the Introduction section
has an id attribute that matches the name of the anchor link.
When
you click on “1. Introduction” in the table of contents, the browser
will jump to the <h2> tag with the id="introduction".
Remember to replace “introduction” with the actual names of your sections, and ensure that the href value in the <a> tag matches the id value in the content section tags. This method will work for any HTML-based wiki system.
Dear Ryan. THANK YOU VERY MUCH.
I will try it and tell you about it these days.
I will respond to you the next days.
Bye :-)
Powered by Liferay™