These are chat archives for reactioncommerce/reaction

9th
Feb 2018
aniwebcastle
@aniwebcastle
Feb 09 2018 07:00
Have anybody added cms section or page adding section (About, T&C) in admin panel? content upload, image upload?
Harshal Yeole
@harshalyeole-tudip
Feb 09 2018 07:35
Hey What do I do If I have to have some config for my plugin.
should I add config file or Reaction has something already?
Loan Laux
@loanlaux
Feb 09 2018 09:18
@harshalyeole-tudip Do you mean settings? You can add plugin-wide settings in the register.js file, and then access/set them using Reaction's API. More info here: https://blog.reactioncommerce.com/an-intro-to-architecture-the-registry/
Harshal Yeole
@harshalyeole-tudip
Feb 09 2018 09:49
Ok Cool
Harshal Yeole
@harshalyeole-tudip
Feb 09 2018 10:49
Why do I get "Example reaction product" every time I restart?
Michael Jenny
@prinzdezibel
Feb 09 2018 11:08
@harshalyeole-tudip It's the default data fixture that get's loaded from /private/data/products.json
Harshal Yeole
@harshalyeole-tudip
Feb 09 2018 12:56
ok
zzh1234567
@zzh1234567
Feb 09 2018 14:11
How to getProductsByTag use simple:rest API? can I use POST :http://47.89.254.126:3000/methods/products/getProductsByTag ?
Loan Laux
@loanlaux
Feb 09 2018 15:01
I would've probably told you to use this package: https://github.com/CollectionFS/Meteor-http-methods. But it hasn't been updated in two years and it's safe to say the Reaction team has pretty meh opinions about everything cfs-related.
The thing is, simple:rest creates endpoints for all publications and methods... Which is probably not what you want — but there might be options for you to only expose the ones you need
Michael Jenny
@prinzdezibel
Feb 09 2018 15:41
@loanlaux Ignore my comment on your PR. I'm watching the outdated stuff. sorry
Loan Laux
@loanlaux
Feb 09 2018 16:46
Haha, no worries @prinzdezibel!
I've noticed this lack of first capital letters on other languages by the way, but I'm unable to translate to anything else than French so someone else will need to take care of it
muffe
@muffeeee
Feb 09 2018 18:14
Hey, if I wanted to modify the navbar so that it didn't use TagBar but instead had custom departments/sections/links, how would I go on about that?
The custom links can be hard-coded for t
Michael Jenny
@prinzdezibel
Feb 09 2018 18:31
@muffeeee You can replace almost any React component in Reaction through the components API. See: http://api.docs.reactioncommerce.com/Components.html