Keyword

Multiple views for one category

  • Aaron Neville
  • Aaron Neville's Avatar Topic Author
  • Offline
  • New Member
More
11 years 10 months ago #106756 by Aaron Neville
Multiple views for one category was created by Aaron Neville
Working with Joomla 1.5 with K2 and we have a template for one category with a gallery styled list as well as a standard list in a table format. The trouble is that this template yields out to 400K+ source file (not including javascripts and images!). The template uses javascript for switching the visibility of the layouts so that it's either list or gallery displayed in the container.

Of course, I'd like to split out this template in to two different view files and do one or both of the following:
• switching layouts loads a different page with whatever layout was chosen
• switching layouts asynchronously loads the other view in to the container

My problem is that I am brand new to Joomla and cannot figure out how to create/call different views for one category.

I thought that I could utilize jQuery.ajax() to load a different template file in to the container, but I cannot figure out the correct url or method for calling this extra template file.

Please let me know if I'm on the wrong track, etc.

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

More
11 years 10 months ago #106757 by william white
Replied by william white on topic Re: Multiple views for one category
K2 should be styled with overrides.
You can create two modules from com_k2 content which can use different styles and place them on the same page or in tabs

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


Powered by Kunena Forum