Developer forum

Forum » Templates » FancyBox refuse to work if using /admin/public/Getimage.ashx?

FancyBox refuse to work if using /admin/public/Getimage.ashx?

Dmitrij Jazel
Reply

Hej Guys,

I just runned into a problem here,

I am trying to use: /admin/public/GetImage.ashx? to render and display some ".tif" images located in the files.

Normally if I call fancybox it runs with direct link to an .png image for example... tested

But if GetImage.ashx gets on the way, it refuses to run.

 

Anyone has any suggestions how to solve this one?

 

Regards,

Dmitrij

 

 

 

 

 

 

 

 


Replies

 
Nicolai Høeg Pedersen
Reply

Just use the capabilities of the filemanager og gallery to generate the thumbnails.

 

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

You could also try to apply the class fancybox to your <a> elements to be explicit about which ones you want to have processed by Fancybox.

 

Cheers,

 

Imar

 

 
Dmitrij Jazel
Reply

Hmm well there is no problem with thumbnail, not sure how can I make <a> elements to be explicit about which ones I want to have processed by Fancybox, a simple class="fancybox" class on a link should be enough to trigger it. So not sure what you mean here Imar :-)

This is the way how I use it right now:

<a class="fancybox" href="/admin/public/Getimage.ashx?Image=<!--@Ecom:Product:Detail.Image.Clean-->&Width=482&Height=305&format=png&crop=5" data-fancybox-group="<!--@Ecom:Product.Name-->" >
    <img src="/admin/public/Getimage.ashx?Image=<!--@Ecom:Product:Detail.Image.Clean-->&Width=482&Height=305&format=png&crop=5" />
</a>

@Nicolai are there any resources about this functionality?

 

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Well - the manual is a good place to start.

http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Modules/File-Manager/Advanced-configuration.aspx

 

Don't see why your implementation does not work though. Maybe a fancybox issue. See this thread:

http://stackoverflow.com/questions/2087237/fancybox-not-showing-streamed-image-correctly

Votes for this answer: 1
 
Dmitrij Jazel
Reply

Hej Nicolai,

http://stackoverflow.com/questions/2087237/fancybox-not-showing-streamed-image-correctly post worked perfectly :-)

 

I just used $('.fancybox').fancybox({'titlePosition':'inside','type':'image'}) 

 

Thanks allot for help! :-)

 

 

 

 

You must be logged in to post in the forum