initbiz / cumuluscore-plugin Goto Github PK
View Code? Open in Web Editor NEWOctoberCMS plugin helping developers with creating SaaS applications
License: MIT License
OctoberCMS plugin helping developers with creating SaaS applications
License: MIT License
my setup is an index.htm
title = "Homepage"
url = "/"
layout = "default"
is_hidden = 0
[session]
security = "all"
[account]
redirect = "system/choose-cluster"
paramCode = "code"
forceSecure = 0
==
{% component 'account' %}
and I receive this error:
Call to a member function canEnterFeature() on null
/Users/christophevidal/Sites/oc-dronet/plugins/initbiz/cumuluscore/classes/MenuManager.php line 37
Hi,
My project is using oc-bootstraper and install listed plugins.
Since I can't migrate right now to v3 my project just broke...
As oc-boostraper allow custom branch fetch can you push a v2 legacy branch ?
I would prefer this over making a fork. ๐
Thanks !
What about roles for users assigned to Cluster ?
it could be a nice way to handle another permission level on modules ;
Use case example :
user1
assigned to role1
should have access to module1
open for every rolesuser2
assigned to role2
should have access to module2
open only for role2
user1
assigned to role1
shouldn't have access to module2
open only for role2
UserGroup is insufficient, a user cannot have different groups on different clusters.
Related to octobercms/october#4192
We may recover Validation rules on Cluster model, at least for slug and name properties.
We should prevent slug duplication when the first one is soft deleted.
I'll try to recover validation rule and make some tests locally
it would be cool to have a twig tag cumuluspage
to create link directly to cumuluspage instead of doing it with |page{'cluster': cluster.username}
or did I miss it?
As user may use automatic deployments with oc-boostraper please avoid minor version bump for breaking change.
3 breaking change in few updates is a lot. It becomes hard to maintain your plugin in a website. ๐
Just a notice, you can close it as you read it ๐
Many thanks for your work ๐
Hi,
I'm migrating to v3 and see a huge regression when replacing ClusterRepo to Cluster model.
$clusterRepository->getClustersUsers([$clusterUniq]);
to $cluster->users;
The User relation stated a long time ago was and still not correct.
public $hasMany = [
'users' => [
UserModel::class,
'table' => 'users',
'otherKey' => 'user_id'
], [...]
the reverse relation in Plugin.php is ok
UserModel::extend(function ($model) {
$model->belongsToMany['clusters'] = [
Cluster::class,
'table' => 'initbiz_cumuluscore_cluster_user',
'order' => 'name',
'key' => 'user_id',
'otherKey' => 'cluster_id'
];
});
We should change the user relation in Cluster model to :
public $belongsToMany = [
'users' => [
UserModel::class,
'table' => 'initbiz_cumuluscore_cluster_user',
'order' => 'name',
'key' => 'cluster_id',
'otherKey' => 'user_id'
]
];
I'll make a PR,
it's strange it doesn't break something for you.
I register a user with clustername=demo and login.
then I logout
then I register a new user with clustername=voilaah
then this user is redirected to the URL /demo/settings
(as it should be /voilaah/dashboard
) from previous cluster demo
instead of voilaah
from the choose-cluster page that implements the component
[clustersList]
clusterDashboardPage = "app/dashboard"
Hi !
Is it a choice to doesn't include softdelete trait ?
I'll need it and I'd like to know if I have to extend the model or create a PR for yours ๐
When using plugins that extends User Backend panel Cumulus render it unaccessible.
(Only by using direct url)
Example :
I don't find where you define Menu items from User panel but you override it instead of extending it like others
Extended menu example :
Event::listen('backend.menu.extendItems', function ($manager) {
$manager->addSideMenuItems('RainLab.User', 'user', [
'usergroups' => [
'label' => 'rainlab.user::lang.groups.all_groups',
'icon' => 'icon-group',
'code' => 'u_groups',
'owner' => 'RainLab.User',
'url' => Backend::url('rainlab/user/usergroups'),
],
'passage_keys' => [
'label' => 'kurtjensen.passage::lang.plugin.backend_menu',
'icon' => 'icon-key',
'order' => 1001,
'code' => 'passage',
'owner' => 'RainLab.User',
'permissions' => ['kurtjensen.passage.*'],
'url' => Backend::url('kurtjensen/passage/keys'),
],
'variance' => [
'label' => 'kurtjensen.passage::lang.plugin.backend_variance',
'icon' => 'icon-key',
'order' => 1002,
'code' => 'passage',
'owner' => 'RainLab.User',
'permissions' => ['kurtjensen.passage.*'],
'url' => Backend::url('kurtjensen/passage/variances'),
],]);
});
Hello !
I'm actually making specifications for a project for a customer of mine.
I saw your plugin and I think that could help me bootstrap my project.
I'll have 4 types of profiles on the platform :
Goal is that each company has its own dashboard and should be able from here to create "one page" to present their activity on the platform customers will be able to browse.
Companies manager depending on the company location will have a separate dashboard to have an overview on some of the companies.
Super administrator will have an overview on everything.
I was wondering if such a plugin could help me reach that goal ? As far as I understood yes.
If this is the case, I can also help improving it.
Would love to discuss with you to have your point of view.
Trying to install through October CMS plugins marketplace, but it won't install on my OC v446.
any idea what is happening, please?
There is no error. I go through the standard updates plugins form the backend settings page.
Hi,
I receive the following error message when I add CumulusGuard component to my CMS page:
Trying to get property 'slug' of non-object
~\plugins\initbiz\cumuluscore\eventhandlers\RainlabUserHandler.php line 86
return $model->clusters()->whereSlug($cluster->slug)->first() ? true : false;
Also when the user is added only to one cluster and I visit a page that has ClusterList component added, then I receive "ERR_TOO_MANY_REDIRECTS" error message on the page.
Could you please help me what could be the problem?
Am I doing something wrong or the plugin is not compatible with the latest build of OctoberCMS?
Versions that I use:
Thanks in advance for your help!
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.