<p>Here is a <strong>super</strong> hacky way to do this...but it does do the trick. </p>

<ol>
<li>Locate the JS file responsible for rendering the Element Selector Modal (craft/app/resources/js/compressed/RichTextInput.js)</li>
<li>Search for: {storageKey:"RichTextFieldType.LinkToEntry". This is where the modal gets called. </li>
<li><p>Nearby, locate "criteria" and change </p>

<p>{locale:this.elementLocale} to {locale:this.elementLocale, section: ['sectionYouWant','otherSectionYouWant']}</p></li>
<li><p>Push this JS file to your server and only the sections you include in the section array above will show entries. The other section titles will show, but no entries will show up to select.</p></li>
</ol>

<p>Keep in mind that this adjustment will probably be overriden by any Craft update. I bet building your own redactor plugin would be cleaner.</p>

CC BY-SA 3.0
2015-02-03T07:22:19.720Z
Hey check that out! Cheers m8! I'll wait a little to see if Brad or Brandon has any alternatives to this approach.
naboovalley
CC BY-SA 3.0
2015-02-02T22:10:40.817Z
2015-02-02T22:10:40.817Z
Aaron Berkowitz
<p>The Entries Field does have configuration options.</p>

<p>Instead of Redactor, you could use Matrix and combine an Entries Field with a (Plain) Text Field using Markdown syntax.</p>

<p>Example string entered in your Text Field:</p>

<pre><code>Bla bla [321 link][1] bla bla
</code></pre>

<p>And then make your Entries Field return the following:</p>

<pre><code>[1]: http://example.com/entry321
</code></pre>

<p>Then combine the strings in the template and apply the markdown filter.</p>

<p>This is how the Matrix field would look like in the CP:</p>

<p><img src="https://i.sstatic.net/deMHX.png" alt="enter image description here"></p>

CC BY-SA 3.0
2015-02-02T12:31:00.053Z
I would consider this very very client un-friendly, sorry :). I would like to use the user-friendly version Redactor provides. Maybe someone else know if it could be done with a little Redactor config-hacking?
naboovalley
CC BY-SA 3.0
2015-02-02T12:34:43.460Z
There are clients who love markdown :)
carlcs
CC BY-SA 3.0
2015-02-02T12:37:21.927Z
Then you should meet my clients ;)
naboovalley
CC BY-SA 3.0
2015-02-02T12:03:45.990Z
2015-02-02T13:16:31.307Z
2015-02-02T13:16:31.307Z
carlcs
<p>I have some channels with entries that I don't want my client to be able to link to using Redactors "Link to entry" feature. Can I disable some channels for a specific field in a specific channel/structure/single?</p>

CC BY-SA 3.0
2015-02-02T11:13:43.747Z
Would markdown be an option for you?
carlcs
CC BY-SA 3.0
2015-02-02T11:52:32.813Z
Not following @carlcs. I want some channels not being visible when a user clicks "Link to entry" in the popup.
naboovalley
CC BY-SA 3.0
2015-02-02T12:07:22.760Z
I meant markdown instead of Redactor's "Link to entry" feature. See my answer below...
carlcs
<entries><redactor>
Can I disable channels in Redactor "Link to entry" feature?
# Can I disable channels in Redactor "Link to entry" feature?

(Asked by: username_0 on 2015-02-02)

I have some channels with entries that I don't want my client to be able to link to using Redactors "Link to entry" feature. Can I disable some channels for a specific field in a specific channel/structure/single?

**Tags:** entries, redactor

> **Comments:**
> **username_1**: Would markdown be an option for you?  
> **username_0**: Not following @username_1. I want some channels not being visible when a user clicks "Link to entry" in the popup.  
> **username_1**: I meant markdown instead of Redactor's "Link to entry" feature. See my answer below...  

---

## 2 answers

### Answer by username_2 on 2015-02-02. Score: 2

Here is a **super** hacky way to do this...but it does do the trick.

1. Locate the JS file responsible for rendering the Element Selector Modal (craft/app/resources/js/compressed/RichTextInput.js)
2. Search for: {storageKey:"RichTextFieldType.LinkToEntry". This is where the modal gets called.
3. Nearby, locate "criteria" and change

   {locale:this.elementLocale} to {locale:this.elementLocale, section: ['sectionYouWant','otherSectionYouWant']}
4. Push this JS file to your server and only the sections you include in the section array above will show entries. The other section titles will show, but no entries will show up to select.

Keep in mind that this adjustment will probably be overriden by any Craft update. I bet building your own redactor plugin would be cleaner.

> **Comments:**
> **username_0**: Hey check that out! Cheers m8! I'll wait a little to see if Brad or Brandon has any alternatives to this approach.  

---

### Answer by username_1 on 2015-02-02. Score: 0

The Entries Field does have configuration options.
Instead of Redactor, you could use Matrix and combine an Entries Field with a (Plain) Text Field using Markdown syntax.
Example string entered in your Text Field:
Bla bla [321 link][1] bla bla

And then make your Entries Field return the following:
[1]: http://example.com/entry321

Then combine the strings in the template and apply the markdown filter.
This is how the Matrix field would look like in the CP:

> **Comments:**
> **username_0**: I would consider this very very client un-friendly, sorry :). I would like to use the user-friendly version Redactor provides. Maybe someone else know if it could be done with a little Redactor config-hacking?  
> **username_1**: There are clients who love markdown :)  
> **username_0**: Then you should meet my clients ;)  

---

