Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

News post #68

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@
"description": "Define and control assignment of Hubs and Accounts to the Marketplaces with the Marketplaces Management module.",
"icon": "shopping_cart"
},
"News": {
"description": "Publish and manage your announcements, updates, or any other special messages on the Connect platform.",
"icon": "public",
"objects": [
"news-post/object.json"
]
},
"Offers": {
"description": "Set, manage and update the offers of your products with Offers Management module.",
"icon": "local_offer",
Expand Down
34 changes: 34 additions & 0 deletions news-post/object.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<html>
<head>
<style>
</style>
<meta charset="utf-8">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type='text/javascript' src='http://davidlynch.org/projects/maphilight/jquery.maphilight.js'></script>
<script type="text/javascript">
$(document).ready(function () {
$('.map').maphilight({ alwaysOn: true });
// uncomment this line for normal hover highlighting
// $('.map').maphilight();
});
</script>
</head>
<body>

<!-- Edit with https://summerstyle.github.io/summer/ below -->

<img class="map" src="object.png" alt="" usemap="#map" />
<map name="map">
<area shape="rect" coords="830, 1097, 1243, 1296" href="t-4-draft-deleted" />
<area shape="rect" coords="1918, 1087, 2300, 1291" href="t-5-pub-deleted" />
<area shape="rect" coords="1780, 429, 2416, 871" href="s-b-published" />
<area shape="rect" coords="1367, 9, 1805, 169" href="t-3-pub-draft" />
<area shape="rect" coords="1415, 461, 1731, 631" href="t-2-draft-published" />
<area shape="rect" coords="824, 409, 1222, 868" href="s-a-draft" />
<area shape="rect" coords="386, 446, 688, 635" href="t-1-new-draft" />
</map>

<!-- Edit with https://summerstyle.github.io/summer/ above -->

</body>
</html>
89 changes: 89 additions & 0 deletions news-post/object.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"name": "News Post",
"image": "object.png",
"readme": "object.md",
"statuses": [
{
"id": "s-a-draft",
"name": "Draft",
"mapping": {
"left": "31.44%",
"top": "28.22%",
"width": "20.05%",
"height": "34.07%"
}
},
{
"id": "s-b-published",
"name": "Published",
"mapping": {
"left": "72.7%",
"top": "29.58%",
"width": "24.64%",
"height": "31.72%"
}
}
],
"transitions": [
{
"id": "t-1-new-draft",
"from": "New",
"to": "Draft",
"name": "1. Draft Creation",
"mapping": {
"left": "16.02%",
"top": "32.14%",
"width": "12.4%",
"height": "11.12%"
}
},
{
"id": "t-2-draft-published",
"from": "Draft",
"to": "Published",
"name": "2. Post Publication",
"mapping": {
"left": "57.16%",
"top": "32.07%",
"width": "12.4%",
"height": "11.12%"
}
},
{
"id": "t-3-pub-draft",
"from": "Published",
"to": "Draft",
"name": "3. Post Depublication",
"mapping": {
"left": "56.92%",
"top": "0.99%",
"width": "12.4%",
"height": "11.12%"
}
},
{
"id": "t-4-draft-deleted",
"from": "Draft",
"to": "Deleted",
"name": "4. Draft Removal",
"mapping": {
"left": "35.26%",
"top": "80.47%",
"width": "12.4%",
"height": "11.12%"
}
},
{
"id": "t-5-pub-deleted",
"from": "Published",
"to": "Deleted",
"name": "5. Post Removal",
"mapping": {
"left": "77.9%",
"top": "80.04%",
"width": "12.4%",
"height": "11.12%"
}
}
]
}
9 changes: 9 additions & 0 deletions news-post/object.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# News Post
## Overview
News posts represent objects that generally include announcements or updates for your business partners on the CloudBlue Connect platform. Such posts can also include cover images and can also have different attachments such as links to your pictures, videos, and so on.

Your posts can be published and be visible for all of your business partners and your account users or can only be visible to your account users, Vendors, Distributors, or Resellers. Each post can also have an external identifier for your system and can be anonymous if necessary.

