Keyword

Using K2 Content to list articles with galleries?

  • Michael Hentrich
  • Michael Hentrich's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago #109831 by Michael Hentrich
Using K2 Content to list articles with galleries? was created by Michael Hentrich
I'd like to able to use k2 content or any other module to list ONLY articles that have image galleries. There is a feature in k2 content to be able to do this with articles with videos, but not with galleries. This would be a very handy. Any ideas?

Please Log in or Create an account to join the conversation.

  • Michael Hentrich
  • Michael Hentrich's Avatar Topic Author
  • Offline
  • New Member
More
11 years 7 months ago #109832 by Michael Hentrich
Replied by Michael Hentrich on topic Re: Using K2 Content to list articles with galleries?
I really need an answer of some kind. Maybe someone can even point me in the right direction?

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #109833 by william white
Replied by william white on topic Re: Using K2 Content to list articles with galleries?
start by reading modules/mod_k2_content\helper.php
around line 169 you will find

if ($params->get('videosOnly'))
$query .= " AND (i.video IS NOT NULL AND i.video!='')";

you will have to work backwards from there

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #109834 by Maik Kaune

Michael Hentrich wrote: ...There is a feature in k2 content to be able to do this with articles with videos, but not with galleries. This would be a very handy. ...


Good point! Should be in core as parameter. Would you mind to promote this idea to the developers. Thanks in advance!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum