Keyword

K2 Module PHP Question

  • Steven Johnson
  • Steven Johnson's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 8 months ago - 11 years 8 months ago #108833 by Steven Johnson
K2 Module PHP Question was created by Steven Johnson
I have a quick question about the best way to modify a php statment in a K2 Content module

The content module has this statement which assigns odd / even lastItem module classes to each K2 item.
Example: joomlahosting.com/
(look for the recent articles section)


I would like add an additional class any items above 6. (ie 7 & 8)
The reason for this is it is a repsponsive template and I want to show fewer items on smaller screensizes.

Current Code:
Log in  or Create an account to join the conversation.

More
11 years 8 months ago #108834 by william white
Replied by william white on topic Re: K2 Module PHP Question
Good question. I would probably work around it by loading two modules and styling them differently either with a module template or using class suffix for that module. Load x number of items in the first module and use a template for the second module and slice the first x items out of the $item,s aray

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