locked
How can I insert multiple images each one creating a smart content region? RRS feed

  • Question

  • I am writing an image plugin, like the default image plugin I would like to be able to insert multiple images at once.

    How can I do this so that each image inserted is its own SmartContent item? After the insert i would like to be able to manually adjust each image.

    Any ideas?

    Chris

     


    Chris Crowe [ IIS MVP - 1997 - 2009 ]
    Tuesday, June 22, 2010 7:41 PM

All replies

  • ... is this correct are you looking to input in batch a set of images(model), and looking (view) to edit them on a individual basis (presenter)?

    This may be slightly tricky as you will have to retrieve data from repositories (the model), persist it, and formats it for display in the view.

    whichever method you use, im sure it'll be an overnight success, if you take time a precedence to plan and develop it!?

    http://blogspot6.wordpress.com/

      

     

    Wednesday, June 23, 2010 2:21 PM
  • I may not have been clear.

    In Windows live Writer when you go "insert picture" you can select more than 1 picture in the dialog that is displayed.

    say for example you select 3 photos.

    You will get another dialog saying would you like them inline or a photo album.

    If you say inline they are all formatted to the current defaults for the insert picture plugin.

    They each are then editable by clicking the a specific picture in the GUI.

    My question is how do I do this in my own plugin?

    In my plugin I can insert 1 smart content item without a problem. But how do I insert for example two indepdant smart content items at the same time?, I know I could just click my plugin again to select another item but if you wanted 10 items inserted doing it at once would be a better option like the default insert picture pluin does.

    Chris


    Chris Crowe [ IIS MVP - 1997 - 2009 ]
    Saturday, June 26, 2010 2:43 AM