« Save skin for each blogimage/file managment system »

extended categories

2004-04-13

Permalink 11:06:56 am, by Francois Planque Email , 71 words   English (US)
Categories: Popular demand

extended categories

We need to handle these 3 new fields:


cat_description
cat_longdesc

cat_icon


the icon is just an icon name. The user can include if in
his template like this:

<img src="somepath/<?php cat_icon() ?>" />


We have permission to steal all the icons on
http://www.thauvin.net/blog/index.jsp for the demo.

Let's save these in a 'caticons' directory next to 'smilies'

1 comment

Comment from: Isaac Schlueter [Visitor]
Isaac SchlueterThe evo_categories table has columns for icon, longdesc, and description, so maybe this is already planned.

Suggestions:
1. Add back-office stuff to upload a pic, and enter short and long descriptions for each category in b2categories.php, action='Edit'.
2. Template functions:
single_cat_description(-)
single_cat_longdesc()
single_cat_icon()

All should work the same way as single_cat_title(): only show when one category is selected.
3. Member functions:
Item::cat_icons( $mainclass='#', $otherclass='#') List all the category icons. <img class="$otherclass" src="somecatpic.jpg" /><img class="$mainclass" src="maincatpic.jpg" />
Item::main_cat_icon( $imgclass='#') Show the icon for the main category only.
Item::cat_icon_links(-) Make all the icons links to the categories.
Item::main_cat_icon_link(-) Make the main cat icon a link to the category.
05/16/04 @ 18:02

Fatal error: Call to undefined method evonet_Module::SkinEndHtmlBody() in /home/b2evonet/www/inc/_core/_misc.funcs.php on line 65