Keyword

Load a category on other module

  • Nuno Soares
  • Nuno Soares's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #57039 by Nuno Soares
Load a category on other module was created by Nuno Soares
Hi,

I've searched the forum but I cannot find an answer for it... sorry if I'm repeating an already posted question.

Let's see this situation:
I have a mainbody and a sidebar. When I click on a menu button, the category description loads on the mainbody, but I would like to load the sub-categories titles and descriptions on the sidebar.
Is this possible?

I know this is a generic Joomla question, but since I'm using K2, the categories and items are all depend from each other.

Many thanks!
Tiago

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

More
12 years 11 months ago #57040 by troponin
Replied by troponin on topic Re: Load a category on other module
You can do that with mod the category_item.php of the K2 Template. You should set a main div in this place the custom div with maybe 80% width in css. The other 20% goes to the second div (Sidebar).

Now you can copy the code of Subcategory and Description in the Sidebar div.

Try a little - the Codedocumentation is good and you will find the things you need.

Be sure you do that with Template override.

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

  • Nuno Soares
  • Nuno Soares's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #57041 by Nuno Soares
Replied by Nuno Soares on topic Re: Load a category on other module
Thanks Thorsten for the quick response! :)

I'm an absolute newbie on this subject and mainly on code editing. I'll take a look a give it a try.
I don't know if I'll be able to go deep on php.

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

  • Nuno Soares
  • Nuno Soares's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #57042 by Nuno Soares
Replied by Nuno Soares on topic Re: Load a category on other module
Hi Thorsten,

Sorry, but I'm completely blind on this... can you give me a couple more hints? :blush:

Thanks,
Tiago

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


Powered by Kunena Forum