Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 63cd9fe

Browse files
committed
make content templates trial
1 parent 5d8a5b4 commit 63cd9fe

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

dashboard.tar.gz

-6 Bytes
Binary file not shown.

digexp-wcm-design/wcmHelper.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ init = function(host, port, contentPath, user, password, secure, wcmDir) {
132132
createFolder(wcmCwd + libTitle);
133133
createFolder(wcmCwd + libTitle + Path.sep + 'Presentation Templates');
134134
createFolder(wcmCwd + libTitle + Path.sep + 'Components');
135-
createFolder(wcmCwd + libTitle + Path.sep + cAuthoringTemplates);
135+
// only do content template components if the user turns on trial code
136+
if(options.trial && options.trial == true)
137+
createFolder(wcmCwd + libTitle + Path.sep + cAuthoringTemplates);
136138
progGoal++;
137139
var totalCount = 0;
138140
var libSettings = utils.getSettings(wcmCwd + libTitle + Path.sep);
@@ -439,7 +441,11 @@ function pullType(options, type, libTitle, extension, map) {
439441
function pullTypeParallel(options, type, libTitle, extension, map) {
440442
debugLogger.trace('pullType::optioins ' + options + ' type::' + type + ' libTitle::' + libTitle + ' extension::' + extension);
441443
var deferred = Q.defer();
442-
if (includeOption(options, type)) {
444+
if((options.trial == undefined || options.trial == false) && type == wcmRequests.wcmTypes.contentTemplate)
445+
{
446+
deferred.resolve(0);
447+
}
448+
else if (includeOption(options, type)) {
443449
wcmRequests.getWcmItemsOfType(type, libTitle).then(function(entries) {
444450
var promises = [];
445451
progGoal += entries.length;
@@ -482,7 +488,11 @@ function pullTypeParallel(options, type, libTitle, extension, map) {
482488
function pullTypeSequential(options, type, libTitle, extension, map) {
483489
debugLogger.trace('pullType::optioins ' + options + ' type::' + type + ' libTitle::' + libTitle + ' extension::' + extension);
484490
var deferred = Q.defer();
485-
if (includeOption(options, type)) {
491+
if((options.trial == undefined || options.trial == false) && type == wcmRequests.wcmTypes.contentTemplate)
492+
{
493+
deferred.resolve(0);
494+
}
495+
else if (includeOption(options, type)) {
486496
wcmRequests.getWcmItemsOfType(type, libTitle).then(function(entries) {
487497
progGoal += entries.length;
488498
if (entries.length == 0) {

release/digexp-toolkit.zip

159 Bytes
Binary file not shown.

wcm-design.tar.gz

121 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)