Fancybox as detail view

plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Fancybox as detail view

Post by plamen »

Hi,
I succeeded in implementing fancybox as detail view by modifying some source code.
Result is nice, and well responsive: demo
It works for images only and still is not fully tested.
I would like fancybox to become integrated in future versions of Phoca Gallery.

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fancybox as detail view

Post by Jan »

Hi, thank you for your info. Does the fancybox has something more than e.g. responsive Photoswipe:

https://www.phoca.cz/phocacartdemo/phoc ... id=1&pid=3

Will be great to get the info, what all did you edited and which libraries you have loaded, so I can add it to feature request list and take a look at it.

Thank you, Jan
If you find Phoca extensions useful, please support the project
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Re: Fancybox as detail view

Post by plamen »

Thank you, Photoswipe looks same, even better :) With share button also.
There are no arrows in mobile view which is good, but more lagging when sliding images :!:
Anyway it would be my choice, since all other detail view libraries are not fully responsive.
Actually I used highslide before and it was not good for mobile view.
Regarding coding: i've changed
/administrator/components/com_phocagallery/libraries/phocagallery/render - to add jquery.fancybox.min.js and jquery.fancybox.min.css
and
/components/com_phocagallery/views/category/tmpl/default_images.php - to modify html output 8)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fancybox as detail view

Post by Jan »

Ok, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply