orionjs / orioncms-examples Goto Github PK
View Code? Open in Web Editor NEWExample webapp made with orion
Home Page: http://orion-example.meteor.com
Example webapp made with orion
Home Page: http://orion-example.meteor.com
Community users are able to create/delete (their own) posts, however they are not able to update any of the attributes of the post. Is it a bug or a feature?
According to orion/roles/community.js
, users should be able to update any attribute other than createdBy
/**
* Users can update posts
*/
CommunityRole.allow('collections.posts.update', function(userId, doc, fields, modifier) {
return doc.createdBy === userId; // Will be allowed to edit his own posts
});
/**
* Users can't change the createdBy attribute
*/
CommunityRole.deny('collections.posts.update', function(userId, doc, fields, modifier) {
return !_.contains(fields, 'userId');
});
There seems to be an error getting introduced in the s3 file upload after updating to the latest version. I am getting the following error:
XMLHttpRequest cannot load https://s3.amazonaws.com/s3orionss. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8290' is therefore not allowed access.
This was working properly before the upgrade. Any suggestions?
Ran into this error.
routes.js:1 Uncaught ReferenceError: routes is not defined
Example is not usable until after updating a number of packages; error above remains.
By default, there is a empty <title></title>
in front of the head.html
title tag. So there is no page title occurs. I wonder how does the empty title tag occur?
And if I use {{dict 'siteTitle' 'xxx'}}
, the head.html
displays it directly without processing it.
How to define siteTitle and siteDesc dictionaries in head.html? Thanks!
http://orion-example.meteor.com this example seams to be down.
Heya,
Nice project !
A question how do I change the language of the admin interface. Unformtunately my spanish is not existent :(
Cheerz,
Guby
Hello,
I just clone this repo and run blog example. When I create a post and insert image then it gives me the following error at client side ->
Uncaught errorClass {error: "unauthorized", reason: "The user has no permission to perform this action", details: undefined, message: "The user has no permission to perform this action [unauthorized]", errorType: "Meteor.Error"โฆ}
Any solution for this issue ?
Thanks.
Hello,
I simply clone this repo and run the blog example. I got the following error at client side ->
Exception in callback of async function: Error: Handler with name 'hookWithOptions' already exists.
at MiddlewareStack._create (http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:198:13)
at MiddlewareStack.push (http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:214:22)
at http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:232:12
at Array.forEach (native)
at Function._.each._.forEach (http://localhost:8888/packages/underscore.js?46eaedbdeb6e71c82af1b16f51c7da4127d6f285:149:11)
at MiddlewareStack.append (http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:228:5)
at http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:234:19
at Array.forEach (native)
at Function._.each._.forEach (http://localhost:8888/packages/underscore.js?46eaedbdeb6e71c82af1b16f51c7da4127d6f285:149:11)
at MiddlewareStack.append (http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:228:5)
Any clue/solution for this issue.
Thanks.
When I upload file at /admin, I find it upload to aws by default.
How can I set the default upload folder at local server? Thanks!
May we should for a brach for v1.1 testing and contribution? Thanks
Cool project! Really looking forward to checking it out. When I run meteor on this project I get following error though
[[[[[ ~/Projects/meteorjs/apps/orion-blog ]]]]]
=> Started proxy.
=> Started MongoDB.
W20141125-12:22:01.820(1)? (STDERR)
W20141125-12:22:01.891(1)? (STDERR) /Users/Matteo/.meteor/packages/meteor-tool/.1.0.35.7nk0j7++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173
W20141125-12:22:01.891(1)? (STDERR) throw(ex);
W20141125-12:22:01.891(1)? (STDERR) ^
W20141125-12:22:01.891(1)? (STDERR) Error: aws "key" required
W20141125-12:22:01.892(1)? (STDERR) at new Client (/Users/Matteo/.meteor/packages/lepozepo:s3/.4.1.1.1jy4h0z++os+web.browser+web.cordova/npm/node_modules/knox/lib/client.js:176:27)
W20141125-12:22:01.892(1)? (STDERR) at Function.exports.createClient (/Users/Matteo/.meteor/packages/lepozepo:s3/.4.1.1.1jy4h0z++os+web.browser+web.cordova/npm/node_modules/knox/lib/client.js:894:10)
W20141125-12:22:01.892(1)? (STDERR) at __coffeescriptShare (packages/lepozepo:s3/server/startup.coffee:24:16)
W20141125-12:22:01.892(1)? (STDERR) at /Users/Matteo/Projects/meteorjs/apps/orion-blog/.meteor/local/build/programs/server/boot.js:175:5
=> Exited with code: 8
W20141125-12:22:07.210(1)? (STDERR)
Could you please give a detailed example blog having comments related to a post?
The comments_list
and comment_create
templates are at front-end in post page, and I can also see the comments I submitted at admin panel -> comments entity -> index page.
Another problem is that for different entities, such as posts
and resources
, I want to have a unified comments functionality related to them, how can I do that? And can you give an example for that? Thanks a lot!
I'm implementing a site with nested pages, which is a pretty common scenario, and it would be great to see an example of the cannon way to do this :)
Hello There,
I just clone your standard example and run it on my system. I have a question regarding How to update and delete pages ?
In my sample app, I also created pages but I am not able to update and delete those pages.
So please give me solution for this issue.
Thanks.
As explained here : https://github.com/mizzao/meteor-bootstrap-3
% meteor update
This project is already at Meteor 1.2.1, the latest release.
=> Errors while upgrading packages:
While selecting package versions:
error: Potentially incompatible change required to top-level dependency: orionjs:core 1.6.0, was 1.7.0.
Constraints on package "orionjs:core":
* orionjs:[email protected] <- orionjs:bootstrap 1.6.0
* orionjs:[email protected] <- vsivsi:orion-file-collection 0.2.2
Potentially incompatible change required to top-level dependency: orionjs:bootstrap 1.6.0, was 1.7.0.
Constraints on package "orionjs:bootstrap":
Potentially incompatible change required to top-level dependency: orionjs:filesystem 1.6.0, was 1.7.0.
Constraints on package "orionjs:filesystem":
* orionjs:[email protected] <- vsivsi:orion-file-collection 0.2.2
* orionjs:[email protected] <- orionjs:summernote 1.6.0
* orionjs:[email protected] <- orionjs:froala 1.6.0
* orionjs:[email protected] <- orionjs:image-attribute 1.6.0
Potentially incompatible change required to top-level dependency: orionjs:summernote 1.6.0, was 1.7.0.
Constraints on package "orionjs:summernote":
Potentially incompatible change required to top-level dependency: orionjs:froala 1.6.0, was 1.7.0.
Constraints on package "orionjs:froala":
Potentially incompatible change required to top-level dependency: orionjs:image-attribute 1.6.0, was 1.7.0.
Constraints on package "orionjs:image-attribute":
Potentially incompatible change required to top-level dependency: orionjs:relationships 1.6.0, was 1.7.0.
Constraints on package "orionjs:relationships":
Potentially incompatible change required to top-level dependency: orionjs:lang-es 1.6.0, was 1.7.0.
Constraints on package "orionjs:lang-es":
To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update on the command line.
Launching as suggested :
% meteor --allow-incompatible-update
downgrades orionjs to 1.6.0 :(
meteor --allow-incompatible-update
[[[[[ ~/dev/meteor/orionjs-examples/blog ]]]]]
=> Started proxy.
=> Started MongoDB.
Changes to your project's package version selections:
orionjs:accounts downgraded from 1.7.0 to 1.6.0
orionjs:attributes downgraded from 1.7.0 to 1.6.0
orionjs:base downgraded from 1.7.0 to 1.6.0
orionjs:bootstrap downgraded from 1.7.0 to 1.6.0
orionjs:collections downgraded from 1.7.0 to 1.6.0
orionjs:config downgraded from 1.7.0 to 1.6.0
orionjs:core downgraded from 1.7.0 to 1.6.0
orionjs:dictionary downgraded from 1.7.0 to 1.6.0
orionjs:filesystem downgraded from 1.7.0 to 1.6.0
orionjs:froala downgraded from 1.7.0 to 1.6.0
orionjs:image-attribute downgraded from 1.7.0 to 1.6.0
orionjs:lang-en downgraded from 1.7.0 to 1.6.0
orionjs:lang-es downgraded from 1.7.0 to 1.6.0
orionjs:relationships downgraded from 1.7.0 to 1.6.0
orionjs:summernote downgraded from 1.7.0 to 1.6.0
I20151121-17:37:36.542(1)? Orion config initialized
I20151121-17:37:36.544(1)? Orion dictionary initialized
=> Started your app.
=> App running at: http://localhost:3000/
Where does this error come from ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.