Hooks that are fired on the server side are only available for use for plugins in their server side code. Same for client side hooks they are only available for use in the client side code of plugins.
Handlers on client side
-
Hello,
What handlers to bound to the window object to get list of topics/posts titles of certain category cid on the client side?
Is that possible?
Thanks
-
When you are on the category page you can access the topics with
ajaxify.data.topics
and on the topic page itsajaxify.data.posts
.There are also hooks fired whenever new topics/posts are added. They are
$(window).trigger('action:topics.loaded', { topics: ajaxify.data.topics });
and$(window).trigger('action:posts.loaded', { posts: data.posts });