View Full Version : Browsing for links
johnd45081
06-02-2009, 11:14 PM
I see that in WA_Globals.php you can set the iRite image upload settings for images and swf. By doing this the FCK file manager knows where to find images and flash files to insert in pages. But there is no setting for files to allow me to set the path so that I can insert links between pages.
Am I missing something? How do I set it up so I can browse for links in the root directory where my main page files are stored?
Also for simplicity I have renamed the main folder CMS and changed the root path in WA_Globals.php accordingly. However this change is not reflected in the developer links. Can this be fixed?
It's not a big deal as I am keeping the correct links as a snippet, but it could confuse people who do not have great developer skills.
Ray Borduin
06-03-2009, 06:54 AM
As the iRite link window allows for a browse the server option as shown in the first screen shot on this page:
http://docs.fckeditor.net/FCKeditor_2.x/Users_Guide/Common_Tasks/Links%2C_E-Mails_and_Anchors
I’d assume that you can set the location that you can browse within. The options for the file type resource on this page:
http://docs.fckeditor.net/CKFinder/Developers_Guide/PHP/Configuration/Resource_Types/Built-in
Indicates that you can set the directory. I’m not sure if you can have the browse enabled, but not allow uploads in case that comes up.
johnd45081
06-12-2009, 12:00 AM
Sorry, have only just had time to get back to this.
I tried to use the FCK links facility in WA_iRite/editor/filemanager/connectors/php/config.php but gave up - maybe because there is some WA_iRite code that made it work differently.
I was puzzled why PowerCMS set up separate WA_Global links to the images and swf facilities but not to the files and media facilities provided in FCK Editor. In particular I couldn't understand why the files facility was overlooked as the link button in the editor opens that folder.
After several unsuccessful attempts to set the FCK file links correctly, I decided that the easiest way was to convert the files links in config.php to $WAGLOBAL_Files_Folder and the media links to $WAGLOBAL_Media_Folder and to add these features to the WA_Global/WA_Global.php file.
My version of the Folder part myWA_Global.php file is now:
$WAGLOBAL_Files_Folder = "../"; //relative path to your files folder.
$WAGLOBAL_Images_Folder = "../images/"; //relative path to your images folder.
$WAGLOBAL_Swf_Folder = "../swf/";//relative path to your swf folder.
$WAGLOBAL_Files_Folder = "../media/"; //relative path to your files folder.
The files folder link goes the root, the images to /images etc etc.
johnlanglois
07-09-2009, 09:33 AM
Sorry, have only just had time to get back to this.
I tried to use the FCK links facility in WA_iRite/editor/filemanager/connectors/php/config.php but gave up - maybe because there is some WA_iRite code that made it work differently.
I was puzzled why PowerCMS set up separate WA_Global links to the images and swf facilities but not to the files and media facilities provided in FCK Editor. In particular I couldn't understand why the files facility was overlooked as the link button in the editor opens that folder.
After several unsuccessful attempts to set the FCK file links correctly, I decided that the easiest way was to convert the files links in config.php to $WAGLOBAL_Files_Folder and the media links to $WAGLOBAL_Media_Folder and to add these features to the WA_Global/WA_Global.php file.
My version of the Folder part myWA_Global.php file is now:
$WAGLOBAL_Files_Folder = "../"; //relative path to your files folder.
$WAGLOBAL_Images_Folder = "../images/"; //relative path to your images folder.
$WAGLOBAL_Swf_Folder = "../swf/";//relative path to your swf folder.
$WAGLOBAL_Files_Folder = "../media/"; //relative path to your files folder.
The files folder link goes the root, the images to /images etc etc.
Thanks for doing WA's job for them.
It appears that your last variable redefines your first variable. Did you mean something else?
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.