Keyword

k2 content module - Disable link of the title

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
10 months 1 day ago - 10 months 6 hours ago #173733 by Franz Heine
i would like to have the opportunity to deactivate the "linking" of the title in the k2 content module.

I know that ive to edit mod_k2_content.xml and the deafult.php in the tmpl folder.

Do you have any idea to realize it?
Last edit: 10 months 6 hours ago by Franz Heine. Reason: Solved

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
10 months 1 day ago #173736 by Fotis
It's best to create a module override in your template and just remove the <a> tag from the title. Much nicer than editing core K2 files.

More here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
10 months 14 hours ago #173738 by Franz Heine
Replied by Franz Heine on topic k2 content module - Disable link of the title
but that would change the "no linking" for all modules. I thought maybe i could extend the modul in the administration setting with "Link on title" yes or no. Like in the category settings

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
10 months 9 hours ago #173741 by Fotis
No, if you create a sub-template, e.g. copy the "default" folder and rename it to "nolinkedtitle", then place it inside /templates/YOUR_JOOMLA_TEMPLATE/html/mod_k2_content/ you will then be able to select this sub-template on any copy of the K2 Content module that you do NOT wish to have the title linked.

Simple.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
10 months 6 hours ago #173746 by Franz Heine
Replied by Franz Heine on topic k2 content module - Disable link of the title
Thx Fotis, works like a charm!

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
10 months 6 hours ago #173749 by Fotis
Great.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum