close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

how to instert links to other pages

Thread began 2/11/2010 4:51 pm by marek | Last modified 2/22/2010 5:55 pm by Eric Mittman | 1126 views | 7 replies |

marek

how to instert links to other pages

Hello Support,
When I press the "Insert/Edit Link" button in the editor there's an option to browse the server for a link, but the file manager only shows a "root" folder and a "cms_files" subfolder with no contents. Where are the other existing web pages? How can I browse the server to create a link to an existing page (to create a link to an internal page)? Why is this not included in the documentation?

Please give specific directions/steps.

Thanks,
Marek

Sign in to reply to this post

Eric Mittman

The reason you can't browse all of the files in your site is because the advanced file manager by default uses the folder called files in your site root. You will not be allowed to go 'above' that directory.

You can update this by making an edit to the HTMLEditor > editor > plugins > kfm > configuration.php file. In this file look for the following line of code near line 52:

php:
$kfm_userfiles_address = '../../../../files';



If you update this path to point to the root of your site then you would be able to browse the entire site for files to link to. For example, if you have your PowerCMS loaded in a directory called powercms in your webroot you would update this line of code to be like this:

php:
$kfm_userfiles_address = '../../../../../powercms';



Whatever folder this path points to will be the folder you start in when you click on the browse server button.

Sign in to reply to this post

marek

Thanks Eric, but this does not make sense. Since I placed the CMS folder on the site root (following your installation instructions) then the site files would be above the CMS folder, not in the CMS folder. In fact, I tried changing this line to "CMS" as you suggest and all the file manager showed is an empty "root" folder and an empty "cms_files" subfolder).

So I tried changing this line to just a forward slash (/) but all that showed is all the PowerCMS folders. How do the links to internal pages work in the HTML editor? How can I browse to the site files that are on the site root (at the same level as the "CMS" folder)?

Please explain.
Marek

Sign in to reply to this post

Eric Mittman

The variable for the files path is using a relative path from the location of this configuration.php file to the folder to look in. You just need to get a path to that folder from within this files current directory. It is no different that if you had an image at the root of your site and you wanted to include it on a page in a sub directory. The image source would look like this:

<img src="../theimage.png"/>

I have opened a ticket for you on this issue so that we can help you look into this further. To update the ticket please login and visit your support history.

Sign in to reply to this post

marek

Thanks for your help Eric.

I have updated the ticket. Awaiting your reply.

Sign in to reply to this post

Eric Mittman

I have not yet responded to the ticket but I will shortly.

Sign in to reply to this post

mikercito

SO what was the solution then?

Originally Said By: marek
  Thanks for your help Eric.

I have updated the ticket. Awaiting your reply.  
Sign in to reply to this post

Eric Mittman

There were a couple of things going on for this for this. The first thing was that the relative path was not properly updated for the location of the files on the server. I added in a ../ to the path and this worked ok.

Next I looked at the $kfm_workdirectory in this file and set it to ''.

you will still not be able to browse to the php files since they are explicitly restricted for security reasons. You will need to edit the following three files to allow for PHP but be careful with this as it can pose a major security issue:

HTMLEditor\editor\plugins\kfm\configuration.php
look for $kfm_banned_extensions and remove ,'php'

HTMLEditor\fckconfig.js
find FCKConfig.LinkUploadAllowedExtensions and add |php to the end of the list

HTMLEditor\editor\filemanager\connectors\php\config.php
find $Config['AllowedExtensions']['File'] and add in , 'php' at the end of the list

So for this user to be able to select php pages from the root of the site the path needed to be updated in the configuration file so it points at the root of the site, then these other changes needed to be made to allow for php files to be selected.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...