hi,
i'm trying to add some code to the category.php file inside the template folder of com_k2.
i have a category page displaying two subcategories. i would like to be able to click on the subcategories and go straight into the first item in that category rather than to the category view which is the default link.
i plan on having each of the subcategories as galleries and when i click on a 'gallery' i go through to the first item in that gallery (or subcategory)
i'm thinking i need to write some php inside category.php that retrieves the items from the current subcategory. i can then isolate one of the items and wrap that link around the subcategories on the page.
hope that makes sense. anyone any ideas?
example:
go to this page:
walksandwildlife.co.uk/galleries/
click a subcategory (or 'gallery')
then bypass this page:
walksandwildlife.co.uk/galleries/gallery-1
and go straight to this page:
walksandwildlife.co.uk/galleries/gallery-1/item/288-image-1
many thanks
dave