Adding additional slots.

For those who want to add more categories than are currently allowed how would we add our own slots in manually?
0
Best Answer
-
peregrine MVP
the easiest way is to modify default.php
if you are just adding a couple more you could change
look for the lines
$hideCategory6 = strtolower(C('Plugins.HideCategory.NoCat6')); $hideCategory6 = preg_replace('/\s+/','-',$hideCategory6);
you could add a 7th by just adding two lines
$hideCategory6 = strtolower(C('Plugins.HideCategory.NoCat6')); $hideCategory6 = preg_replace('/\s+/','-',$hideCategory6); $hideCategory7 = strtolower(C('Plugins.HideCategory.NoCat7')); $hideCategory7 = preg_replace('/\s+/','-',$hideCategory7);
also look for these lines
|| ($Object->CategoryUrlCode == $hideCategory5) || ($Object->CategoryUrlCode == $hideCategory6)))
just make it look like this:
|| ($Object->CategoryUrlCode == $hideCategory5) || ($Object->CategoryUrlCode == $hideCategory6) || ($Object->CategoryUrlCode == $hideCategory7)))
then go to your config.php and add this line where the others are.
$Configuration['Plugins']['HideCategory']['NoCat7'] = 'thecategory-you-want-to-hide';
so for every category you want to add make the above 3 changes.
NOTE: the 12 minute response time.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
5
Answers
the easiest way is to modify default.php
if you are just adding a couple more you could change
look for the lines
you could add a 7th by just adding two lines
also look for these lines
just make it look like this:
then go to your config.php and add this line where the others are.
$Configuration['Plugins']['HideCategory']['NoCat7'] = 'thecategory-you-want-to-hide';
so for every category you want to add make the above 3 changes.
NOTE: the 12 minute response time.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.