Hi,
I have a system setup with multiple websites. I want to be able to put the FCKeditor into a global "root" directory and have all the websites pull from that one directory. That way if there's an update, etc, then I will only have to change one directory. The problem is, I can't figure out how to make the BasePath absolute.
For example, I have the the directory on this path: /usr/local/apache2/phplib/editor/FCKeditor/ and phplib is part of my include directories. I've tried to set the basepath to that path, but it just think that it is an HTTP path and tried to pull from each domain in my /usr/local/apache2/virtualhosts/ directory.
How can I set the path to be absolute?
I would appreciate any suggestions on this.
Fri, 08/31/2007 - 17:11
#1
Re: Help with absolute BasePath
Re: Help with absolute BasePath
I appreciate the suggestion, but I don't think that would work for my current situation.
I basically need to implement a WYSIWYG editor for over 300 websites. I looked at TinyMCE already but I found it wasn't as fast or easy as FCKeditor. I'm really lost here.
Re: Help with absolute BasePath
Say you have fckeditor unzipped in html/source/fckeditor/
You have three websites using fck
alpha
beta
gamma
each one has fck in a subdirectory
alpha/fckeditor/
beta/fckeditor/
gamma/fckeditor/
you would dump the subdirectories and create a symbolic link instead. Assuming you were in html/alpha/:
/html/alpha/: ln -s /html/source/fckeditor
An ls -l would reveal
fckeditor ---> /html/source/fckeditor/
If fckeditor is updated, you just update the source/fckeditor/ directory and all the symbolic links are still fine.
Now I have never tried this personally and I apologize in advance if this is still not what you are looking for.
Best of luck.