Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* Definitions of routes
|
||||
*/
|
||||
return [
|
||||
// Register wizard
|
||||
'wizard_forms' => [
|
||||
'path' => '/wizard/forms',
|
||||
'target' => \TYPO3\CMS\Compatibility6\Controller\Wizard\FormsController::class . '::mainAction'
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
defined('TYPO3_MODE') or die();
|
||||
|
||||
// Add "pages.storage_pid" field to TCA column
|
||||
$additionalColumns = array(
|
||||
'storage_pid' => array(
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:storage_pid',
|
||||
'config' => array(
|
||||
'type' => 'group',
|
||||
'internal_type' => 'db',
|
||||
'allowed' => 'pages',
|
||||
'size' => '1',
|
||||
'maxitems' => '1',
|
||||
'minitems' => '0',
|
||||
'show_thumbs' => '1',
|
||||
'wizards' => array(
|
||||
'suggest' => array(
|
||||
'type' => 'suggest'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $additionalColumns);
|
||||
|
||||
// Add palette
|
||||
$GLOBALS['TCA']['pages']['palettes']['storage'] = array(
|
||||
'showitem' => 'storage_pid;LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:pages.storage_pid_formlabel',
|
||||
'canNotCollapse' => 1
|
||||
);
|
||||
|
||||
// Add to "normal" pages, "external URL", "shortcut page" and "storage PID"
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages',
|
||||
'--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:pages.palettes.storage;storage',
|
||||
\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT . ','
|
||||
. \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK . ','
|
||||
. \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT . ','
|
||||
. \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER,
|
||||
'after:media'
|
||||
);
|
||||
@@ -0,0 +1,401 @@
|
||||
<?php
|
||||
defined('TYPO3_MODE') or die();
|
||||
|
||||
//Extra fields for the tt_content table
|
||||
$extraContentColumns = array(
|
||||
'altText' => array(
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_altText',
|
||||
'config' => array(
|
||||
'type' => 'text',
|
||||
'cols' => '30',
|
||||
'rows' => '3'
|
||||
)
|
||||
),
|
||||
'imagecaption' => array(
|
||||
'label' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:LGL.caption',
|
||||
'config' => array(
|
||||
'type' => 'text',
|
||||
'cols' => '30',
|
||||
'rows' => '3',
|
||||
'softref' => 'typolink_tag,images,email[subst],url'
|
||||
)
|
||||
),
|
||||
'imagecaption_position' => array(
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:imagecaption_position',
|
||||
'config' => array(
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => array(
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:LGL.default_value',
|
||||
''
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:imagecaption_position.I.1',
|
||||
'center'
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:imagecaption_position.I.2',
|
||||
'right'
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:imagecaption_position.I.3',
|
||||
'left'
|
||||
)
|
||||
),
|
||||
'default' => ''
|
||||
)
|
||||
),
|
||||
'image_link' => array(
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_link',
|
||||
'config' => array(
|
||||
'type' => 'text',
|
||||
'cols' => '30',
|
||||
'rows' => '3',
|
||||
'wizards' => array(
|
||||
'link' => array(
|
||||
'type' => 'popup',
|
||||
'title' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_link_formlabel',
|
||||
'icon' => 'EXT:compatibility6/Resources/Public/Images/wizard_link.gif',
|
||||
'module' => array(
|
||||
'name' => 'wizard_link',
|
||||
),
|
||||
'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1'
|
||||
)
|
||||
),
|
||||
'softref' => 'typolink[linkList]'
|
||||
)
|
||||
),
|
||||
'image_frames' => array(
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames',
|
||||
'config' => array(
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => array(
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.0',
|
||||
0
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.1',
|
||||
1
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.2',
|
||||
2
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.3',
|
||||
3
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.4',
|
||||
4
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.5',
|
||||
5
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.6',
|
||||
6
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.7',
|
||||
7
|
||||
),
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.8',
|
||||
8
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
'longdescURL' => array(
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_longdescURL',
|
||||
'config' => array(
|
||||
'type' => 'text',
|
||||
'cols' => '30',
|
||||
'rows' => '3',
|
||||
'wizards' => array(
|
||||
'link' => array(
|
||||
'type' => 'popup',
|
||||
'title' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_link_formlabel',
|
||||
'icon' => 'EXT:compatibility6/Resources/Public/Images/wizard_link.gif',
|
||||
'module' => array(
|
||||
'name' => 'wizard_link',
|
||||
),
|
||||
'params' => array(
|
||||
'blindLinkOptions' => 'folder,file,mail,spec',
|
||||
'blindLinkFields' => 'target,title,class,params'
|
||||
),
|
||||
'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1'
|
||||
)
|
||||
),
|
||||
'softref' => 'typolink[linkList]'
|
||||
)
|
||||
),
|
||||
'titleText' => array(
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_titleText',
|
||||
'config' => array(
|
||||
'type' => 'text',
|
||||
'cols' => '30',
|
||||
'rows' => '3'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Adding fields to the tt_content table definition in TCA
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $extraContentColumns);
|
||||
|
||||
// Add default palettes
|
||||
$GLOBALS['TCA']['tt_content']['palettes'] = array_replace(
|
||||
$GLOBALS['TCA']['tt_content']['palettes'],
|
||||
array(
|
||||
'1' => array(
|
||||
'showitem' => '
|
||||
starttime,
|
||||
endtime
|
||||
'
|
||||
),
|
||||
'2' => array(
|
||||
'showitem' => '
|
||||
imagecols,
|
||||
image_noRows,
|
||||
imageborder
|
||||
'
|
||||
),
|
||||
'3' => array(
|
||||
'showitem' => '
|
||||
header_position,
|
||||
header_layout,
|
||||
header_link,
|
||||
date
|
||||
'
|
||||
),
|
||||
'4' => array(
|
||||
'showitem' => '
|
||||
sys_language_uid,
|
||||
l18n_parent,
|
||||
colPos,
|
||||
spaceBefore,
|
||||
spaceAfter,
|
||||
section_frame,
|
||||
sectionIndex
|
||||
'
|
||||
),
|
||||
'5' => array(
|
||||
'showitem' => '
|
||||
imagecaption_position
|
||||
'
|
||||
),
|
||||
'6' => array(
|
||||
'showitem' => '
|
||||
imagewidth,
|
||||
image_link
|
||||
'
|
||||
),
|
||||
'7' => array(
|
||||
'showitem' => '
|
||||
image_link,
|
||||
image_zoom
|
||||
',
|
||||
),
|
||||
'8' => array(
|
||||
'showitem' => '
|
||||
layout
|
||||
'
|
||||
),
|
||||
'10' => array(
|
||||
'showitem' => '
|
||||
table_bgColor,
|
||||
table_border,
|
||||
table_cellspacing,
|
||||
table_cellpadding
|
||||
'
|
||||
),
|
||||
'11' => array(
|
||||
'showitem' => '
|
||||
image_compression,
|
||||
image_effects,
|
||||
image_frames
|
||||
',
|
||||
),
|
||||
'12' => array(
|
||||
'showitem' => '
|
||||
recursive
|
||||
'
|
||||
),
|
||||
'13' => array(
|
||||
'showitem' => '
|
||||
imagewidth,
|
||||
imageheight
|
||||
',
|
||||
),
|
||||
'14' => array(
|
||||
'showitem' => '
|
||||
sys_language_uid,
|
||||
l18n_parent,
|
||||
colPos
|
||||
'
|
||||
),
|
||||
'image_accessibility' => array(
|
||||
'showitem' => '
|
||||
altText;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:altText_formlabel,
|
||||
titleText;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:titleText_formlabel,
|
||||
--linebreak--,
|
||||
longdescURL;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:longdescURL_formlabel
|
||||
',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Add palettes from css_styled_content if css_styled_content is NOT loaded but needed for CE's "search" and "mailform"
|
||||
if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('css_styled_content')) {
|
||||
$GLOBALS['TCA']['tt_content']['palettes'] = array_replace(
|
||||
$GLOBALS['TCA']['tt_content']['palettes'],
|
||||
array(
|
||||
'visibility' => array(
|
||||
'showitem' => '
|
||||
hidden;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:hidden_formlabel,
|
||||
sectionIndex;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:sectionIndex_formlabel,
|
||||
linkToTop;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:linkToTop_formlabel
|
||||
',
|
||||
),
|
||||
'frames' => array(
|
||||
'showitem' => '
|
||||
layout;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:layout_formlabel,
|
||||
spaceBefore;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:spaceBefore_formlabel,
|
||||
spaceAfter;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:spaceAfter_formlabel,
|
||||
section_frame;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:section_frame_formlabel
|
||||
',
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('tt_content', 'image_settings', 'image_frames;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:image_frames_formlabel');
|
||||
|
||||
/**
|
||||
* CType "search"
|
||||
*/
|
||||
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['search'] = 'mimetypes-x-content-form-search';
|
||||
$GLOBALS['TCA']['tt_content']['types']['search'] = array(
|
||||
'showitem' => '--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
|
||||
--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
|
||||
--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
|
||||
--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.behaviour,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.searchform;searchform,
|
||||
--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.extended'
|
||||
);
|
||||
|
||||
$GLOBALS['TCA']['tt_content']['palettes']['searchform'] = array(
|
||||
'showitem' => 'pages;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:pages.ALT.searchform',
|
||||
);
|
||||
|
||||
// check if there is already a forms tab and add the item after that, otherwise
|
||||
// add the tab item as well
|
||||
$additionalCTypeItem = array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:CType.I.9',
|
||||
'search',
|
||||
'content-special-indexed_search'
|
||||
);
|
||||
|
||||
$existingCTypeItems = $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'];
|
||||
$groupFound = false;
|
||||
$groupPosition = false;
|
||||
foreach ($existingCTypeItems as $position => $item) {
|
||||
if ($item[0] === 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:CType.div.forms') {
|
||||
$groupFound = true;
|
||||
$groupPosition = $position;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($groupFound && $groupPosition) {
|
||||
// add the new CType item below CType
|
||||
array_splice($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'], $groupPosition+1, 0, array(0 => $additionalCTypeItem));
|
||||
} else {
|
||||
// nothing found, add two items (group + new CType) at the bottom of the list
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType',
|
||||
array('LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:CType.div.forms', '--div--')
|
||||
);
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', $additionalCTypeItem);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* CType "mailform"
|
||||
*/
|
||||
if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {
|
||||
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['mailform'] = 'mimetypes-x-content-form';
|
||||
$GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['wizards']['forms'] = array(
|
||||
'notNewRecords' => 1,
|
||||
'enableByTypeConfig' => 1,
|
||||
'type' => 'script',
|
||||
'title' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:bodytext.W.forms',
|
||||
'icon' => 'EXT:compatibility6/Resources/Public/Images/wizard_forms.gif',
|
||||
'module' => array(
|
||||
'name' => 'wizard_forms',
|
||||
'urlParameters' => array(
|
||||
'special' => 'formtype_mail'
|
||||
)
|
||||
),
|
||||
'params' => array(
|
||||
'xmlOutput' => 0
|
||||
)
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
|
||||
'tt_content',
|
||||
'CType',
|
||||
array(
|
||||
'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:CType.I.8',
|
||||
'mailform',
|
||||
'content-elements-mailform'
|
||||
),
|
||||
'search',
|
||||
'before'
|
||||
);
|
||||
|
||||
// set up the fields
|
||||
$GLOBALS['TCA']['tt_content']['types']['mailform'] = array(
|
||||
'showitem' => '
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
|
||||
bodytext;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:bodytext.ALT.mailform_formlabel,
|
||||
--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
|
||||
--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
|
||||
--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.behaviour,
|
||||
--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.mailform;mailform,
|
||||
--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.extended'
|
||||
);
|
||||
$baseDefaultExtrasOfBodytext = '';
|
||||
if (!empty($GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'])) {
|
||||
$baseDefaultExtrasOfBodytext = $GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'] . ':';
|
||||
}
|
||||
if (!is_array($GLOBALS['TCA']['tt_content']['types']['mailform']['columnsOverrides'])) {
|
||||
$GLOBALS['TCA']['tt_content']['types']['mailform']['columnsOverrides'] = array();
|
||||
}
|
||||
if (!is_array($GLOBALS['TCA']['tt_content']['types']['mailform']['columnsOverrides']['bodytext'])) {
|
||||
$GLOBALS['TCA']['tt_content']['types']['mailform']['columnsOverrides']['bodytext'] = array();
|
||||
}
|
||||
$GLOBALS['TCA']['tt_content']['types']['mailform']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'nowrap:wizards[forms]';
|
||||
|
||||
$GLOBALS['TCA']['tt_content']['palettes']['mailform'] = array(
|
||||
'showitem' => 'pages;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:pages.ALT.mailform, --linebreak--, subheader;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:subheader.ALT.mailform_formlabel',
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
styles.content.mailform {
|
||||
target = {$PAGE_TARGET}
|
||||
# cat=content/cMailform; type=; label= Message, Formmail OK: This is the message (if any) that is popped-up (JavaScript) when a user clicks "send" with an email-form
|
||||
goodMess =
|
||||
# cat=content/cMailform; type=; label= Message, Formmail Missing: This is the message that is popped-up when a user has NOT filled required fields in an email-form
|
||||
badMess =
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
# Hide subheader for old style form element (it is used for recipient mail)
|
||||
lib.stdheader.20.if {
|
||||
isFalse = 0
|
||||
isFalse.override = 1
|
||||
isFalse.override {
|
||||
if.equals.field = CType
|
||||
if.value = mailform
|
||||
}
|
||||
}
|
||||
|
||||
# ******************
|
||||
# CType: mailform
|
||||
# ******************
|
||||
tt_content.mailform = COA
|
||||
tt_content.mailform.10 = < lib.stdheader
|
||||
tt_content.mailform.20 = FORM
|
||||
tt_content.mailform.20 {
|
||||
useDefaultContentObject = 1
|
||||
accessibility = 1
|
||||
noWrapAttr = 1
|
||||
formName = mailform
|
||||
dontMd5FieldNames = 1
|
||||
layout = <div class="csc-mailform-field">###LABEL### ###FIELD###</div>
|
||||
labelWrap.wrap = |
|
||||
commentWrap.wrap = |
|
||||
radioWrap.wrap = |<br />
|
||||
radioWrap.accessibilityWrap = <fieldset###RADIO_FIELD_ID###><legend>###RADIO_GROUP_LABEL###</legend>|</fieldset>
|
||||
REQ = 1
|
||||
REQ.labelWrap.wrap = |
|
||||
COMMENT.layout = <div class="csc-mailform-label">###LABEL###</div>
|
||||
RADIO.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-radio">###FIELD###</span></div>
|
||||
LABEL.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div>
|
||||
target < lib.parseTarget
|
||||
target =
|
||||
target.override = {$styles.content.mailform.target}
|
||||
goodMess = {$styles.content.mailform.goodMess}
|
||||
badMess = {$styles.content.mailform.badMess}
|
||||
redirect.field = pages
|
||||
redirect.listNum = 0
|
||||
recipient.field = subheader
|
||||
data.field = bodytext
|
||||
locationData = 1
|
||||
hiddenFields.stdWrap.wrap = <div style="display:none;">|</div>
|
||||
|
||||
params.radio = class="csc-mailform-radio"
|
||||
params.check = class="csc-mailform-check"
|
||||
params.submit = class="csc-mailform-submit"
|
||||
|
||||
stdWrap.wrap = <fieldset class="csc-mailform"> | </fieldset>
|
||||
stdWrap {
|
||||
editIcons = tt_content: bodytext, pages, subheader
|
||||
editIcons.iconTitle.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:eIcon.form
|
||||
|
||||
prefixComment = 2 | Mail form inserted:
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
styles.content.searchform {
|
||||
# cat=content/cSearch; type=; label= Message, Searchform: This is the message (if any) that is popped-up when a user performs a search
|
||||
goodMess =
|
||||
}
|
||||
|
||||
styles.content.searchresult {
|
||||
resultTarget = {$PAGE_TARGET}
|
||||
target = {$PAGE_TARGET}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
# ******************
|
||||
# CType: search
|
||||
# ******************
|
||||
tt_content.search = COA
|
||||
tt_content.search.10 = < lib.stdheader
|
||||
# Result:
|
||||
tt_content.search.20 = SEARCHRESULT
|
||||
tt_content.search.20 {
|
||||
allowedCols = pages.title-subtitle-keywords-description : tt_content.header-bodytext-imagecaption : tt_address.name-title-address-email-company-city-country : tt_links.title-note-note2-url : tt_board.subject-message-author-email : tt_calender.title-note : tt_products.title-note-itemnumber
|
||||
languageField.tt_content = sys_language_uid
|
||||
renderObj = COA
|
||||
renderObj {
|
||||
|
||||
10 = TEXT
|
||||
10.field = pages_title
|
||||
10.htmlSpecialChars = 1
|
||||
10.typolink {
|
||||
parameter.field = uid
|
||||
target < lib.parseTarget
|
||||
target =
|
||||
target.override = {$styles.content.searchresult.resultTarget}
|
||||
additionalParams.data = register:SWORD_PARAMS
|
||||
additionalParams.required = 1
|
||||
additionalParams.wrap = &no_cache=1
|
||||
}
|
||||
10.htmlSpecialChars = 1
|
||||
10.wrap = <h3 class="csc-searchResultHeader">|</h3>
|
||||
|
||||
20 = COA
|
||||
20 {
|
||||
10 = TEXT
|
||||
10.field = tt_content_bodytext
|
||||
10.stripHtml = 1
|
||||
10.htmlSpecialChars = 1
|
||||
}
|
||||
20.stdWrap.crop = 200 | ...
|
||||
20.stdWrap.wrap = <p class="csc-searchResult">|</p>
|
||||
}
|
||||
|
||||
layout = COA
|
||||
layout {
|
||||
wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###
|
||||
|
||||
10 = TEXT
|
||||
10.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:search.resultRange
|
||||
10.wrap = <td class="csc-searchResultRange"><p>|</p></td>
|
||||
|
||||
20 = TEXT
|
||||
20.value = ###PREV### ###NEXT###
|
||||
20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
|
||||
}
|
||||
|
||||
noResultObj = COA
|
||||
noResultObj {
|
||||
10 = TEXT
|
||||
10.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:search.emptySearch
|
||||
10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
|
||||
}
|
||||
|
||||
next = TEXT
|
||||
next.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:search.searchResultNext
|
||||
|
||||
prev = TEXT
|
||||
prev.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:search.searchResultPrev
|
||||
|
||||
target < lib.parseTarget
|
||||
target =
|
||||
target.override = {$styles.content.searchresult.target}
|
||||
|
||||
range = 20
|
||||
|
||||
stdWrap.prefixComment = 2 | Search result:
|
||||
}
|
||||
|
||||
tt_content.search.30 < tt_content.mailform.20
|
||||
tt_content.search.30 {
|
||||
goodMess = {$styles.content.searchform.goodMess}
|
||||
redirect >
|
||||
recipient >
|
||||
data >
|
||||
dataArray {
|
||||
10.label.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:search.searchWord
|
||||
10.type = sword=input
|
||||
20.label.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:search.searchIn
|
||||
20.type = scols=select
|
||||
20.valueArray {
|
||||
10.label.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:search.headersKeywords
|
||||
10.value = pages.title-subtitle-keywords-description:tt_content.header
|
||||
20.label.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:search.pageContent
|
||||
20.value = tt_content.header-bodytext-imagecaption
|
||||
}
|
||||
30.type = stype=hidden
|
||||
30.value = L0
|
||||
40.type = submit=submit
|
||||
40.value.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:search.searchButton
|
||||
}
|
||||
type.field = pages
|
||||
type.listNum = 0
|
||||
locationData = HTTP_POST_VARS
|
||||
no_cache = 1
|
||||
|
||||
stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"> | </table>
|
||||
stdWrap {
|
||||
editIcons.iconTitle.data = LLL:EXT:compatibility6/Resources/Private/Language/locallang.xlf:eIcon.search
|
||||
|
||||
prefixComment = 2 | Search form inserted:
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user