Could someone tell me how I could add a (or multiple) 'optgroups' ( <optgroup label="">..</optgroup>) to the linktype-dropdown menu in the link-dialog?
Also I'm trying to find out how to edit the URL input box, Can't seem to find this in the current dialog-code.
I placed a few extra URL's in the linktype-dropdown but when these are clicked, I want to fill the URL field with a pre-defined URL.
Hope this is clear, English isn't my best language.
Also I'm trying to find out how to edit the URL input box, Can't seem to find this in the current dialog-code.
I placed a few extra URL's in the linktype-dropdown but when these are clicked, I want to fill the URL field with a pre-defined URL.
Hope this is clear, English isn't my best language.
Re: Preparing links in link dialog
Re: Preparing links in link dialog
Re: Preparing links in link dialog
I'm trying to workout the editing of the URL box itself too, but the URL type options should be easy - if you're using the unpackaged link.js file from _source/plugins/link/dialogs/link.js around about line 377 you'll see something like this (remember you'll need to copy this into your ordinary /plugins/link/dialogs dir to get it to work (dont delete the one that's there as i have zero confidence in my abilities here!):
Re: Preparing links in link dialog
Thanx for your reply.
I already managed to find out how to add extra items to the list.
I added something like this:
As you can see I have placed a couple of extra items in the list. Because there is no need for translations I have 'hardcodded' the labels.
I want to create a list with pages from a database in this menu so I also need the URL to a page in de second parameter. This URL must be placed in the URL field in de dialog. But I cant seem to place anything in this field because I can't identify the field. The ID of the field is not always the same... (Nice going on the development!)
CKeditor support didn't even want to resolve this little issue for money... Maybe they don't know either? :p
CKeditor is a nice looking new version of FCKeditor. But with all Js coded, it's a hell to change the content of the dialogs.
The people from CKeditor claim: "Easy to customize"... I claim: "Not easy to customize".
I think I just stop with trying to build someting in the dialog. Maybe a extra CMS tool for getting a URL of page is faster done....