Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
03-05-2009, 09:59 AM #1
- Join Date
- Oct 2005
- Thanked 2 Times in 2 Posts
PHP and Joomla code help needed please
Hello I have a Joomla 1.5.9 and PHP question, which Im hoping someone can help me out with -
I want to apply different individual styles to my frontpage articles. Not just the usual single page class suffix style which applies to the whole page.
I have 2 article categories (category1 and category2) and I need different styling for each category. For example, articles in category 1 will have different styling for articles in category2. This is just for the front page only.
I am using the Beez template (default.php and default_item.php).
The standard joomla code to output a page class suffix is -
<div class="contentpaneopen_edit<?php echo $this->item->params->get('pageclass_sfx'); ?>">Code:
<div class="contentpaneopen<?php echo $this->item->params->get( 'pageclass_sfx' ) . '-' . $this->item->category; ?>">
I am hopeless with php and really stuck on this one, I hope my question has made sense
Last edited by moss2076; 03-05-2009 at 11:17 AM.