{"action":"created","issue":{"url":"https://api.github.com/repos/ponzu-cms/ponzu/issues/194","repository_url":"https://api.github.com/repos/ponzu-cms/ponzu","labels_url":"https://api.github.com/repos/ponzu-cms/ponzu/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/ponzu-cms/ponzu/issues/194/comments","events_url":"https://api.github.com/repos/ponzu-cms/ponzu/issues/194/events","html_url":"https://github.com/ponzu-cms/ponzu/issues/194","id":259667674,"number":194,"title":"adding user(id) to bucket name + currrent ns+specifier syntax","user":{"login":"lundin","id":1308506,"avatar_url":"https://avatars2.githubusercontent.com/u/1308506?v=4","gravatar_id":"","url":"https://api.github.com/users/lundin","html_url":"https://github.com/lundin","followers_url":"https://api.github.com/users/lundin/followers","following_url":"https://api.github.com/users/lundin/following{/other_user}","gists_url":"https://api.github.com/users/lundin/gists{/gist_id}","starred_url":"https://api.github.com/users/lundin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lundin/subscriptions","organizations_url":"https://api.github.com/users/lundin/orgs","repos_url":"https://api.github.com/users/lundin/repos","events_url":"https://api.github.com/users/lundin/events{/privacy}","received_events_url":"https://api.github.com/users/lundin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-22T00:10:52Z","updated_at":"2017-09-22T21:14:26Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\nThanks for Ponzu, it is amazing coming from the all the bloated cms out there...\r\nCan you give me some hint on where to start to if i want to make distinct content bucket per userID and namespace.\r\n\r\nI have looked into the code and the system/db methods. I would like to transform: \r\nb, err := tx.CreateBucketIfNotExists([]byte(ns + specifier))\r\ninto something like:\r\nb, err := tx.CreateBucketIfNotExists([]byte(userid+\"::\"+ns + specifier))\r\n\r\nYou seems to post the t (type/kind) when you create/update (as well as some specificer) but i would like to also include a \"global\" variable like userid.  It is however hard to see where in all the admin i need to include that and how to pass the userid. \r\n\r\nThis way ponzu CMS can actually serve as a cms for multiple content admins and it can serve various front-ends depending on who request it (userid as key). They are all using the same type fields but different ids. I think that is very useful what do you think ?"},"comment":{"url":"https://api.github.com/repos/ponzu-cms/ponzu/issues/comments/331562254","html_url":"https://github.com/ponzu-cms/ponzu/issues/194#issuecomment-331562254","issue_url":"https://api.github.com/repos/ponzu-cms/ponzu/issues/194","id":331562254,"user":{"login":"nilslice","id":7517515,"avatar_url":"https://avatars0.githubusercontent.com/u/7517515?v=4","gravatar_id":"","url":"https://api.github.com/users/nilslice","html_url":"https://github.com/nilslice","followers_url":"https://api.github.com/users/nilslice/followers","following_url":"https://api.github.com/users/nilslice/following{/other_user}","gists_url":"https://api.github.com/users/nilslice/gists{/gist_id}","starred_url":"https://api.github.com/users/nilslice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilslice/subscriptions","organizations_url":"https://api.github.com/users/nilslice/orgs","repos_url":"https://api.github.com/users/nilslice/repos","events_url":"https://api.github.com/users/nilslice/events{/privacy}","received_events_url":"https://api.github.com/users/nilslice/received_events","type":"User","site_admin":false},"created_at":"2017-09-22T21:14:26Z","updated_at":"2017-09-22T21:14:26Z","author_association":"OWNER","body":"Sounds good - I'm going to be out of town this weekend, but if you have questions please feel free to open another issue and I'll do my best to help out. You can also join the #ponzu slack channel here: https://gophers.slack.com/messages/C3TBV356D and there might be someone online to offer some quick help.\r\n\r\n> I was not aware of the API methods and that neat trick, great!\r\n\r\nThey are by far my favorite part of Ponzu - glad you know of them now :) Make sure to also check out the various `item.Hookable` methods like `BeforeSave` and `AfterAPICreate`, etc. as well as the `item.Pushable` and others in the item package. Here's the link to the docs for those: https://docs.ponzu-cms.org/Interfaces/Item/\r\n\r\nThese interfaces provide a lot of power and enable you to add useful features to your content types by simply adding a single method in most cases. Let me know what you think, if you get a chance to explore them.\r\n\r\nThanks,\r\nSteve"}}
{"actor":{"display_login":"nilslice"}}