COMMUNITY FORUM
Module category title link back to category?
- sicop
-
Topic Author
- Offline
- New Member
Less
More
12 years 9 months ago #67654
by sicop
Module category title link back to category? was created by sicop
Ok hi everyone.
im looking for a way to link the title to the category just joomla would do, when i publish a k2 category module i would like the title to link back to that category.
i tried with - Custom link title from within the module with no success im probally just missing something right?
or is there a way to hack it to make it work ? please
im looking for a way to link the title to the category just joomla would do, when i publish a k2 category module i would like the title to link back to that category.
i tried with - Custom link title from within the module with no success im probally just missing something right?
or is there a way to hack it to make it work ? please
Please Log in or Create an account to join the conversation.
- sicop
-
Topic Author
- Offline
- New Member
12 years 9 months ago #67655
by sicop
Replied by sicop on topic Re: Module category title link back to category?
bump! anybody ?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 9 months ago #67656
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Module category title link back to category?
Hi. Have you enabled the category setting in the module? Once you do that K2 will display the category of the item linked.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- sicop
-
Topic Author
- Offline
- New Member
12 years 9 months ago #67657
by sicop
Replied by sicop on topic Re: Module category title link back to category?
enable what exactly
what do you mean ? Module Manager: Module K2 content
i tried playing with these option bellow before without any result
Custom link at the bottom
Custom link title
Custom link URL
Or select a Joomla! menu item
what do you mean ? Module Manager: Module K2 content
i tried playing with these option bellow before without any result
Custom link at the bottom
Custom link title
Custom link URL
Or select a Joomla! menu item
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 9 months ago #67658
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Module category title link back to category?
Each item has it's own category with it's own link. If you have all the items from the same category then you can use:
<a class="moduleItemCategory" href="<?php echo $items[0]->categoryLink; ?>"><?php echo $items[0]->categoryname; ?></a>
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- sicop
-
Topic Author
- Offline
- New Member
12 years 9 months ago #67659
by sicop
Replied by sicop on topic Re: Module category title link back to category?
ok ..
i have look inside this file modules/mod_k2_content/tmpl/Default/default.php
i have the same line... im not sure i understand what you mean
all my item have their own category. if you can take a look in my signature the main page in my website i use k2 to display 6 news article of each category, but the category title dont link to the category?
still havent figure out to do this.
i have look inside this file modules/mod_k2_content/tmpl/Default/default.php
i have the same line... im not sure i understand what you mean
all my item have their own category. if you can take a look in my signature the main page in my website i use k2 to display 6 news article of each category, but the category title dont link to the category?
still havent figure out to do this.
Please Log in or Create an account to join the conversation.
- sicop
-
Topic Author
- Offline
- New Member
12 years 9 months ago #67660
by sicop
Replied by sicop on topic Re: Module category title link back to category?
bump !
Can someone out there help me out with this issue ? please.
Can someone out there help me out with this issue ? please.
Please Log in or Create an account to join the conversation.
- sicop
-
Topic Author
- Offline
- New Member
12 years 9 months ago #67661
by sicop
Replied by sicop on topic Re: Module category title link back to category?
Lefteris Kavadas ? can u help me with this please??
is there a nother forum for k2 help or this is it ?
is there a nother forum for k2 help or this is it ?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 9 months ago #67662
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Module category title link back to category?
The default K2 content module links item categories by default. So if you do not see the categories linked check that you have not any template overrides that are missing the link code.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- sicop
-
Topic Author
- Offline
- New Member
12 years 9 months ago #67663
by sicop
Replied by sicop on topic Re: Module category title link back to category?
thank for trying to help me...
i still havent figure how to do this ill have a look at my template and let the community know when i find the awnser..
im using artisteer template!
i still havent figure how to do this ill have a look at my template and let the community know when i find the awnser..
im using artisteer template!
Please Log in or Create an account to join the conversation.
- Ralf Longwitz
-
- Offline
- Junior Member
Less
More
- Posts: 35
11 years 10 months ago #67664
by Ralf Longwitz
Replied by Ralf Longwitz on topic Re: Module category title link back to category?
Hi sicop,
too bad you didn't receive the solution. It's not that difficult, really. Although my solution is not a nice one one and I'd hope there is (or someday will be) a better one.
I simply hid the title in the module and then added this to
\templates\joostrap\html\mod_k2_content\Default\default.php
Mine is a News category, and I copied the URL from a link that I created in an article. If I now change anything about the category, the link will break, of course ... Also, the <a> tags should not be around the <h3> tags, but in my case it's necessary to avoid difficulties with the styling.
too bad you didn't receive the solution. It's not that difficult, really. Although my solution is not a nice one one and I'd hope there is (or someday will be) a better one.
I simply hid the title in the module and then added this to
\templates\joostrap\html\mod_k2_content\Default\default.php
<a href="index.php?option=com_k2&view=itemlist&layout=category&task=category&id=6&Itemid=140"><h3>Latest News</h3></a>
Mine is a News category, and I copied the URL from a link that I created in an article. If I now change anything about the category, the link will break, of course ... Also, the <a> tags should not be around the <h3> tags, but in my case it's necessary to avoid difficulties with the styling.
Please Log in or Create an account to join the conversation.