Page 1 of 1

how can i tweak category view?

Posted: Sat Mar 08, 2008 12:23 pm
by plainas
The category article list view shows a fancy table with a few columns, a filter form, pagination options, etc.
I want it to be a simple list instead. Only the links, nothing else.

I guess this should be made by editing a view file, right?
Which one?

Re: how can i tweak category view?

Posted: Sat Mar 08, 2008 4:35 pm
by plainas
Ok, i think i found the file.

instalationdir/components/com_content/views/category/tmpl/default.php

but then , on lines 22 and 23 it has this:

Code: Select all

		$this->items =& $this->getItems();
		echo $this->loadTemplate('items');
where's that 'items' template?
I need to edit it

Re: how can i tweak category view?

Posted: Sat Mar 15, 2008 3:42 pm
by radiant_tech
where's that 'items' template?
joomla_root/components/com_content/views/category/tmpl/default_items.php

The 'default.php' is the header portion of the page and 'default_items.php' handles the item list.

If you haven't considered it already, you should save your revised files as a template override rather than changing the core code.

Re: how can i tweak category view?

Posted: Mon Mar 17, 2008 8:25 pm
by plainas
I actually found out how to change the view sometime ago, since i got no reply in here i ended up finding out myself.. :(

Anyway, i didn't do it yet, precisely because i was trying to find an alternative to core hacking.

Where can i find documentation about overriding templates?
Or you can explain me very briefly how to do it here if possible.
How do I create another items template based on the default one, and how do i make it available from the admin menu?

I also need the following string:
ContentViewCategory

from the main template... it shows huge on the template i am using. I looked around in the admin pannel and apparently there's no way to take that away without designing a new template.