I have solved it. use "static:app.load" hook , and use the method's first arguments ,we can setting routes to do what we want to do
Best posts made by holly
-
RE: How to develop a plugin to mount router
Latest posts made by holly
-
the rewards code bug
when I new a rewards ,and set Amount of times reward is claimable to 1 when user post count >=10 ,this rule can be trigger twice ,When you post several times, including twice as long to meet more than 10 Posts.
I view the code about rewards ,and found the issue in src/rewards/index.js 93 line
return (userRewards[reward.id] > reward.claimable) ? false : true;
if you change it to
return (userRewards[reward.id] >= reward.claimable) ? false : true;
the bug will disappear
I have mentioned it at github issues
-
How to add a flag or what plugin can do it
Who can tell me how to add a flag on a topic ?
-
Have a plugin for mark post as the essence ?
I need a plugin to allow administrator mark post as the essence ,and award the author specified number rewards .
Have a plugin for mark post as the essence ? If not , can you give me some guide me how to do it. Thanks!
-
RE: How to develop a plugin to mount router
I have solved it. use "static:app.load" hook , and use the method's first arguments ,we can setting routes to do what we want to do
-
How to develop a plugin to mount router
I want to add a custom route for a feature in my project,I think I need to develop a plugin for route .
But I don't know how to develop a route plugin .
Can someone give me an example ,Thanks -
how to generate the tpl file in the directory of public/templates
I find the directory(public/templates) is not in git repo ,but when I setup finished ,it appeared.
I need to modify the homepage a little.
I have seen the code ,but I still don't know where generate it . someone can tell me ?