Title: Set Preferred Post Space plug-in

This plug-in allows administrators to set a space which should be selected in the "Space" selector on the New Article, New Task, New Project, New Milestone, and New Event forms by default. Users still change the space manually, but this would make each type of entries would be usually submitted to a specific space.



Install



Click the link below to download the com.traction.proteus.customjscss-NN.zip file. (NN means the version number.)



Upload the zip file in Server Settings > Plugins page.

After uploading, you will see the following I18N ERROR. Don't worry. This error means "you need to restart TeamPage server to load the I18N resources (language files)."

Click [Restart TeamPage] in Server Settings > General > Manage Server page. If your TeamPage server is hosted in Traction's cloud environment, you will need to restart your server twice to load the I18N resources correctly.

After restarting, you will see that the plugin's name show up correctly.



Configure



Click the "Configure" link to open the configuration view.



The plug-in's configuration view shows up.

Configuration view

3 Levels - Journal (All Spaces), Space, User Profile



Server administrators, space administrators, and each user can select a default space for articles, events, tasks, projects, and milestones, in the journal (All Spaces), space, and user profile levels.

Settings for the All Spaces Level



These settings set the default post spaces for the "All Spaces" level. These settings work when a user, who is going to open the New Article form etc from the new drop menu in the sidebar, is viewing one of the "All Spaces" pages.



Settings for the User Profile(s)



These settings set the default post spaces for the "User Profile" level. These settings work when a user is viewing a user's profile page.



Settings for the Space(s)



These settings set the default post spaces for the "Space" level. These settings work when a user is viewing a page in a space.



How the combination of the settings work



The default of the "Behavior When Empty" setting is "Force Empty" and that of the other settings are "None" as you see the picture below.

This means that the default post space on the New Article, New Event, New Task, New Project, and New Milestone will be empty.



Look at the picture below. Now, the "Behavior When Empty" is set to "Select Previous Space". It's the built-in default behavior.

Let's say a user clicks the "New Task" menu. The "Preferred Post Space for Tasks" is set to "None". Since TeamPage remembers the previous post space per user If the user has posted an entry, the users will see that the previous space is automatically set in the "Space" selector on the New Task form when the form shows up .



Now, the "Preferred Post Space for Tasks" is set to "MyFooBar" space. Even though TeamPage remembers the previous post space for this user, the user will see the "MyFooBar" space selected in the "Space" selector on the New Task form, because the "Behavior When Empty" setting takes effect only when the "Preferred ... " setting is set to empty (None).

Note that if the user doesn't have the "Create New Article" permission in the target space, the "Space" selector on any New forms will be empty.





Attachments:
plugin_installed.png
configure.png
config1.png
config2.png
config2.png
config3.png
config4.png
example1.png
example2.png
example3.png
Article: Forum6931 (permalink)
Categories: :Doc:plug-in
Date: May 29, 2018; 8:48:19 PM Eastern Daylight Time

Author Name: Takashi Okutsu
Author ID: takashi