Insert category picture

Post Reply
lucarm84
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat May 03, 2008 12:05 am

Insert category picture

Post by lucarm84 » Sun May 04, 2008 4:59 pm

Hi, i hope to write in the correct forum.
In homepage i have this:

ARTICLE TITLE
ARTICLE CATEGORY
TEXT TEXT TEXT

I want this:

ARTICLE TITEL
CATEGORY PICTURE
TEXTTEXTTEXT

I found this tmp: components>com_content>views>frontpage>tmp>default_item.php
I try to edit and i found this part:

Code: Select all

<?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
		<span>
			<?php if ($this->item->params->get('link_category')) : ?>
				<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
			<?php endif; ?>
			<?php echo $this->item->category; ?>
			<?php if ($this->item->params->get('link_section')) : ?>
				<?php echo '</a>'; ?>
			<?php endif; ?>
		</span>
		<?php endif; ?>
i want to add something like

Code: Select all

<img src="http:www.mysite.com/image/''CATEGORYNAME''.gif
I don't know php syntax, can one of use help me to make this changing? Any ideas?
Please help me becouse i really need to modify this component :eek:

Thanks :)

Post Reply

Return to “Joombie Developer Lab”