<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Embedding a code in wiki to jump from list or table of content to section?</title>
  <link rel="self" href="https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122514322" />
  <subtitle>Embedding a code in wiki to jump from list or table of content to section?</subtitle>
  <id>https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122514322</id>
  <updated>2026-04-17T20:19:19Z</updated>
  <dc:date>2026-04-17T20:19:19Z</dc:date>
  <entry>
    <title>RE: RE: Embedding a code in wiki to jump from list or table of content to section?</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122893951" />
    <author>
      <name>Fal Al</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122893951</id>
    <updated>2024-09-02T08:35:27Z</updated>
    <published>2024-09-02T08:35:26Z</published>
    <summary type="html">&lt;p&gt;Thank you very much Jenny&lt;/p&gt;</summary>
    <dc:creator>Fal Al</dc:creator>
    <dc:date>2024-09-02T08:35:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Embedding a code in wiki to jump from list or table of content to section?</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122680052" />
    <author>
      <name>jenny james</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122680052</id>
    <updated>2024-05-28T09:54:59Z</updated>
    <published>2024-05-27T09:29:57Z</published>
    <summary type="html">&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is very simple, I am writing some code to your query and you can
  edit it as per your requirements.&lt;/p&gt;
&lt;h4&gt;First you should structure your content with HTML anchors.&lt;/h4&gt;
&lt;pre&gt;&lt;code class="language-html"&gt;&amp;lt;h1&amp;gt;Table of Contents&amp;lt;/h1&amp;gt;
&amp;lt;ul&amp;gt;
  &amp;lt;li&amp;gt;&amp;lt;a href="#introduction"&amp;gt;Introduction&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;&amp;lt;a href="#section1"&amp;gt;Section 1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;&amp;lt;a href="#section2"&amp;gt;Section 2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;&amp;lt;a href="#section3"&amp;gt;Section 3&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;

&amp;lt;h2 id="introduction"&amp;gt;Introduction&amp;lt;/h2&amp;gt;
&amp;lt;p&amp;gt;Your introduction content goes here...&amp;lt;/p&amp;gt;

&amp;lt;h2 id="section1"&amp;gt;Section 1&amp;lt;/h2&amp;gt;
&amp;lt;p&amp;gt;Your Section 1 content goes here...&amp;lt;/p&amp;gt;

&amp;lt;h2 id="section2"&amp;gt;Section 2&amp;lt;/h2&amp;gt;
&amp;lt;p&amp;gt;Your Section 2 content goes here...&amp;lt;/p&amp;gt;

&amp;lt;h2 id="section3"&amp;gt;Section 3&amp;lt;/h2&amp;gt;
&amp;lt;p&amp;gt;Your Section 3 content goes here...&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h4&gt;Link them with TOC (Table Of Content)-&lt;/h4&gt;
&lt;pre&gt;&lt;code class="language-html"&gt;&amp;lt;a href="#introduction"&amp;gt;Introduction&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Set Headers with IDs-&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-html"&gt;&amp;lt;h2 id="introduction"&amp;gt;Introduction&amp;lt;/h2&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each section header includes an id attribute that matches the href
  value in the table of contents.&lt;/p&gt;
&lt;p&gt;And last,&amp;nbsp;If your wiki platform supports Carole syntax or similar,
  you may need to adapt the solution accordingly. However, based on
  standard wiki practices, using HTML is the most straightforward and
  widely supported method.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</summary>
    <dc:creator>jenny james</dc:creator>
    <dc:date>2024-05-27T09:29:57Z</dc:date>
  </entry>
  <entry>
    <title>Embedding a code in wiki to jump from list or table of content to section?</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122514321" />
    <author>
      <name>Fal Al</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122514321</id>
    <updated>2024-04-02T14:19:16Z</updated>
    <published>2024-03-31T18:06:37Z</published>
    <summary type="html">&lt;p&gt;Dear Community&lt;/p&gt;
&lt;p&gt;Thank you for your patience.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have a question and maybe you could help me. I have been searching
  for an solution but got no results. :-(&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;1. It is about the wiki. I want to make a wiki with a table of contents.&lt;/p&gt;
&lt;p&gt;So, and then i want that if you click for example on the 3 section in
  the list or table of contents that it jumps and lead you actually to
  the 3 section.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;1.Introduction&lt;/p&gt;
&lt;p&gt;2.Section1&lt;/p&gt;
&lt;p&gt;3.Section2&lt;/p&gt;
&lt;p&gt;4.Section 3&lt;/p&gt;
&lt;p&gt;When clicking on Section3 , it jumps to section 3&lt;/p&gt;
&lt;p&gt;.......................................&lt;/p&gt;
&lt;p&gt;................................................&lt;/p&gt;
&lt;p&gt;.......................................&lt;/p&gt;
&lt;p&gt;Section 3:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I tried it with carole( would be better) and html but without succeding.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;These are the syntax codes i tried to use.(Carole)&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;[[ItemName]]&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;Item name&lt;/p&gt;
&lt;p&gt;Link to an item&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;[[ItemName|Named Item]]&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;Named Item&lt;/p&gt;
&lt;p&gt;Named link to an internal item&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;[[#AnchorName]]&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;#AnchorName&lt;/p&gt;
&lt;p&gt;Link to an anchor in the current item&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;[[#AnchorName|Named anchor]]&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;Named anchor&lt;/p&gt;
&lt;p&gt;Link to a named anchor.&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;[[ItemName#AnchorName]]&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;ItemName#AnchorName&lt;/p&gt;
&lt;p&gt;Link to an anchor in an internal item&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;[[ItemName/SubItem]]&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;ItemName/Subitem&lt;/p&gt;
&lt;p&gt;Link to a sub-item of an internal item&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;[[../SiblingItem]]&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;../SiblingItem&lt;/p&gt;
&lt;p&gt;Link to a sibling of the current item&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;[[/SubItem]]&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;/SubItem&lt;/p&gt;
&lt;p&gt;Link to a sub-item&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;[[attachment:Filename.txt]]&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;Filename.txt&lt;/p&gt;
&lt;p&gt;Link to a sub-item called Filename.txt. Note that this is for
  MoinMoin 1.x compatability and is deprecated in favour of the more
  convenient &lt;code&gt;[[/SubItem]]&lt;/code&gt; syntax&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Please do you have a solution? Maybe you got the right code and know
  how to use it.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks very much.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Sincerely&lt;br&gt;
  &lt;br&gt; Fady Almajdalawi&lt;/p&gt;</summary>
    <dc:creator>Fal Al</dc:creator>
    <dc:date>2024-03-31T18:06:37Z</dc:date>
  </entry>
</feed>
