These are chat archives for reactioncommerce/reaction

25th
May 2016
Aesop7
@Aesop7
May 25 2016 00:52
Hi everyone, I'm using the inline form (code below). Is it possible to have that form render in "register" mode instead of "login" (i.e., the view that happens when you click the "register" button)
        <div class="accounts-dialog accounts-inline well" style="...">
          {{> loginForm}}
        </div>
It's the biggest thing that users get stuck on for our site, so figuring out a solution would be a HUGE help
Aesop7
@Aesop7
May 25 2016 01:05
It looks like the code is here but {{> Template.dynamic template=loginFormSignUpView data=loginFormData}} just renders a blank form
Aesop7
@Aesop7
May 25 2016 01:19
I figured it out :smile:
{{> loginForm startView="loginFormSignUpView"}} in case anyone needs it
Brent Hoover
@zenweasel
May 25 2016 01:21
:+1: I’m glad you figured it out as I didn’t have any idea
Aesop7
@Aesop7
May 25 2016 01:23
it took a little bit, but the key line is here
Brent Hoover
@zenweasel
May 25 2016 01:24
Yes, that makes sense
Valery Orloff
@valorloff
May 25 2016 05:53
where is defined url function, which is show images in productimageGallery.html ?
Brent Hoover
@zenweasel
May 25 2016 05:55
It’s created by the “media” helper
in productImageGallery.js
I believe it’s part of the array created here
  media: function () {
    let mediaArray = [];
    let variant = ReactionProduct.selectedVariant();

    if (variant) {
      mediaArray = Media.find({
        "metadata.variantId": variant._id
      }, {
        sort: {
          "metadata.priority": 1
        }
      });
    }
    return mediaArray;
Valery Orloff
@valorloff
May 25 2016 06:09
i mean "url" in
<img src="{{url uploading='/resources/placeholder.gif' storing='/resources/placeholder.gif' store='large'}}" class="img-responsive" alt="{{title}}">
Brent Hoover
@zenweasel
May 25 2016 06:09
right, that’s wrapped in {{#each media}}
Valery Orloff
@valorloff
May 25 2016 06:18
where the definition of a 'url' function?
I want use Google Drive links to images
Brent Hoover
@zenweasel
May 25 2016 06:20
I don’t believe it is a function, I believe it’s part of the media object that is being iterated over there
{{#each media }}
    <img src="{{ url store='thumbs' }}" width="800" height="400" alt="">
{{/ each }}
if you want to dig down deeper I think you would want to look at ReactionCore.Collections.Media
Valery Orloff
@valorloff
May 25 2016 06:29
"part of the media object" - what does it mean?
Brent Hoover
@zenweasel
May 25 2016 06:33
You see how the each is iterating over an array of media objects?
here this might be what you are looking for: https://github.com/CollectionFS/Meteor-CollectionFS#url
Each member of that array is an FS.File instance of a CollectionFS collection
The url helper is defined within the CollectionFS package, not within RC
Valery Orloff
@valorloff
May 25 2016 06:45
thanks, clear )
Brent Hoover
@zenweasel
May 25 2016 06:53
on a different subject, this would be helpful to people who are trying to host RC themselves on some version of Ubuntu:
https://medium.com/@jaaaco/run-meteor-app-as-a-service-on-ubuntu-c4aa1153408a#.v8pl94h7m
hrath2015
@hrath2015
May 25 2016 07:57
@zenweasel is there recommended node version with meteor 1.3?
Brent Hoover
@zenweasel
May 25 2016 08:47
I don’t believe there is any change. There is this discussion underway however: meteor/meteor#5124
hrath2015
@hrath2015
May 25 2016 08:47
thanks a lot
hrath2015
@hrath2015
May 25 2016 09:06
one more help. when we do this '''let Future = Npm.require("fibers/future")''' in code. which version of fibers is used by Meteor. Where Can I locate this info in code.
Brent Hoover
@zenweasel
May 25 2016 09:11
that’s a good question, that I don’t know the answer to. There must be a package.json somewhere in Meteor somewhere since it’s just a Node app?
hrath2015
@hrath2015
May 25 2016 09:13
NP. Thanks
Brent Hoover
@zenweasel
May 25 2016 09:13
I’m looking right now
hrath2015
@hrath2015
May 25 2016 09:18
Sure. Actually I tried the code search. Could not find any where. May be something is miss from myside. thanks
Lukas Sägesser
@ScyDev
May 25 2016 13:02

Is anyone here who knows Reaction/Meteor interested in doing paid contract work, a few days a week?

Forgive me if this kind of question is not welcome here, but before I search for a general Meteor dev, I wanted to ask the people who already know Reaction.

Valery Orloff
@valorloff
May 25 2016 15:20

trying to host RC themselves on some version of Ubuntu:
https://medium.com/@jaaaco/run-meteor-app-as-a-service-on-ubuntu-c4aa1153408a#.v8pl94h7m

What are the advantages compared to the MUPX?