Wrong url using Nivo with ImageGallery

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/13/2012 1:20:24 PM
Gravatar
Total Posts 40

Wrong url using Nivo with ImageGallery

Hello,

I create a gallery using content installer and set it up to use Nivo but the <img .... /> tags that are generated have an extra / 

On the following function the variable webSizeBaseUrl is equal to "/Data/Sites/1/media/GalleryImages/0/WebImages/" so the first / is not correct when using http://localhost/mojo/ as an address instead of a http://site.com/ to access.

// Gallery.ascx.cs line 223
protected string FormatNivoImage(string imageFile, string caption)
{
return "\n<img src='" + webSizeBaseUrl + imageFile + "' alt='" + caption.HtmlEscapeQuotes() + "' style='width:" + config.WebSizeWidth.ToInvariantString() + "px;' />";
}

How can i solve this please?

Best regards,
João

11/13/2012 1:25:36 PM
Gravatar
Total Posts 40

Re: Wrong url using Nivo with ImageGallery

I think it could be

// Gallery.ascx.cs line 223
protected string FormatNivoImage(string imageFile, string caption)
{
return "\n<img src='" + imageBaseUrl + webSizeBaseUrl + imageFile + "' alt='" + caption.HtmlEscapeQuotes() + "' style='width:" + config.WebSizeWidth.ToInvariantString() + "px;' />";
}

11/15/2012 4:35:03 PM
Gravatar
Total Posts 18439

Re: Wrong url using Nivo with ImageGallery

Thanks for the bug report.  This is now fixed in the source code repository.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.