Closed (duplicate)
Project:
CKEditor Link
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2010 at 13:57 UTC
Updated:
14 Jan 2013 at 08:39 UTC
We have an environment which means that a lot of pages have the exact same name. What we need is a way to differenciate that using taxonomies. You already have link filter for the link. is it possible to somehow use the link alias filter when trying to search for the page as well? I hope this makes sense.
Comments
Comment #1
anrikun commentedCould you please provide a more concrete example? Thanks!
Comment #2
MoSaG commentedHi omaster,
I have the same problem (same name in different menus).
Here is my solution, until the developer have a better one ;)
on ckeditor_link.module delete or comment out line 46 (starts with: $matches[$node ... )
and replace it with:
$result_content = db_query("SELECT body FROM {node_revisions} WHERE nid = '".$node->nid."' LIMIT 1");
$out=$result_content->fetch_assoc();
$matches[$node->title .' (node/'. $node->nid. ')'] = '
';
It gets the first (unformatted) 20 chars of the body text of the node and show it after the title, like:
"title of the node (bodytext of the node ...)"
Dirty little hack, I'm sure there is a better way to do it with drupal api, but for the moment that helps me out, perhaps it's a quick solution for you too.
(sorry for my english ;))
Comment #3
cvbuelow commentedThanks for the tip MoSaG. I found it more useful to append the node url alias to the title:
Comment #4
devin carlson commentedThis is a duplicate of #1530862: More verbose autocomplete.