PDA

View Full Version : Adding Icons or bullets


tmeyer45458
06-13-2006, 04:36 AM
I'm trying to add an icon/bullet next to each category and have yet to get it right. I was hoping that someone could point me in the right direction.

Thanks for any help!

munt
06-13-2006, 05:16 AM
i have it before

<a href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL|escap e}/{else}index.php?c={$cat.ID}{/if}" class="cats">{$cat.TITLE|escape}</a>{if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}</h2>

in main.tpl

Boby
06-13-2006, 10:58 AM
@ munt

You have a small error here:
Content visible to registered users only.
Remove the space in "escape"

Boby

munt
06-13-2006, 01:15 PM
thanks
weird the error is not showing on any of my dirs
but i copy/pasted that from a template and not showing the space there either.. must have been in copy/pasting it

fworth
06-13-2006, 09:38 PM
Content visible to registered users only.

Hey i put the code above under

{* Display subcategories *}

Its looking funny where does it go?

munt
06-13-2006, 10:16 PM
<h2><img src="{$smarty.const.DOC_ROOT}/yourimage.gif">&nbsp;<a href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL|escap e}/{else}index.php?c={$cat.ID}{/if}" class="cats">{$cat.TITLE|escape}</a

fworth
06-13-2006, 11:31 PM
I put the code in different places but it still not working where does it go at in the main.tpl?

munt
06-14-2006, 12:07 AM
dont add that whole code above... find it in main.tpl

and add <img src="{$smarty.const.DOC_ROOT}/yourimage.gif">&nbsp; as it is above

it may be different in your template but should be pretty muchthe same..

jas
07-19-2006, 02:16 AM
Content visible to registered users only.
I am also trying to add folder icon to categories. I folllowed your code and was able to suceed in showing the icons for categories accept the original bullet is still showing in front of the icon. Any thoughts on how to remove this?

anon
07-19-2006, 03:50 AM
Content visible to registered users only.
find the code that looks like this &bull; and delete it

jas
07-19-2006, 01:16 PM
Content visible to registered users only.

I searched for this code in the main.tpl but did not find it. Also, in the style sheet, there is this entry: Content visible to registered users only.

I tried looking for &square or &sq and could not locate this either in the main.tpl. I also tried deleting the above entry from the syle sheet but then I would get circles instead of squares in front of the categories. Any other suggestions would be appreciated.

jas
07-19-2006, 06:23 PM
I fixed the problem by deleting the <li> tag right before the mentioned code in the main.tpl. I don't no if it is a proper fix although it works anyway.

arindra
07-31-2006, 09:01 AM
the adding icons thing is now getting quite regular :)