Keyword

Showing category title in a module WITHOUT a link.

More
12 years 6 months ago #64229 by X-Bit
Sorry if this is a known matter, I did not found any corresponding information.

I would like to show titles from one category in a module. This works, without any problem. My only problem would be, that I do not want to link to the article, I would like to just display the titles.

Idea behind that is to create a "Coming Soon" section, where I may list coming projects without linking to them to early.

I tried different ways, K2 tools and as well the settings at the category with no joy at all!

Thanks for some ideas!

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

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
12 years 6 months ago #64230 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: Showing category title in a module WITHOUT a link.
Hi X-Bit,

You can make use of the sub template MVC override for the mod_k2_content. Copy the mod_k2_content folder to your template/html/ folder and edit the default.php file

Remove the <a ....></a> in line 38 to just
<?php echo $item->title; ?>

Just hide the rest that you dont want to show in Item view options (common for either source)

K2 Rocks \m/

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


Powered by Kunena Forum