Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Different RTE-functions at same site
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedDifferent RTE-functions at same site

 Post Reply Post Reply
Author
woodlander View Drop Down
Newbie
Newbie


Joined: 24 January 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote woodlander Quote  Post ReplyReply Direct Link To This Post Topic: Different RTE-functions at same site
    Posted: 24 January 2005 at 4:01pm

I'm currently implementing the RTE to a web site I'm working on. The RTE will be used in more than one location/page on my site and here's my problem.

I want to use different sets of functions depending on which page the RTE is on. E.g. on one page users can upload files, on another page (depending on type of user) file uploading should not be available among other functions.
 
How can I accomplish that since there's only one setup file that sets the functions by constant variables. I tried to make the constants regular variables by dim and then declaring each variable on each page using the RTE, but did not succeed.  Is there a way to have multiple setup-files?
 
Any help is much appriciated. Smile
 
Update: I'm using the new 3.0 beta


Edited by woodlander - 24 January 2005 at 5:57pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2005 at 6:06am
The simplest way is to install the RTE more than once.

Another way is to use mutiple setup files:-

  1. Make a secound copy of the file 'inlcudes/RTE_setup.asp' and the file 'RTE_editor_inc.asp'.
  2. In the new copy of 'RTE_editor_inc.asp' change the path to the include file to point to the new copy of the file 'inlcudes/RTE_setup.asp'
  3. For your secound RTE point it to the new RTE_editor_inc.asp' file
You should now beable to edit your new 'inlcudes/RTE_setup.asp' file to make the secound RTE different. You can repeat this procedure as many times as you require.

However, please note that you can only have 1 RTE per page and that the RTE files need to be in the same directory as the page you are including it in, otherwise their will be problems with things like paths to images etc.


Back to Top
woodlander View Drop Down
Newbie
Newbie


Joined: 24 January 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote woodlander Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2005 at 11:03am

The simple way isn't a choice since that requires multiple files and a complex file structure.

The "multiple setup files"-solution did not work. The second RTE still is affected by the original RTE_setup.asp Maybe there needs to be additional copys of other files?
 
I really want this to work since the second RTE is going to be used by users with limited access. A stripped RTE will be used for them.
Back to Top
woodlander View Drop Down
Newbie
Newbie


Joined: 24 January 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote woodlander Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2005 at 11:26am
I found the solution myself. Smile
 
The RTE_setup is included more than one file, hence there are more files who needs to be copied and then refered to.
  • RTE_javascript.asp
  • RTE_javascript_common.asp
  • non_RTE_javascript.asp
There are other files where RTE_setup is included but I found out that only these three files need to be copied and refered to in the RTE_editor_inc.asp copy.
Back to Top
woodlander View Drop Down
Newbie
Newbie


Joined: 24 January 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote woodlander Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2005 at 5:58am
Originally posted by -boRg- -boRg- wrote:

However, please note that you can only have 1 RTE per page and that the RTE files need to be in the same directory as the page you are including it in, otherwise their will be problems with things like paths to images etc.
 
Is there a way to make it possible to have more than one instance of the RTE per page or is it a functionality you might implement in future releases?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2005 at 7:42am
I spent many an hour, probally days, trying to make it so that mutiple RTE's can be placed on each page, but ran into to many problems.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.