modal windows

GK User
Sun Feb 14, 2016 2:35 pm
hi
is it possible showing k2 item in modal window?

thx
User avatar
Junior Boarder

GK User
Mon Feb 15, 2016 6:25 pm
I finally achieved modal windows with this template:
http://pruebas.darocaarquitectos.com/es/fotografia
but if I use k2 tag filter, inexplicably it doesn't work.

I don't understand anything...

Could anybody help me, please?
User avatar
Junior Boarder

teitbite
Fri Feb 19, 2016 9:01 am
Hi

To be honest, I'm not sure what You've done, since this layout was not designed like that so I'm not sure how to help with tags layout, but since K2 is using similar layouts I'm guessing that whatever was done to /html/com_k2/templates/default/category_item.php has to be done to /html/com_k2/templates/default/tag.php too.
User avatar
Moderator

GK User
Fri Feb 19, 2016 1:36 pm
I only added modal class, and it works as you can see here:
http://pruebas.darocaarquitectos.com/en/photograph

but once time you use tag filter, inexplicably it doesn't work.

I've changed tag.php too but nothing: it doesn't fix the problem

Could you see it, please?
User avatar
Junior Boarder

GK User
Mon Feb 22, 2016 11:29 pm
teitbite wrote:Hi

To be honest, I'm not sure what You've done, since this layout was not designed like that so I'm not sure how to help with tags layout, but since K2 is using similar layouts I'm guessing that whatever was done to /html/com_k2/templates/default/category_item.php has to be done to /html/com_k2/templates/default/tag.php too.


I think the solution is in gk.script.js (items.removeClass('gk-active'); items.addClass('gk-hide');)
gk=gavick?
User avatar
Junior Boarder

teitbite
Thu Feb 25, 2016 9:57 am
Hi

I do not think so. As You've just told me all it needed was to add a class "modal", so I can see all the conditions were meet. What I think is happening here is that modal is prepared on page start, so it simply does not know about this "after filter" elements and cannot prepare them or something like this. This modification is a little bit beyond our support, so I can advice to remove filter with css like:

Code: Select all
.portfolio-grid > div > h2 {
    position: relative;
}
.portfolio.portfolio-grid .componentheading + .item-filter {
    display: none;
}


and add a menu with a category/tag layouts leading to certain images.
User avatar
Moderator


cron