0

below is my categories url.

http://example.com/index.php?p=categories/vaporizers

i create a template files for categories like

templates/categories/index.html
templates/categories/_entry.html

my index.html is not called when categories view. please tell me where i create a mistake.

Thanks

1 Answer 1

6

When you create a category you will need to tell craft which template to load:

enter image description here

So for your example you would put categories/index in there and you should find the template gets loaded when you visit the category url.

See more about templating in the docs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.