We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36805
    • 354 Posts
    We can already initialize templates to ignore in assets/plugins/tinymce/inc/tinymce.linklist.php

    This is not always sufficient. I found you can easily extend to also allow for ignore of individual pages.

    Add $pages_to_ignore parameter beneath $templates_to_ignore around line 24. Fill both with your list of template/page id’s
    $templates_to_ignore = array(3,6,9,10,11,14,15);	// Template IDs to ignore from the link list
    $pages_to_ignore = array(107);	                    // Page IDs to ignore from the link list
    

    Then add a second !in_array call on Line 62, like this:
    if (!in_array($page['template'], $templates_to_ignore) && !in_array($page['id'], $pages_to_ignore))
    


    Maybe the plugin ship with this option? Even better would be to add it as 2 plugin configuration parameters.
      • 33014 ☆ A M B ☆
      • 1,231 Posts

      Suggestion