Closed (fixed)
Project:
CKEditor Link
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Nov 2010 at 16:15 UTC
Updated:
5 Mar 2013 at 19:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
anrikun commentedThis will be added in next version :-)
Comment #2
knalstaaf commentedFantastic! Thank you.
Comment #3
joostvdl commentedWhat is the timeframe for this?
Comment #4
anrikun commentedI'm busy at the moment so I guess I'll be doing it in March.
Comment #5
joostvdl commentedWill this also come available in D7 version?
Comment #6
anrikun commentedYes, the 2 branches are kept in sync.
Comment #7
pbeakley commentedsubscribe
Comment #8
sheathe commentedsubscribe
Comment #9
mcfilms commentedI'd like to request that you don't limit it to just Views? Many modules produce pages. For example the module "site map" (http://drupal.org/project/site_map) creates a page at domain.com/sitemap. It would be nice to create a relative link to that page from CKeditor.
Comment #10
anrikun commentedNew 6.x-2.x is out in dev.
It allows to add links to menu items: so linking to views is possible when the views have menu items.
I will not work on any direct "link to view" feature myself, so developers who want to work on it or extend CKEditor Link in any other way (using the new hooks) should read #1107954: New 6.x-2.x and 7.x-2.x: To developers who want to support CKEditor Link.
Comment #11
knalstaaf commentedGreat feature! Thanks, Henri!
Comment #12
anrikun commentedComment #13
designcontext commentedHow does this work? I have views in menues but can get a internal link for them. The title of the view is not found in the autocomplete widget and when I use the path I got an error message because of the use of slashes I suppose. How can I link a view in CK Editor???
Comment #14
anrikun commentedThis feature in only in 6.x-2.x-dev for the moment and is not documented yet.
Navigate to
admin/settings/ckeditor_linkand select the menus to be available as autocomplete suggestions. The menu item linking to your view should show up in suggestions then.Comment #15
amanire commentedFirst off, I really like the improvements to the administrative interface and that fact that I can choose which menu items to reference. Great work so far! Unfortunately, I am getting a message that says "Link must be a valid internal path." after selecting a view. I'm using the WYSIWYG module. Is there another undocumented step in the configuration?
Comment #16
anrikun commentedPlease copy and paste your path here.
Comment #17
amanire commentedWell, in this particular case, I've created a view with a page display that has a menu item in the Primary links menu. The view URL path is "about/client-stories". I also tried creating link independently from the view in the menu UI but that didn't work either. See the attached screenshot.
Update: I experience the same warning message with dead simple URL paths, too, e.g. "news".
I should also mention that this is a development site using D6.20 and Views 6.x-2.12.
Comment #18
anrikun commentedAre you sure that you use 6.x-2.x-dev?
The Link Type is no longer "Drupal" in 6.x-2.x but "Internal path" and your screenshot shows "Drupal".
If you do, please try to clear your browser cache.
Comment #19
amanire commentedAh, nevermind, I found the problem. Long story short, the older plugin.js file was still in my module directory. Thanks, this module is great!
Comment #20
anrikun commentedPlease replace *all* your ckeditor_link folder by the latest 6.x-2.x-dev :-)
Comment #21
amanire commentedHmm.. but now, my Unlink button always appears grayed out. :'-(
This appears to be a conflict because the Unlink button works again when I disable the CKEditor Link module. Should I post this as a separate issue?
Comment #22
anrikun commentedCKEditor has absolutely no control on the Unlink button so it is not a conflict.
Are you sure you updated correctly? Remove your current ckeditor_link folder and download the latest 6.x-2.x-dev.
Also make sure you use the latest CKEditor module and editor.
Once you updated, clear your browser and your Drupal cache.
By the way, the Unlink button is always greyed out when no link is selected. It is only active once you select an existing link.
Comment #23
amanire commentedI re-downloaded the CKEditor library and upgraded the WYSIWYG module and the Unlink button is back. Thanks a ton, anrikun!
Comment #24
peteruithoven commentedGreat work on the module.
Is there any progress on putting this in the D7 version?
Comment #25
anrikun commented@peteruithoven: everything that is in 6.x-2.x is in 7.x-2.x too.
Comment #26
BalfNl commentedI've created a small custom module to add a link to views which basically just contains 2 files:
the module file ( in this case ckeditor_link_views ) with the following function:
and in the mentioned included file:
It basically just checkes all available enabled views and checks if it has a page display. Then it gets the URL and adds it to the the matches in CKeditor
The obvious error with this is that it loads all views instead of just the required ones as defined by the autocomplete
Update
Comment #27
devin carlson commentedAs anrikun mentioned in #10, you are now able to link to any view which has a menu item.
Comment #28
elpino commentedI think it would be worth it to include this in addition to views that already have menu links enabled, because you don't always need to set menu links for a certain page display even though you would want to be able to link to it's path.