Keyword

k2 content module - Disable link of the title

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
2 weeks 3 days ago - 2 weeks 2 days ago #173733 by Franz Heine
Franz Heine created the topic: k2 content module - Disable link of the title
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: 2 weeks 2 days ago by Franz Heine. Reason: Solved

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #173736 by Fotis
Fotis replied the topic: k2 content module - Disable link of the title
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
2 weeks 2 days ago #173738 by Franz Heine
Franz Heine replied the 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
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #173741 by Fotis
Fotis replied the topic: k2 content module - Disable link of the title
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
2 weeks 2 days ago #173746 by Franz Heine
Franz Heine replied the 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
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #173749 by Fotis
Fotis replied the topic: k2 content module - Disable link of the title
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