Help and i18n pruning, Shortcut, Redirect, RichEdit
This commit is contained in:
parent
317d71e379
commit
a742fbe961
7 changed files with 3 additions and 286 deletions
|
|
@ -34,10 +34,6 @@ our $HELP = {
|
|||
},
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'shortcut add/edit',
|
||||
namespace => 'Asset_Shortcut'
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
package WebGUI::Help::Asset_Redirect;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'redirect add/edit' => {
|
||||
title => 'redirect add/edit title',
|
||||
body => 'redirect add/edit body',
|
||||
fields => [
|
||||
{
|
||||
title => 'redirect url',
|
||||
description => 'redirect url description',
|
||||
namespace => 'Asset_Redirect',
|
||||
},
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'asset fields',
|
||||
namespace => 'Asset'
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
@ -1,100 +0,0 @@
|
|||
package WebGUI::Help::Asset_RichEdit;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'rich edit add/edit' => {
|
||||
title => 'rich edit add/edit title',
|
||||
body => 'rich edit add/edit body',
|
||||
fields => [
|
||||
{
|
||||
title => 'toolbar buttons',
|
||||
description => 'toolbar buttons description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'disable rich edit',
|
||||
description => 'disable rich edit description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'using rich edit',
|
||||
description => 'using rich edit description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'preformatted',
|
||||
description => 'preformatted description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'elements',
|
||||
description => 'elements description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'editor height',
|
||||
description => 'editor height description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'editor width',
|
||||
description => 'editor width description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'source editor height',
|
||||
description => 'source editor height description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'source editor width',
|
||||
description => 'source editor width description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'use br',
|
||||
description => 'use br description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'remove line breaks',
|
||||
description => 'remove line breaks description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'no wrap',
|
||||
description => 'no wrap description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'directionality',
|
||||
description => 'directionality description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'toolbar location',
|
||||
description => 'toolbar location description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'css file',
|
||||
description => 'css file description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
{
|
||||
title => 'enable context menu',
|
||||
description => 'enable context menu description',
|
||||
namespace => 'Asset_RichEdit',
|
||||
},
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'asset fields',
|
||||
namespace => 'Asset'
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
@ -1,65 +1,10 @@
|
|||
package WebGUI::Help::Asset_Shortcut;
|
||||
|
||||
our $HELP = {
|
||||
'shortcut add/edit' => {
|
||||
title => '5',
|
||||
body => '6',
|
||||
fields => [
|
||||
{
|
||||
title => '1',
|
||||
description => '1 description',
|
||||
namespace => 'Asset_Shortcut',
|
||||
},
|
||||
{
|
||||
title => 'shortcut template title',
|
||||
description => 'shortcut template title description',
|
||||
namespace => 'Asset_Shortcut',
|
||||
},
|
||||
{
|
||||
title => 'Shortcut by alternate criteria',
|
||||
description => 'Shortcut by alternate criteria description',
|
||||
namespace => 'Asset_Shortcut',
|
||||
},
|
||||
{
|
||||
title => 'disable content lock',
|
||||
description => 'disable content lock description',
|
||||
namespace => 'Asset_Shortcut',
|
||||
},
|
||||
{
|
||||
title => 'Resolve Multiples',
|
||||
description => 'Resolve Multiples description',
|
||||
namespace => 'Asset_Shortcut',
|
||||
},
|
||||
{
|
||||
title => 'Criteria',
|
||||
description => 'Criteria description',
|
||||
namespace => 'Asset_Shortcut',
|
||||
},
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'field add/edit',
|
||||
namespace => 'Asset_Shortcut'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'Asset_Wobject'
|
||||
},
|
||||
{
|
||||
tag => 'metadata manage',
|
||||
namespace => 'Asset'
|
||||
},
|
||||
{
|
||||
tag => 'dashboard add/edit',
|
||||
namespace => 'Asset_Dashboard'
|
||||
},
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
'shortcut template' => {
|
||||
title => 'shortcut template title',
|
||||
body => 'shortcut template body',
|
||||
body => '',
|
||||
isa => [
|
||||
{
|
||||
namespace => "Asset_Template",
|
||||
|
|
@ -94,10 +39,6 @@ our $HELP = {
|
|||
tag => 'wobjects using',
|
||||
namespace => 'Asset_Wobject'
|
||||
},
|
||||
{
|
||||
tag => 'shortcut add/edit',
|
||||
namespace => 'Asset_Shortcut'
|
||||
},
|
||||
{
|
||||
tag => 'template language',
|
||||
namespace => 'Asset_Template'
|
||||
|
|
@ -105,24 +46,6 @@ our $HELP = {
|
|||
]
|
||||
},
|
||||
|
||||
'field add/edit' => {
|
||||
title => 'field add/edit title',
|
||||
body => 'field add/edit body',
|
||||
fields => [
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'Asset_Wobject'
|
||||
},
|
||||
{
|
||||
tag => 'template language',
|
||||
namespace => 'Asset_Template'
|
||||
},
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -28,29 +28,6 @@ our $I18N = {
|
|||
context => 'Default name of all redirects'
|
||||
},
|
||||
|
||||
'redirect add/edit title' => {
|
||||
message => q|Redirect, Add/Edit|,
|
||||
lastUpdated => 1104630516,
|
||||
},
|
||||
|
||||
'redirect add/edit body' => {
|
||||
message => q|
|
||||
<p>The Redirect Asset causes the user's browser to be redirected to
|
||||
another page. The new page can be part of your site, or it can be on
|
||||
another site altogether. The redirection happens when the Redirect
|
||||
Assets own URL is accessed, either by a link from a page, or from a
|
||||
Navigation, or if the Asset's URL is entered into the browser directly.
|
||||
However, if it is viewed as an element of a Page Asset, or proxied via
|
||||
a macro onto a page, then no redirection will take place.</p>
|
||||
|
||||
<p><b>NOTE:</b>The redirection will be disabled while in admin mode in order to
|
||||
allow editing the properties of the Asset.</p>
|
||||
|
||||
|,
|
||||
lastUpdated => 1139251653,
|
||||
context => q|Help text for redirects|,
|
||||
},
|
||||
|
||||
'redirect url description' => {
|
||||
message => q|The URL where the user will be redirected.|,
|
||||
lastUpdated => 1119574089,
|
||||
|
|
|
|||
|
|
@ -348,23 +348,11 @@ our $I18N = {
|
|||
lastUpdated => 1115150778,
|
||||
},
|
||||
|
||||
'rich edit add/edit title' => {
|
||||
message => q|Rich Editor, Add/Edit|,
|
||||
lastUpdated => 1115154822,
|
||||
},
|
||||
|
||||
'rich edit edit config' => {
|
||||
message => q|Edit Rich Editor Configuration|,
|
||||
lastUpdated => 1131398652,
|
||||
},
|
||||
|
||||
'rich edit add/edit body' => {
|
||||
message => q|<p>This Asset allows you to customize the Rich Editor used by WebGUI for WYSIWIG HTML editing and
|
||||
to have multiple configurations available for Collaboration Assets.</p>
|
||||
|,
|
||||
lastUpdated => 1119584956,
|
||||
},
|
||||
|
||||
'disable rich edit' => {
|
||||
message => q|Disable this Rich Editor?|,
|
||||
lastUpdated => 1139957794,
|
||||
|
|
|
|||
|
|
@ -53,31 +53,6 @@ our $I18N = {
|
|||
lastUpdated => 1031514049
|
||||
},
|
||||
|
||||
'6' => {
|
||||
message => q|<p>With the Shortcut you can mirror an asset in another location. This is useful if you want to reuse the same content in multiple sections of your site.</p>
|
||||
|
||||
<p><b>NOTES:</b><br />
|
||||
The shortcut is not available through the Add Content menu, but instead through the shortcut icon on each Asset's toolbar.
|
||||
</p>
|
||||
|
||||
<p><b>Overrides</b><br />
|
||||
You can also create overrides and user preferences. The 6.8 upgrade automatically converted your previous override settings to overrides. These are shown on the Overrides tab. You can also view them by clicking "Manage overrides" on the right menu bar while editing a Shortcut. The list of fields is the list of the shortcutted asset's properties. If one is overridden, its values are displayed to the right, and you may edit or delete the override by clicking on the icons. if there is no override, you can click Edit to edit that property.</p>
|
||||
|
||||
<p><b>User Preference Fields</b><br />
|
||||
You may also create User Preference fields, which autogenerate form fields for your users to customize settings on Dashlets on a Dashboard. These are displayed when the dashboard user clicks the (default) green Edit hoverbutton on the titlebar of a Dashlet. You can choose from the form field types: text, textlist (multiline text box), selectList (choose one from a drop-down list), and checkList (choose one or more from a list of checkboxes). You can set the possibleValues while editing a User Preference field. You can also directly create an override by creating a User Preference field whose unique fieldName corresponds to a field on the shortcutted asset.</p>
|
||||
|
||||
<p><b>Chaining</b><br />
|
||||
In an override's New Value field, you can put a substitution call for the value of a User Preference Field. This is helpful for the Dashboard container, primarily. Let's say you create a user preference selectList field named myFavColor, with possible values blue, green, red, and yellow. Then you want to override the shorcutted asset's Title with: "My Favorite Color is XXXX." You create an override for "title", and in the New Value box, place the following text:</p>
|
||||
|
||||
<pre>My Favorite Color is ##userPref:myFavColor##.</pre>
|
||||
|
||||
<p>Make sure to create a default Value under the myFavColor user preference field.</p>
|
||||
<p>Now, go back to manage Overrides, and it should show the original value, new value, and the parsed/replaced value. You can use this for all kinds of choices: templateIds, formats, or any other kind of preference.</p>
|
||||
<p><b>Fields</b></p>
|
||||
|,
|
||||
lastUpdated => 1146799562,
|
||||
},
|
||||
|
||||
'shortcut template title description' => {
|
||||
message => q|Select a template from the list to display the Shortcut.|,
|
||||
lastUpdated => 1119905806,
|
||||
|
|
@ -196,14 +171,9 @@ A property or value must be quoted if it contains spaces. Feel free to use the c
|
|||
lastUpdated => 1053183804
|
||||
},
|
||||
|
||||
'5' => {
|
||||
message => q|Shortcut, Add/Edit|,
|
||||
lastUpdated => 1031514049
|
||||
},
|
||||
|
||||
'shortcut template title' => {
|
||||
message => q|Shortcut Template|,
|
||||
lastUpdated => 1109525763,
|
||||
message => q|Shortcut Template Variables|,
|
||||
lastUpdated => 1184821580,
|
||||
},
|
||||
|
||||
'shortcut.content' => {
|
||||
|
|
@ -231,13 +201,6 @@ A property or value must be quoted if it contains spaces. Feel free to use the c
|
|||
lastUpdated => 1148953116,
|
||||
},
|
||||
|
||||
|
||||
'shortcut template body' => {
|
||||
message => q|<p>These variables are available in Shortcut Templates:</p>
|
||||
|,
|
||||
lastUpdated => 1148953146,
|
||||
},
|
||||
|
||||
'The unique name of a user preference parameter you are inventing' => {
|
||||
message => q|The unique name of a user preference parameter you are inventing.|,
|
||||
lastUpdated => 1133619940,
|
||||
|
|
@ -384,11 +347,6 @@ A property or value must be quoted if it contains spaces. Feel free to use the c
|
|||
lastUpdated => 1133619940,
|
||||
},
|
||||
|
||||
'field add/edit body' => {
|
||||
message => q|<p>User Preferences are the key to personalization of a Shortcut, and the key to creating a personalized dashboard. You can create a user preference field of one of four types: text, textArea, checkList, and selectList. If yours is a list type, you can put the possible choices in the Possible Choices box, and each one will be its own entry in a list of that type (select: choose one, or check: choose none or any or all). </p><p>You can use a user preference field to generate a list of templates from which the user can pick, a choice of some kind of other preference, such as US or metric units format, or any other kind of user preference. User Preference fields are asset-(shortcut-)specific, whereas user profile fields are site-wide. The user preference fields will be exposed to your override fields in the format ##userPref:myUserPrefField##, and will be exposed everywhere else as normal template variables (<tmpl_var myUserPrefField>).</p>|,
|
||||
lastUpdated => 1133619940,
|
||||
},
|
||||
|
||||
'pref fields to show' => {
|
||||
message => q|Preference Fields to Show|,
|
||||
lastUpdated => 1133619940,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue