I did a small test using Sitefinity 5.4. Both websites are running on dev. web
server from VS2012. I prepared small video for problem demonstration: http://webbywell.com/actions.swf.html. Problem description below:
I created two websites. A and B.
Uploaded test image in the first website (A).
For the second website (B) I added new connection string to point to another
database to pull out images. Also I created new provider (ww4Images) for
Libraries (I used this post
as a guide).
For new provider (ww4Images
) I specified two parameters:
connectionString (pointing to new connection string)
After application restart, I was able to see two providers available to select
for images and other content items. If I switch to the second provider I can
see the test image but it is broken (see broken_image.png). It is broken in
Album and Details views.
If I go to the details view and check Link value I see:
Site A: http://localhost:12350/test/images/default-source/default-album/test.jpg?Status=Temp&sfvrsn=2 (valid)
Site B: http://localhost:60876/images/default-source/default-album/test.jpg?Status=Temp&sfvrsn=2 (broken
Next step: On site B using ww4Images
provider I upload another image (pic.png).
And it shows up just fine on site B in Album and Detail views (see second_image_siteB).
Link values for this image:
- Thumbnail in album: http://localhost:12350/test/images/ww4Images/default-album/pic.png.tmb?Status=Master&sfvrsn=2 (valid)
- Image in Details view: http://localhost:12350/test/images/ww4Images/default-album/pic.png?Status=Temp&sfvrsn=2
Site B: http://localhost:60876/images/ww4Images/default-album/pic.png?Status=Temp&sfvrsn=2
Please let me know what I’m missing here. It has to be something about
provider URL name. I have seen another parameter name for Libraries provider
, I tried to add it, but it doesn't change anything.
Also I can delete image upload in site A from site B using second provider.
One more observation, I can add new image using second provider and this
image becomes available in the in the website.