# Set anchor for document links

**URL:** <https://community.bloomreach.com/t/set-anchor-for-document-links/4102>\
**Category:** Uncategorized\
**Created:** [September 8, 2023, 2:50pm UTC](https://community.bloomreach.com/t/set-anchor-for-document-links/4102 "2023-09-08T14:50:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ineke](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ineke/32/1401_2.png) [@Ineke](https://community.bloomreach.com/u/Ineke)\
**Post date:** [September 8, 2023, 2:50pm UTC](https://community.bloomreach.com/t/set-anchor-for-document-links/4102/1 "2023-09-08T14:50:06Z")

</div>

Perhaps a stupid question but I honestly couldn’t find a solution anywhere in the docs. If I add an internal link through the CKEditor I can set an anchor to link to a specific part of the page:

 ![Scherm­afbeelding 2023-09-08 om 16.40.29](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/2X/9/98754f4022a93c460d3090a89b8ddd08c006b6a4.png)

Unfortunately when trying to do the same for an internal link set through a mirror field on a document, I do not see the option to add an anchor, the same when setting an internal link as a parameter on a component(pickerconfiguration set to cms-pickers/documents-only).

Is there some kind of config I can set to make the anchor option appear for those fields as well?

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [September 11, 2023, 7:24am UTC](https://community.bloomreach.com/t/set-anchor-for-document-links/4102/2 "2023-09-11T07:24:20Z")

</div>

Hi Ineke,  
There’s no config to add anchor in the link picker. This field is designed to only reference a document by id (or path for component parameters).  
In the HTML field there are more possibilities.  
HTH  
Jeroen

---

<div class="post-metadata">

**Author:** ![Ineke](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ineke/32/1401_2.png) [@Ineke](https://community.bloomreach.com/u/Ineke)\
**Post date:** [September 11, 2023, 7:54am UTC](https://community.bloomreach.com/t/set-anchor-for-document-links/4102/3 "2023-09-11T07:54:21Z")

</div>

Okay clear, that’s too bad but we’ll find another solution 🙂

---

<div class="post-metadata">

**Author:** ![Ineke](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ineke/32/1401_2.png) [@Ineke](https://community.bloomreach.com/u/Ineke)\
**Post date:** [September 14, 2023, 2:34pm UTC](https://community.bloomreach.com/t/set-anchor-for-document-links/4102/4 "2023-09-14T14:34:09Z")

</div>

I am now looking into extending the `hst:jcrpath` node to be able to set the anchor, I imagine I can do this by creating a plugin for the picker frontend and a mixin for the node but I’m having trouble finding good documentation/examples. Would you perhaps know any good docs/examples to point me in the right direction?
