Author Topic: Template View Categories  (Read 689 times)

wdammak

  • Newbie
  • *
  • Posts: 8
    • View Profile
Template View Categories
« on: February 09, 2012, 04:38:06 AM »
Why there is not a template for views categories? :'(

Every time I make an update of Simple Review I have to redo the template.

NRyan115

  • SR Team
  • Sr. Member
  • *****
  • Posts: 445
    • View Profile
Re: Template View Categories
« Reply #1 on: February 09, 2012, 06:06:28 PM »
Hello, I am having a hard time understanding your question but I will try to answer as best I can.

There is a template for the list of categories as well as the list of reviews.

If you want to keep your changes to the template then you should consider making a new template as we have suggested in the guide. The template files only are overwritten in updates when something in the template has been updated.

wdammak

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Template View Categories
« Reply #2 on: February 10, 2012, 03:06:31 AM »
Thank NRyan115

I mean the view: index.php?option=com_simple_review&view=category
The view that lists the categories and top review.

(default view)
« Last Edit: February 10, 2012, 03:09:22 AM by wdammak »

row1

  • SR Sole Developer
  • Hero Member
  • *****
  • Posts: 1244
    • View Profile
    • Sockware
Re: Template View Categories
« Reply #3 on: February 10, 2012, 04:17:03 AM »
We didn't like the directory structure of the templates inside Joomla views as it doesn't fit into our vision about templates. Our idea is that you can easily download a template package (templates for review, categories, comments etc) and just upload the single folder to once place. We only provide the default template package which you should not modify. Instead you can follow the guides on this site to take a copy of the default and customise it to suite you needs-this way upgrade will not lose your changes.
If you find Simple Review useful please submit a Review (http://extensions.joomla.org/extensions/communities-&-groupware/ratings-&-reviews/4725/details), your positive reviews will help keep me going!
Please also make suggestions and possible improvements in the forum!

wdammak

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Template View Categories
« Reply #4 on: February 10, 2012, 04:26:31 AM »
Thanks row1

I created my own folder (template), it works for all the others pages/views except for the main page.
Maybe I need to specify it somewhere but I can't find where!

When I create a menu and I select a Component Simple Review (Default) it's no where I can choose my template :(

row1

  • SR Sole Developer
  • Hero Member
  • *****
  • Posts: 1244
    • View Profile
    • Sockware
Re: Template View Categories
« Reply #5 on: February 10, 2012, 04:39:36 AM »
Hi,

So you should put your template in the template folder e.g.:
www/components/com_simple_review/templates/default
www/components/com_simple_review/templates/mycustomtemplate

You can't specify the template at the menu level, instead you specify it in Simple Review when creating/editing a category or review e.g. you might have a movie category which uses the movies template.

Hope that helps.
If you find Simple Review useful please submit a Review (http://extensions.joomla.org/extensions/communities-&-groupware/ratings-&-reviews/4725/details), your positive reviews will help keep me going!
Please also make suggestions and possible improvements in the forum!

wdammak

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Template View Categories
« Reply #6 on: February 10, 2012, 04:54:40 AM »
Hi & thanks again,

Quote
So you should put your template in the template folder e.g.:
www/components/com_simple_review/templates/default
www/components/com_simple_review/templates/mycustomtemplate
It's done - Work.

Quote
You can't specify the template at the menu level, instead you specify it in Simple Review when creating/editing a category or review e.g. you might have a movie category which uses the movies template.
It's done - Work.

But when I must display the list all categories (categroy film, music, photos, ...) on the same page where I can specify the templete for this page?

wdammak

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Template View Categories
« Reply #7 on: February 10, 2012, 05:25:51 AM »
how should I do to use this file
/components/com_simple_review/templates/my_new_template/category/template.categorylisting.html.php

because my changes don't appear anywhere yet I selected my_new_categorie in configuration simple_review and when creating categories.

Joomla version: 2.5.1
Simple Review version: 3.0.13
« Last Edit: February 10, 2012, 05:29:24 AM by wdammak »

NRyan115

  • SR Team
  • Sr. Member
  • *****
  • Posts: 445
    • View Profile
Re: Template View Categories
« Reply #8 on: February 10, 2012, 06:02:57 PM »
Hello, Your last post made it very clear to me what you are now asking.
When you click on a category and view the list of reviews you can see the changes made by your custom template.

However, when you view the list of categories it is still using the default template for the category list. Am I understanding correctly?

NRyan115

  • SR Team
  • Sr. Member
  • *****
  • Posts: 445
    • View Profile
Re: Template View Categories
« Reply #9 on: February 10, 2012, 06:06:29 PM »
This may sound silly but on my site which uses a custom template I do not use the category list because I have only one category - and so I have missed this issue in the past. We have a setting to select the template for the Top Reviews which is shown above the category list, but do not have a specific setting to select the template for the category list. Unless I am missing something this may be a legitimate oversight.

row1

  • SR Sole Developer
  • Hero Member
  • *****
  • Posts: 1244
    • View Profile
    • Sockware
Re: Template View Categories
« Reply #10 on: February 11, 2012, 08:21:44 PM »
Sorry this is an oversight.

You could resolve this in two ways:
1. Create a new top level category which has a template and then put all your other categories under this. You would need to make sure that there is only one top level category and that the setting single category bypass is turned on. This is not an ideal workaround.
2. Change the default template until this is fixed.
If you find Simple Review useful please submit a Review (http://extensions.joomla.org/extensions/communities-&-groupware/ratings-&-reviews/4725/details), your positive reviews will help keep me going!
Please also make suggestions and possible improvements in the forum!

wdammak

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Template View Categories
« Reply #11 on: February 13, 2012, 04:21:30 AM »
ok it reassures me that there was one forgets :)
Thanks!