Keyword

List of categories

  • felipergueza
  • felipergueza's Avatar Topic Author
  • Offline
  • Elite Member
More
10 years 3 months ago #129106 by felipergueza
List of categories was created by felipergueza
How can I create a list of categories using the native tools of all my product k2 in position left or rigth of my temple.

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

More
10 years 3 months ago #129107 by jeffrey liu
Replied by jeffrey liu on topic Re: List of categories
This is how i did it:

1) go to \modules\mod_k2_tools

2) modify mod_k2_tools.xml
add one option: categories column view as 9th option of K2_SELECT_MODULE_FUNCTIONALITY

3) go to helper.php, duplicate function treerecurse, and make some modifications to get a list of CAT

4) make a tamplate file in \modules\mod_k2_tools\tmpl for output

basically, you will get a array of all cat (or partial, depends on your xml, and function modification)
then, use CSS to layout it.

Here is a shot of my front page.

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

More
10 years 3 months ago #129108 by Lefteris
Replied by Lefteris on topic Re: List of categories
@felipergueza
Hi. I don't get exactly what you are trying to do. You can try to create a new instance of K2 tools module in the module manager.

@jeffrey liu
Modifying core K2 files is a really bad idea. Doing so will make you lose all your changes in future updates.

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

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

More
10 years 3 months ago #129109 by jeffrey liu
Replied by jeffrey liu on topic Re: List of categories
I found no place override mod_k2_tools, thats why went to its core. :blink:

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

More
10 years 3 months ago #129110 by Lefteris
Replied by Lefteris on topic Re: List of categories
@jeffrey liu

You can duplicate the whole module and give it a new name. This way you will have your own module and you can do whatever you like.

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

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

More
10 years 3 months ago #129111 by jeffrey liu
Replied by jeffrey liu on topic Re: List of categories
geeeeee.....why i forgot that hidden "Discover" function :angry:

Thanks.

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

More
10 years 3 months ago - 10 years 3 months ago #129112 by jeffrey liu
Replied by jeffrey liu on topic Re: List of categories
Error: Module XML data not available

If you ever come across the error message “Module XML data not available” while editing module in admin panel , make sure you have xml file inside your module folder in the name “mod_YOURMODULENAME.xml”

this might be the problem and solution when using "Discover" function to install the new copy of module.

and dont forget include a copy of language file with mod_YOURMODULENAME in /language folder too

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


Powered by Kunena Forum