This is a plugin for superdesk-client-core and superdesk-core. It adds a planning application page and a new tab in the settings with its API endpoints.
The superdesk-planning
node module is already included in superdesk-core-client
.
But in order to see the planning feature in the application, you need to enable it.
In client/superdesk.config.js
from superdesk
, add this line
features : {planning: true},
This will import the superdesk-planning
node module and load the superdesk.planning
angular module in the main angular application.
--- a/server/settings.py
+++ b/server/settings.py
@@ -132,7 +131,8 @@ INSTALLED_APPS.extend([
+ 'planning',
])
All the code related to the planning feature must be part of this superdesk-planning
repository.
How? By using the available superdesk services/providers. For instance, Activities
has been used to add a settings page.
Sometime, you may need to add something in the application and that is not possible yet to do by using the existing superdesk services/providers. In this case, a generic service/provider must be created in superdesk-client-core
in order to obtain the wanted result.
For instance, as these lines are written, there is no proper way to add an icon in the side navigation bar from this superdesk plugin. The workspace
service could have a new method registerExtraSidenavItemTemplateUrl
which we could call in our superdesk plugin to add a new icon at the bottom of the navigation bar.
It's important to document these services/providers method, in docs/superdesk.md for the moment, in order to make it easy for the next plugin developers.
Download and install
git clone [email protected]:superdesk/superdesk-planning.git
make install
Run the tests
source server/env/bin/activate
make test
Connect the repository to superdesk-client-core
npm link
cd /path/to/superdesk-client-core
npm link superdesk-planning
Connect the repository to superdesk-core
cd /path/to/superdesk-core
source env/bin/activate
pip install -e /path/to/superdesk-planning