adding Anchor to text

Permalink
Ok guys I have one thats probabaly stupid simple but i cant find it in here.

Is there a way to add a link to a paragraph from within a content box? I have a longer content block. at the top it has its "table of contents" I was going to label every entry into the table of contents to a paragraph that it refered too. But i cant seem to find a option to set the link points to make this happen?

Thanks in advanced

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi dodgeking3171,

In the current version (5.7.3.1), there is no anchor tag tool in the content editor.

The upcoming version (5.7.4) will allow for things like anchor tag tools.

In the meantime anchor tags can be added by hand using the HTML view in the content editor.
Pluto replied on at Permalink Reply 2 Attachments
Pluto
In 5.7.3.1 in the content content editor select the text where you want to add anchor tag. Then click on the button specified in my first image attachment. And then a popup will open enter the link you want there and Click on insert.Save all the task and publish it.
dodgeking3171 replied on at Permalink Reply
Hey pluto. I'll try when I get home. However I do think the process you just described I'll take the text I highlight and then link to a different page. What I'm looking to do is to run through a paragraph and add anchors so that I can link to different sections of my content.
Pluto replied on at Permalink Reply
Pluto
You can do this too.
In this case you will have to put the link as
http://yourdomain.com/#div_id
This example will run for home page. Where div_id is the id of that div where you want to scroll after clicking the anchor tag.
dodgeking3171 replied on at Permalink Reply
Well give her a shot when I get home. I appreciate your help
dodgeking3171 replied on at Permalink Reply
As suspected the problem does exist. Setting a link is not the problem. Telling the link were to go is the issue. You can not add a anchor with the current tool menu. So i can highlight all the text i want and tell it to be a link. but there is nothing to link it too. Here is my example. I want to be able to click on chapter 1. and then take me to chapter one below, chapter two takes you to chapter two and so on. seems it will need to be hard coded until comes out
Contents
1. chapter one
2. chapter two
3 chapter three

Chapter one
a;lkajl;akjf;aldsjkfads;l


chapter two
aoudfdsoufiaodsfaj;dslfk jadslkjfadf

chapter three
aodfuaodjfaldf
MrKDilkington replied on at Permalink Reply
MrKDilkington
@dodgeking3171

Can you post a link to your site.

I can show you an example of how to manually create the anchor tags.
Pluto replied on at Permalink Reply 2 Attachments
Pluto
Hello friend
In your content editor text mode
you can place
<p>
1.
<a title="chapter one" href="https://www.concrete5.org/#chapter-1">chapter one</a>
</p>
<p>
2.
<a title="chapter two" href="https://www.concrete5.org/#chapter-2">chapter two</a>
</p>
<p>
3.
<a title="chapter three" href="https://www.concrete5.org/#chapter-3">chapter three</a>
</p>
<p id="chapter-1">
<strong>Chapter one </strong>
</p>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
</p>
<p>
 Chapter one Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
</p>
<p id="chapter-2">
<strong>chapter two </strong>
</p>
<p>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. chapter two It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
<p id="chapter-3">
<strong>chapter three </strong>
</p>
<p>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. chapter three Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
</p>
try this. I am attaching two image that will help you to recognize the editor normal and text mode.
dodgeking3171 replied on at Permalink Reply
Thanks for all the help guys. Very friendly community. I did use the html editor to add the tags manually. The only hic up I found was that after they were manually put I. They could get auto deleted using the standard cms text edit tools. But otherwise worked fine. Now if I could only find the code for the heade in the elemental theme haha
arlenesey replied on at Permalink Reply
arlenesey
This solution worked for me too! Thank you!