Note that certain user groups can be restricted from viewing posts by excluding corresponding permissions via the Account module.
## Learn more
Refer to the [News module documentation](https://connect.cloudblue.com/community/modules/news/) to learn more about the News module functionality and posts management.
Binary file added news-post/object.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-post/object.pptx
Binary file not shown.
13 changes: 13 additions & 0 deletions news-post/s-a-draft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Draft Status
## Description
Once your new post is created and saved on the Connect platform, the system assigns the *Draft* status to this post. Therefore, this status indicates that your post is saved within the system and available for the following edits or publication. The *Draft* status is also assigned to your unpiblished posts. The system allows editing your draft posts and deleting such posts.
## Prerequisites
A new saved post or an unpublished post is required.
## Transferable statuses
In case your draft post is published, the system assigns the [Published](s-b-published.html) status to your post.
Draft posts can also be removed if necessary.
## Associated transitions
* [Draft Creation](t-1-new-draft.html)
* [Post Publication](t-2-draft-published.html)
* [Post Depublication](t-3-pub-draft.html)
* [Draft Removal](t-4-draft-deleted.html)
Binary file added news-post/s-a-draft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions news-post/s-b-published.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Published Status
## Description
The *Published* status indicates that your post is available for your specified audience. The system allows selecting the scope of your post and consequently make it available for everyone or specifically restricted to your account users, Distributors, Vendors, or Resellers.
The system allows editing your published posts, edit the scope, or make other changes. Your published posts can also be unpublished or removed if necessary.

## Prerequisites
A post in the [Draft](s-a-draft.html) state that is ready for publication.
## Transferable statuses
In case your post is unpublished, it is transferred back to the [Draft](s-a-draft.html) status.
Published posts can also be removed from the system.
## Associated transitions
* [Post Publication](t-2-draft-published.html)
* [Post Depublication](t-3-pub-draft.html)
* [Post Removal](t-5-pub-deleted.html)
Binary file added news-post/s-b-published.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions news-post/t-1-new-draft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Draft Creation
## Description
This transition indicates that a new post is created and saved on the Connect platform. Therefore, the system assigns the *Draft* status to your post that will be available for the following edits and publication.
## Prerequisites
A new saved post is required for this transition.
## Operation results
A post object with the [Draft](s-a-draft.html) status.
Binary file added news-post/t-1-new-draft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions news-post/t-2-draft-published.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Post Publication
## Description
This transition indicates that your post is being published on the CloudBlue Connect platform. Consequently, this post will be automatically assigned to the *Published* state and will be visible for your selected audience.
## Prerequisites
A post object in the [Draft](s-a-draft.html) state is required.
## Operation results
A post object with the [Published](s-b-published.html) status.
Binary file added news-post/t-2-draft-published.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions news-post/t-3-pub-draft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Post Depublication
## Description
In case users want to unpublish their post on the Connect platform, the system transfers such posts back to the *Draft* status. Therefore, the system enables to edit the provided content, switch the selected scope, author, and make other changes or updates. The system also allows publishing such post again if necessary.
## Prerequisites
A post object with the [Published](s-b-published.html) status is required.
## Operation results
A post object in the [Draft](s-a-draft.html) state.
Binary file added news-post/t-3-pub-draft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions news-post/t-4-draft-deleted.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Draft Removal
## Description
This transition implies that your created draft is being deleted from the system. Note that removed drafts or their content cannot be managed or restored back.
## Prerequisites
A post object in the [Draft](s-a-draft.html) state is required for this transition.
## Operation results
A removed draft post object.
Binary file added news-post/t-4-draft-deleted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions news-post/t-5-pub-deleted.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Post Removal
## Description
This transition implies that your published post is being deleted from the system. Therefore, this post will no longer be published or available. Removed posts or their content also cannot be restored back.
## Prerequisites
A post object with the [Published](s-b-published.html) status is required.
## Operation results
A removed published post object.
Binary file added news-post/t-5-pub-deleted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.