Using DbContentProvider and also need to include images from filesystem

2 posts, 0 answers
  1. Peter Kellner
    Peter Kellner avatar
    17 posts
    Member since:
    Jul 2007

    Posted 18 Oct 2007 Link to this post

    I need to have the user select images from the database using dbcontentprovider (which is working BTW, thank you), and also be able to include files from the filesystem.  That is, I want to be able to create html that looks like this:

    <img  src="http://localhost:51833/KnovoloWeb/ItemHandler.aspx?path=Root/Content113/turtle.jpg" /><br />
    <img alt="" src="/photo/img/01B.jpg" />

    Can I do this with different folders in the image manager button? Or, can I add a second Image Manager button to the editor, one for images from the file system and one for images from the database?

  2. Valeri Hristov
    Valeri Hristov avatar
    2252 posts

    Posted 19 Oct 2007 Link to this post

    Hello Peter,

    It will not be very easy to add another ImageManager tool on the toolbar, which is configured differently, please see the attached sample.

    The other option to provide additional logic in the content provider seems reasonable but will also need significant amount of code. However, most probably it will be easier for your users to open one dialog, instead of two, or at least they will not have to carry about the type of images...

    Let me know if I could provide additional help.

    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top