While getting into the FCKeditor i have failed to find a place to change the HREF of Anchor to what I want.
When uploading a file or image the editor links to that file, that then gets served up to the user, but if the page that you want to get to does not exist as a file...? What then?
I have made a function that write the full anchor and href of my CMS in a seperate files, these then act as a fake link to a page ie:
<a href="www.mysite.com/display.php?UUID=123">HOME</a>
is written in file HOME.html.lnk
Is there another way i can get this to work, or mabe get the editor to parse some files?
I want to user to be able to link to content within the CMS, not actual files...
Any suggestions would be great..
When uploading a file or image the editor links to that file, that then gets served up to the user, but if the page that you want to get to does not exist as a file...? What then?
I have made a function that write the full anchor and href of my CMS in a seperate files, these then act as a fake link to a page ie:
<a href="www.mysite.com/display.php?UUID=123">HOME</a>
is written in file HOME.html.lnk
Is there another way i can get this to work, or mabe get the editor to parse some files?
I want to user to be able to link to content within the CMS, not actual files...
Any suggestions would be great..
RE: Setting the URL of Achors
Scary as it sounds, it's really quite trivial. I'm proud to say that with only a link to a thread discussing it, someone was able to figure out how to insert html into the iframe. Now we can't ALL be as good as that, but the concept stands.
Long ago, before plug-ins, I hacked up the smile-ly button. Copied all it's source, duplicated it everywhere but with a 2 appended, and was able to get my own dialog that inserted whatever I wanted. Even had a nifty smile picture for the button. And everyone likes smiles.
At any rate, plugins have RADICALLY improved that. What a pain, hacking up the code every time!
So. To sum up: Probably the idea about the database is the best one. I use CF. I can specify that a plug-in opens a .cf page when clicked. I can code that .cf page to look in a database, and pull out whatever I want (I even store files in my DB... but that's a different kind of overhead). I can then use the bit of JS code mentioned above (see "insert html" thread) to insert whatever content I'd like in the editor window.
I've made a plug-in that generates rating scales, questions with correct answers(multiple choice, etc), and other widgets, that are insertable with a click. Since I store everything the the database, I can even have a bit of JS code that is in the source while the user is editing and removed when saved.
This makes it so that after people "insert" one of my custom widgets (widget is probably not the technical term), which I keep in tables and <div> tages, they can then click on that widget and instead of being able to mess with the code (although they still can in 'source' mode) the dialog window pops back open with widget's options.
Sounds cool, neh? I thought so. =-) I'm biased, tho.
At any rate, No need to trouble FredCK with stuff like this. Plug-ins to the rescue! Write one and share. If my stuff ever gets usable (people know my code know what I mean;) I'll no doubt share it.
I think due to the GPL we have to... ;-]
THANKS FREDCK AND ALL CONTRIBUTERS!!!
What a great project. Good people too. Gratz!