Creighton Students
Manual Home  >  Typo3 assistance  >  Help working with content  >  Help editing content  >  Help with the editor  >  Manual bookmarks
Creating manual bookmarks for content

Contents:

Why would I want to do this?

The way that Typo3 creates bookmarks is by automatically creating one for each content element.  For the most part this is fine.  However occasionally you might want a bookmark in the middle of a content element. 

Is there a way to do this?  Yes!

Finding where to create the anchor

Once you have the content added, find the words that you wish to create an anchor to.  However, you cannot do it from the RTE, you have to do it from the HTML.  So click the "Toggle HTML Source" <> above the Rich text editor.  

Click image for full size:

If your content is long you will want to search for the words. 

Click image for full size:

Do not include any formatting in your search!  For example the above words have quotes around the, "Fat over lean".  But in the source the quotes are the HTML equivalent   &quot;   and you will not find "Fat over lean" as it isn't in the HTML.  &quot;Fat over lean&quot; is what the HTML looks like.  Much easier to just look for the words.

To top

Creating the anchor

Once you have found the words you want to link to in the HTML, it's time to create the anchor.  You cannot use any of the action icons in the rich text editor as none are active when you are in the HTML source.  Plus there isn't an action icon that can create just an anchor.

So we have to do it manually.  Actually it's very easy. 

The format is:  <a name="myanchorname">The anchor words</a>.  All you have to do is find the words you want to use as the anchor then put the anchor tag around them.

If you look at it again after you have saved, you'll find that Typo3 has added and rtekeep="1" to the actual tag.  So it will look like <a name="fat" rtekeep="1">Fat over lean</a> .  Leave it, Typo3 is just telling itself to keep the anchor you manually created.

Click image for full size:

NOTE: do not put a space in the name anywhere. <a name="my name"> will not work! If you have to separate words use an underscore or a dash to separate then.  Do not use a space or Typo3 will not be able to use it to get to the exact place in the text that you want to link to.

Once you have added the anchor to the words

To top

Linking to the anchor

Once you have created the anchor, you can link to it from another page.  Doing this is much like linking to the page itself.

Click image for full size:

When you have the "Insert/Modify Link" window open, find the page as you would if you were going to link to the page itself.  DO NOT click on the page name.  Instead click on the small red arrow to the right of the page name.

Click image for full size:

When you have clicked the small red arrow next to the page name, you will get a list of the content elements on the right side of the "Insert/Modify Link" dialog box.  Indented in the content element where we created the anchor you will see an <A> and the name that we gave the anchor.

Click image for full size:

To top

Styling

Depending on how your site is styled, the named anchor may show up as a link on your page.  Since it's really not a link, just let the webteam know and we'll fix it so it no longer does this.

To top

Creighton University