Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 18 07:47
    noobmaster440 commented #1265
  • Feb 17 23:09
    brianhyder closed #1265
  • Feb 16 18:50
    noobmaster440 opened #1265
  • May 24 2019 02:47
    shenghua-cb closed #1263
  • May 24 2019 02:47
    shenghua-cb commented #1263
  • May 22 2019 08:02
    cb-manojpathak edited #1264
  • May 22 2019 08:02
    cb-manojpathak edited #1264
  • May 22 2019 08:00
    cb-manojpathak closed #1264
  • May 22 2019 07:48
    coveralls commented #1264
  • May 22 2019 07:48
    coveralls commented #1264
  • May 22 2019 07:44
    cb-manojpathak opened #1264
  • May 20 2019 05:24
    shenghua-cb opened #1263
  • Jan 17 2019 02:50
    coveralls commented #1262
  • Jan 17 2019 02:48
    stellarashes closed #1262
  • Jan 17 2019 02:46
    stellarashes opened #1262
  • May 18 2018 14:40
    coveralls commented #1261
  • May 18 2018 14:37
    jbdutton closed #1261
  • May 18 2018 14:37
    jbdutton opened #1261
  • Dec 16 2017 12:02
    jodumont opened #1260
  • Nov 30 2017 19:38
    iv597 closed #267
Brian
@brianhyder
no. Currently, it is not possible to create custom user roles. However, each theme or plugin may specify custom permissions that can be assigned across the 5 or so roles that the platform provides.
mhannan
@mhannan
Hi, Where can I see the online demo?
Chris Satchell
@dukeofsussex
cscottsa
@cscottsa
Hello, I am planning to build a marketplace platform very soon, but wondering if I could perhaps request a indication of how long until the admin-react would be made available as an actual working supported version of pencilblue? This might effect my choice of when to build the platform. Thank you :)
shipon-eye
@shipon-eye
Hello, is there any custom form based CRUD example?
jdbento
@jdbento
Hello. It is possible make an file upload and safe it in MongoDB with the Pencilblue, if it is, how? Thank you.
Wasif Ali
@wasifale
Hello, How to add articles as a post in some page. Like I'm adding an article in media after saving it should be displayed in a particular page. if I use ^articles^ directive it displays the pages not the articles. Any suggestions about it. I'm actually using it to make a Blog page, so every time I add a new article it should automatically displayed in Blog page.
@brianhyder, can you suggest me some way to do this, cause I haven't found any directive for it.
Emem Umoh
@ememumoh
Hello?
Chris Satchell
@dukeofsussex
@shipon-eye Could you be a bit more precise on what exactly you are looking for
@wasifale ^articles^ is a template value and probably doesn't exist for pages
@ememumoh Hello :wave:
Jerald
@omarsoulah
how do you add express middleware?
Brian
@brianhyder
@jdbento Yes, by default PB uses the MediaServiceV2 to persist media to the DB
@omarsoulah PB is not built on express. However, it does provide a mechanism for express like middleware. See https://github.com/pencilblue/pencilblue/wiki/Advanced-Routing
Kārlis K.
@karlisk
Perhaps a silly question (new to PB & Nodejs as a whole) but how do you update/upgrade a project? I did the npm update for the CLI but I quickly realized that's just used for setting up a new project not updating the pre-existing ones. So how do I update the project files? Do I just do a git pull from Github and overwrite the files? (asking before I accidentally wipe it)
Chris Satchell
@dukeofsussex
@karlisk Yes, just pull in the newest files from Git and you should be good to go
Should you have made any changes to tracked files, then you'll probably get a conflict, which you'll need to resolve
Kārlis K.
@karlisk
@dukeofsussex thanks, I was more worried about wiping the DB than anything else
Chris Satchell
@dukeofsussex
That shouldn't happen ;)
Hamid Khan
@mhkubaid
Stuck at fetching media.locations from the media ids of my custom-object. I want the url locations to be used in a lightbox in my html.
Do I have to use pb.DOA().loadById([ids], 'media', callback).locations to query the locations? I am trying to to use that to save locations in my object's property in the Angular controller. Is this the right approach?
Chris Satchell
@dukeofsussex
var service = new pb.MediaServiceV2;
var opts = {
    // Query options, like LIMIT, OFFSET, ORDER, SELECT, WHERE, etc.
};
service.getAll(opts, function (error, media) {
    // handle error
    // media should be an array of objects
});
Hamid Khan
@mhkubaid
@dukeofsussex Thanks. So, suppose I have an object product, and the product.media_ids is an array of ids of the related images. So, how do I get the associated locationof those media ids with the MediaServiceV2#getAll() method, which I finally want to save into product.media_locations ?
Chris Satchell
@dukeofsussex
You would pass the array as part of opts
var opts = {
  where: {
      _id: {$in: <your-array-containing-ids>}
  }
};
Hamid Khan
@mhkubaid
Thanks. Will give it a try and let you know.
Chris Satchell
@dukeofsussex
Updated my snippet, $or wasn't necessary, I just copied that from my code
Matthew Kim
@iamakimmer
Hi all. still enjoying pencilblue! we have 500 multi sites on one app. But Now when we restart the server it is slow because it has to install the same plugin on each site, I think. so instead we want to install the plugin globally. the issue is that it gets applied to the global subdomain, which we don't want. any advice on a way to refactor my PB
Brian
@brianhyder
@iamakimmer What version of PB are you running?
There probably aren't that many options.
  1. mutliple instances in the cluster such that when you restart 1 it doesn't take the sites down and the others support the traffic
  2. separate clusters to reduce the number of sites on each running instance
  1. run performance tools on the onStartupWithContext to see what is taking up so much time.
  1. move plugin dependencies to main package.json and bower file so dependency check is skipped
Matthew Kim
@iamakimmer
this is version 0.7
Brian
@brianhyder
@iamakimmer There was an update to the plugin initialization code in 0.8.0 if i recall correctly.
I you can upgrade I would consider that
So what's going to happen if the community wants to keep contributing? Will you keep closing PRs or should we create a fork and continue on that?
Matthew Kim
@iamakimmer
:crying_cat_face:
Brian
@brianhyder
The public site is shutting down along with active development from the current maintainers.
However, PR's containing bug fixes will still be considered for merge.
Omid Akhavan
@omidakhavan
Hi
Patrick Tisdale
@ptizzy
@brianhyder and @blakecallens Thanks for all your work on PB! I hate that the development is stopping, but I understand. I kinda figured that was coming after things had been so quiet for a while. I haven't been able to find another node CMS that does what PB does. Thanks again!
Chris Satchell
@dukeofsussex
I can only second that, best Node CMS to-date. Hopefully we can gather a few community members to continue your work, it would be a shame to see it die due to lack of interest :anguished:
otozyon
@otozyon
Didn't have the chance to read the blog post on shutting down when it was still online. Can somebody give me a short recap of the reasons?
Chris Satchell
@dukeofsussex
@otozyon The main reason is lack of time to keep working on the project
otozyon
@otozyon
@dukeofsussex Thanks.
st.fresh
@st-fresh
Is there any word of those in the community who want to continue working on this? I think there’s potential in this space - I’m working on a special UX-UI utility and want to test it within a PB CMS App — If anyone from the community is open to seeing what I have please contact me via form at http://cargocollective.com/mrjames/CONTACT