Categorie-images

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Troel
Posts: 3
Joined: Tue Dec 18, 2007 11:56 am

Categorie-images

Post by Troel »

At this moment I'm making a website for the baby I'm expecting.

I used Serendipity before for my own website and I have there categorie-images that are shown on the frontpage (www.troel.nl). Unfortunately, that won;t work with the new website (purk.huijben.net). Is this because of the template I use (Competition entry by David Cummins powered by Serendipity v1.0 )?

How can I show those images?
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi

I disabled category icons for this template :(

To make them show you need to open the competition/entries.tpl and look for this code

Code: Select all

<!--
            <span class="serendipity_entryIcon">
            {foreach from=$entry.categories item="entry_category"}
                {if $entry_category.category_icon}
                    <a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
                {/if}
            {/foreach}
            </span>
-->
then just delete <!-- from the start of the code and --> from the end. Your category icons will then work ok

HTH

Dave
Troel
Posts: 3
Joined: Tue Dec 18, 2007 11:56 am

Post by Troel »

I thought something like that yeah ;)

I like the theme very much, but I really have a adorable image for one of the categories ;)

Thanks, it works ok now!
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Troel wrote:but I really have a adorable image for one of the categories ;)
You CAN'T make a statement like that and not actually show us!!! :lol:
=Don=
Troel
Posts: 3
Joined: Tue Dec 18, 2007 11:56 am

Post by Troel »

Don Chambers wrote:
Troel wrote:but I really have a adorable image for one of the categories ;)
You CAN'T make a statement like that and not actually show us!!! :lol:
Image

It's about pregnancy ;)
Post Reply