how can i tweak category view?

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
plainas
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Wed Feb 27, 2008 12:53 pm

how can i tweak category view?

Post by plainas » Sat Mar 08, 2008 12:23 pm

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?

plainas
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Wed Feb 27, 2008 12:53 pm

Re: how can i tweak category view?

Post by plainas » Sat Mar 08, 2008 4:35 pm

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

radiant_tech
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Sat Dec 15, 2007 3:02 pm
Location: Washington DC Metro

Re: how can i tweak category view?

Post by radiant_tech » Sat Mar 15, 2008 3:42 pm

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.
Denise

plainas
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Wed Feb 27, 2008 12:53 pm

Re: how can i tweak category view?

Post by plainas » Mon Mar 17, 2008 8:25 pm

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.


Post Reply