1 n2ition Feb 14, 2005 22:39
3 n2ition Feb 15, 2005 00:55
I think you might misunderstand that kind of menu I am wanting. I would like a list menu like the one on the "blue sky" skin that is used for selecting skins. And I don't want the categories to disappear I just want to limit them from showing sub-categories when on the default blog page.
Thanks for your help.
4 stk Feb 15, 2005 03:22
No, you're right. That's not what I thought you meant.
Here is the relevant part from BluSky ... try this INSTEAD of the code you have in _main.php
<div id=categories>
<h4>Categories :</h4>
<!-- ========== START OF CATEGORIES ========== -->
<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ) ) ?>
<?php require( dirname(__FILE__).'/_categories.php'); ?>
<input type="submit" value="<?php echo T_('Get selection') ?>" />
<input type="reset" value="<?php echo T_('Reset form') ?>" />
</form>
<!-- ========== END OF CATEGORIES ========== -->
</div>
Dunno about the 2nd part (showing only the main cats), because the way that I would do it would be via CSS . SubCats THERE , but HIDDEN becaues of CSS. THEN, sub blogs wouldn't hide them & they'd be visible.
Good luck.
(1) Pull down menus ... here's a link that should help with that. (AFAIK, there isn't such a beast in b2evo that you can set up painlessly).
http://www.eightlines.com/tech/cssmenu/
(2) You can control which categories are visible using CSS, because the subcategories are listing as a <div categories><ul><li><ul><li> thing.
In your CSS file, all you need to do is have the "DIV#categories" UL UL { display:none } ... BOOM .. they should just disappear from your screen.
(There MAY be a way of doing it from inside b2evo, but the CSS route works).
Hope this helps.