News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Category Template doesnt work

Started by tobisagt, January 04, 2012, 18:26:16 PM

Previous topic - Next topic

tobisagt

HI there,

in the product categories you can change the template for your specific category. But it dont wanna work for me.
Is it just me, or is it a global problem?

-Tobi

trevorsm

If you are using the shopfront then try changing:
components/com_virtuemart/views/virtuemart/tmpl/default_categories.php

It had me a bit confused for a while as well.

tobisagt

Thanks for your reply!

But what i mean is to change the joomla Template for the category.

See screenhot.

[attachment cleanup by admin]

JtouchMobile.com

Modify a category, say: administrator/index.php?option=com_virtuemart&view=category&task=edit&cid=1

And make sure that there has no value for "Category Template", or you can also select a template for this specific category.

Cheers,
8)
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

tobisagt

Quote from: MobileMeWs on January 05, 2012, 04:11:01 AM
or you can also select a template for this specific category.

Thanks Moblie for your reply!

This is what i did try, but it dont seems to work. I think i have to tell exactly what i want to do. Maybe there are other ways to realize it.

The theory is simple. On the Category Page i want to show on the left side of my site the "vm categories module". But ONLY on the category pages. Not on the product detail page.
I thought selecting a different template for categories will be an easy way to do so.

jenkinhill

Selecting Joomla templates won't work for that as modules are assigned to menu items.

For solutions see this thread:  http://forum.virtuemart.net/index.php?topic=94953.msg311568#msg311568
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

tobisagt

Quote from: jenkinhill on January 05, 2012, 12:56:24 PM
Selecting Joomla templates won't work for that as modules are assigned to menu items.

For solutions see this thread:  http://forum.virtuemart.net/index.php?topic=94953.msg311568#msg311568

Thank  You! That worked!

tobisagt

Ok, im back again! :)

Now i have another reason to select a specific template for categorys.
But i still cant get this to work! He always show the standard joomla template.

Does someone can help me, pls?  :D

PRO

tobisagt

if you use the joomla menu system, it sets an itemid at the edn of the url, and the template can be set to menu items.

OR, if you wanna load 2 different css files based on category, you can still use this type of code
http://www.kaizenmediaworks.com/virtuemart-template-and-module-control
TO specify the css file to load, OR even set a body css class to the page based on the category
Look here
http://forum.virtuemart.net/index.php?topic=94044.0

^^^ you could do the same with the body class in the template. You dont have to use every single "dynamically" generated class, BUT choose just to use the ones you want.


neutrino86

I have the same problem, when i specify a different category template than default joomla template the default template is always shown.

Anyone have a solution for this ?

dragonself

I also have the same problem and looking for solution.
And I just wonder what is the usage of field "Category Template" (VM admin > Products > Product Categories > Details )