Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Showing description under Category name
422
MVP
We have category Blog.
We have description for it, eg: Check out our blog.
When we click on the blog category, we get :
↳ Blog
But no description underneath it. Any idea why ?
We have description for it, eg: Check out our blog.
When we click on the blog category, we get :
↳ Blog
But no description underneath it. Any idea why ?
There was an error rendering this rich post.
Tagged:
0
Answers
I am still getting to grips with Vanilla.
There was an error rendering this rich post.
class [PluginName]ThemeHooks extends Gdn_Plugin { public function CategoriesController_AfterBreadcrumbs_Handler($Sender, $Args) { $Description = $Sender->Data('Category.Description'); if ($Description) { echo ''.$Description.''; } } }
And named it class.422themehooks.php and uploaded to our plugin folder ?? the above code doesnt seem to have changed anything...
There was an error rendering this rich post.
There was an error rendering this rich post.
There was an error rendering this rich post.
http://vanillaforums.org/addon/527-vanillaforums.org-old-blue
If it works there, maybe that can give you an example for your theme :-)
There was an error rendering this rich post.
There was an error rendering this rich post.
class 422ThemeHooks extends Gdn_IPlugin {
I believe
grep is your friend.
There was an error rendering this rich post.
I would also be more descriptive.
class CategoryDescriptionThemeHooks extends Gdn_IPlugin
grep is your friend.
and name the file class.public_[name].php where [name] is the lowecases name of the class. Like class.public_categorydescription.php.
grep is your friend.