Add in StoryManager, 3 assets for managing news content in WebGUI.
Several small API changes to Keyword and AssetExportHtml to support StoryManager functionality.
This commit is contained in:
commit
1b8ad91605
28 changed files with 4820 additions and 14 deletions
|
|
@ -30,6 +30,8 @@ our $HELP = {
|
|||
{ name => 'isPrototype', },
|
||||
{ name => 'status', },
|
||||
{ name => 'assetSize', },
|
||||
{ name => 'keywords',
|
||||
description => 'keywords template var' },
|
||||
],
|
||||
fields => [],
|
||||
related => []
|
||||
|
|
|
|||
166
lib/WebGUI/Help/Asset_Story.pm
Normal file
166
lib/WebGUI/Help/Asset_Story.pm
Normal file
|
|
@ -0,0 +1,166 @@
|
|||
package WebGUI::Help::Asset_Story;
|
||||
use strict;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'edit template' => {
|
||||
title => 'edit template',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => 'Asset_Template',
|
||||
tag => 'template variables'
|
||||
},
|
||||
],
|
||||
fields => [],
|
||||
variables => [
|
||||
{ name => 'formHeader',
|
||||
required => 1 },
|
||||
{ name => 'formTitle', },
|
||||
{ name => 'formFooter',
|
||||
required => 1 },
|
||||
{ name => 'titleForm', },
|
||||
{ name => 'headlineForm', },
|
||||
{ name => 'subtitleForm', },
|
||||
{ name => 'bylineForm', },
|
||||
{ name => 'locationForm', },
|
||||
{ name => 'keywordsForm', },
|
||||
{ name => 'summaryForm', },
|
||||
{ name => 'highlightsForm', },
|
||||
{ name => 'storyForm', },
|
||||
{ name => 'saveButton', },
|
||||
{ name => 'saveAndAddButton', },
|
||||
{ name => 'cancelButton', },
|
||||
{ name => 'photo_form_loop',
|
||||
variables => [
|
||||
{ name => 'imgUploadForm', },
|
||||
{ name => 'imgCaptionForm', },
|
||||
{ name => 'imgBylineForm', },
|
||||
{ name => 'imgAltForm', },
|
||||
{ name => 'imgTitleForm', },
|
||||
{ name => 'imgUrlForm', },
|
||||
{ name => 'imgDeleteForm', },
|
||||
],
|
||||
},
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
||||
'view template' => {
|
||||
title => 'view template',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => 'Asset_Template',
|
||||
tag => 'template variables'
|
||||
},
|
||||
],
|
||||
fields => [],
|
||||
variables => [
|
||||
{ name => 'highlights_loop',
|
||||
'variables' => [
|
||||
{ name => 'highlight', },
|
||||
],
|
||||
},
|
||||
{ name => 'keywords_loop',
|
||||
'variables' => [
|
||||
{ name => 'keyword', },
|
||||
{ name => 'url',
|
||||
description => 'keyword_url'
|
||||
},
|
||||
],
|
||||
},
|
||||
{ name => 'updatedTime', },
|
||||
{ name => 'updatedTimeEpoch', },
|
||||
{ name => 'crumb_loop',
|
||||
'variables' => [
|
||||
{ name => 'title',
|
||||
description => 'crumb_title'
|
||||
},
|
||||
{ name => 'url',
|
||||
description => 'crumb_url'
|
||||
},
|
||||
],
|
||||
},
|
||||
{ name => 'hasPhotos', },
|
||||
{ name => 'singlePhoto', },
|
||||
{ name => 'photo_loop',
|
||||
'variables' => [
|
||||
{ name => 'imageUrl', },
|
||||
{ name => 'imageCaption', },
|
||||
{ name => 'imageByline', },
|
||||
{ name => 'imageAlt', },
|
||||
{ name => 'imageTitle', },
|
||||
{ name => 'imageLink', },
|
||||
],
|
||||
},
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
||||
'story asset template variables' => {
|
||||
private => 1,
|
||||
title => 'story asset template variables title',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => 'Asset',
|
||||
tag => 'asset template asset variables'
|
||||
},
|
||||
],
|
||||
fields => [],
|
||||
variables => [
|
||||
{ name => 'headline',
|
||||
description => 'headline tmplvar',
|
||||
},
|
||||
{ name => 'subtitle',
|
||||
description => 'subtitle tmplvar',
|
||||
},
|
||||
{ name => 'byline',
|
||||
description => 'byline tmplvar',
|
||||
},
|
||||
{ name => 'updatedTime', },
|
||||
{ name => 'updatedTimeEpoch', },
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
||||
'story asset template variables' => {
|
||||
private => 1,
|
||||
title => 'story asset template variables title',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => 'Asset',
|
||||
tag => 'asset template asset variables'
|
||||
},
|
||||
],
|
||||
fields => [],
|
||||
variables => [
|
||||
{ name => 'headline',
|
||||
description => 'headline tmplvar',
|
||||
},
|
||||
{ name => 'subtitle',
|
||||
description => 'subtitle tmplvar',
|
||||
},
|
||||
{ name => 'byline',
|
||||
description => 'byline tmplvar',
|
||||
},
|
||||
{ name => 'location',
|
||||
description => 'location tmplvar',
|
||||
},
|
||||
{ name => 'highlights',
|
||||
description => 'highlights tmplvar',
|
||||
},
|
||||
{ name => 'story',
|
||||
description => 'story tmplvar',
|
||||
},
|
||||
{ name => 'photo',
|
||||
description => 'photo tmplvar',
|
||||
},
|
||||
{ name => 'storageId',
|
||||
description => 'storageId tmplvar',
|
||||
},
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
102
lib/WebGUI/Help/Asset_StoryArchive.pm
Normal file
102
lib/WebGUI/Help/Asset_StoryArchive.pm
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
package WebGUI::Help::Asset_StoryArchive;
|
||||
use strict;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'view template' => {
|
||||
title => 'view template',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => "Asset_StoryArchive",
|
||||
tag => "storyarchive asset template variables"
|
||||
},
|
||||
{ namespace => "Asset_Template",
|
||||
tag => "template variables"
|
||||
},
|
||||
{ namespace => "Asset",
|
||||
tag => "asset template"
|
||||
},
|
||||
{ tag => 'pagination template variables',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
],
|
||||
fields => [],
|
||||
variables => [
|
||||
{ 'name' => 'date_loop',
|
||||
'variables' => [
|
||||
{ 'name' => 'epochDate' },
|
||||
{ 'name' => 'story_loop',
|
||||
'variables' => [
|
||||
{ 'name' => 'url' },
|
||||
{ 'name' => 'title' },
|
||||
{ 'name' => 'creationDate' },
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
{ 'name' => 'searchHeader' },
|
||||
{ 'name' => 'searchForm' },
|
||||
{ 'name' => 'searchButton' },
|
||||
{ 'name' => 'searchFooter' },
|
||||
{ 'name' => 'canPostStories' },
|
||||
{ 'name' => 'addStoryUrl' },
|
||||
{ 'name' => 'rssUrl' },
|
||||
{ 'name' => 'atomUrl' },
|
||||
{ 'name' => 'keywordCloud' },
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
||||
'storyarchive asset template variables' => {
|
||||
private => 1,
|
||||
title => 'storyarchive asset template variables title',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => "Asset_Wobject",
|
||||
tag => "wobject template variables"
|
||||
},
|
||||
],
|
||||
fields => [],
|
||||
variables => [
|
||||
{ 'name' => 'storesPerPage',
|
||||
'description' => 'stories per page help',
|
||||
},
|
||||
{ 'name' => 'groupToPost', },
|
||||
{ 'name' => 'templateId', },
|
||||
{ 'name' => 'storyTemplateId', },
|
||||
{ 'name' => 'editStoryTemplateId', },
|
||||
{ 'name' => 'keywordListTemplateId', },
|
||||
{ 'name' => 'archiveAfter', },
|
||||
{ 'name' => 'richEditorId', },
|
||||
{ 'name' => 'approvalWorkflowId', },
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
||||
|
||||
'keyword list template' => {
|
||||
title => 'view template',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => "Asset_Template",
|
||||
tag => "template variables"
|
||||
},
|
||||
],
|
||||
fields => [],
|
||||
variables => [
|
||||
{ 'name' => 'asset_loop',
|
||||
'variables' => [
|
||||
{ 'name' => 'title',
|
||||
description => 'asset title' },
|
||||
{ 'name' => 'url',
|
||||
description => 'asset url' },
|
||||
]
|
||||
},
|
||||
{ 'name' => 'keyword' },
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
64
lib/WebGUI/Help/Asset_StoryTopic.pm
Normal file
64
lib/WebGUI/Help/Asset_StoryTopic.pm
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
package WebGUI::Help::Asset_StoryTopic;
|
||||
use strict;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'view template' => {
|
||||
title => 'view template',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => "Asset_StoryTopic",
|
||||
tag => "storytopic asset template variables"
|
||||
},
|
||||
{ namespace => "Asset_Template",
|
||||
tag => "template variables"
|
||||
},
|
||||
{ namespace => "Asset",
|
||||
tag => "asset template"
|
||||
},
|
||||
],
|
||||
fields => [],
|
||||
variables => [
|
||||
{ name => 'standAlone' },
|
||||
{ name => 'story_loop',
|
||||
variables => [
|
||||
{ name => 'url' },
|
||||
{ name => 'title' },
|
||||
{ name => 'creationDate' },
|
||||
],
|
||||
},
|
||||
{ name => 'topStoryTitle' },
|
||||
{ name => 'topStorySubtitle' },
|
||||
{ name => 'topStoryUrl' },
|
||||
{ name => 'topStoryCreationDate' },
|
||||
{ name => 'topStoryImageUrl' },
|
||||
{ name => 'topStoryImageCaption' },
|
||||
{ name => 'topStoryImageByline' },
|
||||
{ name => 'topStoryImageAlt' },
|
||||
{ name => 'topStoryImageTitle' },
|
||||
{ name => 'topStoryImageLink' },
|
||||
{ name => 'rssUrl' },
|
||||
{ name => 'atomUrl' },
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
||||
'storytopic asset template variables' => {
|
||||
private => 1,
|
||||
title => 'storytopic asset template variables title',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => "Asset_Wobject",
|
||||
tag => "wobject template variables"
|
||||
},
|
||||
],
|
||||
fields => [],
|
||||
variables => [
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue