These are chat archives for reactioncommerce/reaction

11th
May 2015
Vigy
@vigyano
May 11 2015 04:52
@aaronjudd @spencern thanks. Is there any CMS integration packages? I would like to add pages(like home page, blogs) and allow edits by admins. Is https://github.com/ongoworks/meteor-content-areas package still active? I cloned and added the package but I am unable to edit footer pages content. any thoughts?
Aaron Judd
@aaronjudd
May 11 2015 04:53
@Vigyano that was a WIP, and work on it will be resumed soon…
it’s on the short list, but if you want to get it running again, PR’s would be happily accepted (and probably force me to take a look at the package as a whole again)
re: generally the CMS - we’re getting close to starting on that. might be a few weeks away, but have been making core changes that we’ll need
Vigy
@vigyano
May 11 2015 05:20
Great! I would like to contribute but just now new to reaction commerce and exploring the source but sure will start contributing soon. I got the clone of /reaction but I don't see the footer pages like about anywhere in the source. I just want to override the footer pages, don't know where to begin.
Goutham Veeramachaneni
@gouthamve
May 11 2015 05:27
Do you want the footer template of the about us and other templates?
Vigy
@vigyano
May 11 2015 05:38
yes, is that some package I need to load to change them. I just want to override or change the content and add images to customize.
Goutham Veeramachaneni
@gouthamve
May 11 2015 05:44
@Vigyano They are in client/templates/static
Also the footer is in client/templates/layout
Vigy
@vigyano
May 11 2015 06:08
Thanks @Gouthamve I overlooked the static folder in templates, thanks. Any idea, what should i do to make those pages editable through meteor-content-areas?
Goutham Veeramachaneni
@gouthamve
May 11 2015 06:10
Not sure. But this demo might help: https://github.com/ongoworks/meteor-content-areas-demo
Just make sure the user is an admin and add the start-editing button.
I just glanced at the code but I havent tried it yet, so it might not work.
Vigy
@vigyano
May 11 2015 06:18
I will try it out. thanks.
Vigy
@vigyano
May 11 2015 07:42
the demo works standalone, but when I tried to integrate in reaction in about.html, it doesn't. do I need to add some route in iron route? probably I am missing something.
Goutham Veeramachaneni
@gouthamve
May 11 2015 07:43
Hmm, will give it a shot now.
Vigy
@vigyano
May 11 2015 07:46
cool, thx
Goutham Veeramachaneni
@gouthamve
May 11 2015 07:51
Hmm, I think you did not add the package.
go to the packages folder and clone this repo https://github.com/ongoworks/meteor-content-areas
then go to the main directory and do meteor add ongoworks:content-areas
Then Everything should work.
Vigy
@vigyano
May 11 2015 08:02
I did that already -- cloned and added the package, but no luck. In about page, I added the edit button and editable block. anything else I need to add?
Goutham Veeramachaneni
@gouthamve
May 11 2015 08:25
Hmm, I just copied the whole template and added the helpers. It worked for me. Could you push your code to github or could you paste the template and helpers in a gist
Vigy
@vigyano
May 11 2015 08:26
sure, let me gist
I just added editableBlock with button. I didn't include all other blocks from the demo. I guess this is fine?
Goutham Veeramachaneni
@gouthamve
May 11 2015 08:35
Hmm, the js file with the events and helpers?
Vigy
@vigyano
May 11 2015 08:36
oops, just a sec
ah! now it works? dont know what I did before. did you do some magic from there!
anyway, updated the gist with about.coffee
Goutham Veeramachaneni
@gouthamve
May 11 2015 08:40
Good to know!
Vigy
@vigyano
May 11 2015 08:42
thanks for helping out!
Goutham Veeramachaneni
@gouthamve
May 11 2015 08:42
Welcome :)
Vigy
@vigyano
May 11 2015 08:43
where does the changed content gets stored?
Goutham Veeramachaneni
@gouthamve
May 11 2015 08:47
I think in a collection called EditableBlocks
Vigy
@vigyano
May 11 2015 08:48
when i meteor reset, the changed value goes away
Goutham Veeramachaneni
@gouthamve
May 11 2015 08:48
Yep. Its stored in db.
Vigy
@vigyano
May 11 2015 08:49
I guess it is because the mongo is inside the application and I probably need to host it outside to persist even after meteor reset?
Goutham Veeramachaneni
@gouthamve
May 11 2015 08:50
If you want to use a default content, you could write a startup script that sets the value.
Vigy
@vigyano
May 11 2015 08:53
I meant, if the content has been edited, how to survive even after meteor reset?
Goutham Veeramachaneni
@gouthamve
May 11 2015 08:54
meteor reset is for resetting the project to its initial state. So, it doesnt make sense to persist if you are doing a reset. And why are doing a reset?
Vigy
@vigyano
May 11 2015 08:57
got it. I am new to meteor so learning. I thought "meteor reset" resets the memory and pipeline but didn't know it resets the project. I was just wondering if I host this project somehwhere and if any restart on the system affects the content.
thx again
Goutham Veeramachaneni
@gouthamve
May 11 2015 08:58
A restart wont affect.
Vigy
@vigyano
May 11 2015 09:00
cool. If I want to add new custom features, I guess I need to create a package and meteor add right?
Goutham Veeramachaneni
@gouthamve
May 11 2015 09:01
yep. But if you think it would be an useful add in general, just create an issue to get feedback. If its a good feature, you can directly add it to the core package.
Vigy
@vigyano
May 11 2015 09:03
awesome! some of my packages are custom business extensions and some might be in general which I can add it to core.
exciting project! Looking forward to contribute and use the platform. Just i need to get used to meteor world.
Vigy
@vigyano
May 11 2015 09:30
@aaronjudd - created #374 regarding shop settings update error
Adam
@Neobii
May 11 2015 20:00
Is there a mechanism to enable multiple shop ids yet?
Aaron Judd
@aaronjudd
May 11 2015 21:07
@Neobii not yet, but might think about adding a “Add Shop” in the feature-roles-372 branch (at least for testing)