Keyword

mod_k2_content and unpublished items

  • Mike Hermary
  • Mike Hermary's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #111746 by Mike Hermary
mod_k2_content and unpublished items was created by Mike Hermary
Hello,

I am using the mod_k2_content module on my client's website to display a list of available job positions with some description text displayed above the list. Each job position is a published K2 item. When there are no job positions available and all of the K2 items are unpublished, the entire module is no longer rendered in the HTML. I would like to change this behaviour and have the module title and description text render even when there are no job positions available / K2 items published. I know I can modify the mod_k2_content helper file, but is there a better way to achieve this with template overrides. I have attached a screenshot detailing what I am looking to achieve.

Any assistance is greatly appreciated.

Mike
Joomla 2.5.9
K2 2.6.5
Attachments:

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 6 months ago #111747 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: mod_k2_content and unpublished items
Hello Mike,

You have to edit mod_k2_content.php for this thing. You have to remove the if (count($items)) statement from there.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum