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:
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:
13 years 10 months ago #108834
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