Keyword

k2 content module - Disable link of the title

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
5 years 2 days ago - 5 years 1 day 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: 5 years 1 day ago by Franz Heine. Reason: Solved

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

More
5 years 1 day ago #173736 by JoomlaWorks
Replied by JoomlaWorks on 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

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

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

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
5 years 1 day 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.

More
5 years 1 day ago #173741 by JoomlaWorks
Replied by JoomlaWorks on 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.

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

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

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
5 years 1 day 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.

More
5 years 1 day ago #173749 by JoomlaWorks
Replied by JoomlaWorks on topic k2 content module - Disable link of the title
Great.

Fotis / 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