2 edb Nov 04, 2006 09:43

Yes, I'm using the files in the 'custom' skin. It obviously needs both:
_categories.php in the custom skin and
_categories.plugin.php
Thanks for you help.
The _categories.php file is no longer part of the custom skin. It doesn't need it is why. The custom skin's _main.php file calls categories with this:
<?php
// -------------------------- CATEGORIES INCLUDED HERE -----------------------------
// Call the Categories plugin:
$Plugins->call_by_code( 'evo_Cats', array( // Add parameters below:
) );
// -------------------------------- END OF CATEGORIES ----------------------------------
?>
So it's the plugin you need to look at. I *think* you can turn off the "all" link by making it's parameter be empty. Like this:
<?php
// -------------------------- CATEGORIES INCLUDED HERE -----------------------------
// Call the Categories plugin:
$Plugins->call_by_code( 'evo_Cats', array( // Add parameters below:
'option_all'=>'',
) );
// -------------------------------- END OF CATEGORIES ----------------------------------
?>
In the categories plugin, I removed the word All on the end that you see below and it's gone now! :)
if(!isset($params['option_all'])) $params['option_all'] = T_('All');
Did it not work by doing it in the skin? The reason for keeping changes in your skin is so that you don't lose them when you upgrade. Just curious.
I couldn't find any place to do that same thing other than the category plugin.
EdB wrote:
Did it not work by doing it in the skin? The reason for keeping changes in your skin is so that you don't lose them when you upgrade. Just curious.
But your skin's _main.php file is what calls the categories plugin! The code I posted above goes in your skin is the thing.
Okay, gotcha this time! I misunderstood what you said previously, sorry *sheepish grin*...
I put the categories plugin file back the way it was, and put your code in the main file, and all is good with the world, thank-you!
Now if only I could catch on to the Zen Cart software just a teensie little bit! Maybe I'll just use my blog and link it to Pay Pal to sell my graphics goodies. :)
EdB wrote:
But your skin's _main.php file is what calls the categories plugin! The code I posted above goes in your skin is the thing.
Categories are now a plugin, though I'm pretty sure older files and functions are momentarily supported. Are you seeing this with the 'custom' skin?