Changing the default document library in the file/image manager

8 posts, 0 answers
  1. Wendy Chua
    Wendy Chua avatar
    6 posts
    Member since:
    Jun 2008

    Posted 12 Jul 2008 Link to this post

    Hi,
    I am using the latest version of Telerik RAD Editor in MOSS  2007. Is there anyway to change the default document library in the file/image to other site?

    For example, when inserting file/image, I want it to be defaulted to parent or a specific library. Even there is no way to go to the parent site at all from the default user interface.

    I also want to do is dynamically via a code-behind or javascript, because the default libary location can be different from site to site. Whether this is possible?

    Thanks
  2. Wendy Chua
    Wendy Chua avatar
    6 posts
    Member since:
    Jun 2008

    Posted 14 Jul 2008 Link to this post

    *bump*

  3. George
    Admin
    George avatar
    859 posts

    Posted 15 Jul 2008 Link to this post

    Hi Wendy,

    If you want to use different configuration files for different webs, please review the following help article:
    http://www.telerik.com/help/aspnet-ajax/different-configuration-files-for-different-webs.html

    Note that RadEditor's Managers are designed to work with the libraries from the current site collection only. If you want to access library in another web of the current site collection, you can set the editor's ImagePaths( DocumentsPaths ...) property, in the ConfigFile.xml/ListConfigFile.xml (this depends on your scenario), to point to the desired library.

    I hope this helps.

    Sincerely,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. Wendy Chua
    Wendy Chua avatar
    6 posts
    Member since:
    Jun 2008

    Posted 16 Jul 2008 Link to this post

    Hi George,

    I'm aware of the configuration file. But what I require is to dynamically change the paths based on which site I'm currently in. So I cannot put a static path on the configuration file.

    That's why I asked whether I can change it via a server/client code?

    Thanks.
  5. George
    Admin
    George avatar
    859 posts

    Posted 16 Jul 2008 Link to this post

    Hi Wendy,

    You can achieve the desired behavior by setting different configuration files for the different webs and in each file set the desired libraries to be accessed. For more information please review the following help article:
    http://www.telerik.com/help/aspnet-ajax/different-configuration-files-for-different-webs.html

    Currently, there is no other way to achieve the desired functionality.

    Kind regards,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Peter Livsey
    Peter Livsey avatar
    44 posts
    Member since:
    Aug 2012

    Posted 23 Jul 2008 Link to this post

    Hi

    I am trying to do something similar.  We have a central image library that is held in a separate site collection to our public sites. 

    We have separate config files for each site so we can easily set the imagepath properties for each site to be different, however it is likely that each site will use the same library.

    I've tried adding a section to one of the config files to set the imagepath to our picture library like so:

      <property name="ImagesPaths">
         <item>http://county.durham.gov.uk/sites/CentralArea/Public%20Images/</item>
       </property>

    However when I click to the image manager the Image URL path displays as NOT FOUND/

    How would I change the path to use the picture library?

    Thanks
    Peter
  7. George
    Admin
    George avatar
    859 posts

    Posted 24 Jul 2008 Link to this post

    Hi Peter,

    The Telerik's Image Manager is designed to work with the libraries from the current site collection only. If you want to access library in another web of the current site collection, you can set the editor's ImagePaths property, in the ConfigFile.xml/ListConfigFile .xml (this depends on your scenario), to point to the desired library. Note that, you access libraries from another site collection.


    Kind regards,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Plopper
    Plopper avatar
    12 posts
    Member since:
    Jul 2008

    Posted 30 Jul 2008 Link to this post

    According to the documentation, the ImagesPaths property should be able to take relative paths like with the ~ sign as substitute for the current webapplication. In my WSS-only environment the ~ sign does not work (produces a 'NOT FOUND' in the Image Library). Relative paths starting with '/' do work OK.

    Check - I just found a reply from George to some other article stating the same, that was mentioned above: http://www.telerik.com/community/forums/thread/b311D-bcmeak.aspx#501486. The '~' just does not work under MOSS (or WSS for that matter).

    One extra tip: in case the MOSS or WSS Picture Library's name contains space characters, do not replace that with %20 in the config file 'ImagesPaths' property, just use spaces. In my case I have a 'Site Pics' Picture Library and the ImagesPaths property looks like the following:

    <property name="ImagesPaths">
       <item>/Site Pics</item>
    </property>

    Using the %20 for a space character produces the 'NOT FOUND' string in the Image Manager.
Back to Top