Commit b2ab4341 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Creating bare module

parents
<?php
namespace SGalinski\SgMail\Controller;
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
/**
* Controller for the mail templating service module
*/
class MailController extends ActionController {
/**
*
*/
public function indexAction() {
}
}
module.tx_sgcmail {
view {
templateRootPaths.0 = EXT:sg_mail/Resources/Private/Templates/
partialRootPaths.0 = EXT:sg_mail/Resources/Private/Partials/
layoutRootPaths.0 = EXT:sg_mail/Resources/Private/Layouts/
}
}
<Files *>
Order Deny,Allow
Deny from all
</Files>
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2014-10-16T16:26:21Z">
<header>
<type>module</type>
<description>Language labels for the backend module belonging to extension 'sg_csv_importer'</description>
<generator>LFEditor</generator>
<authorName>Torsten Oppermann</authorName>
<authorEmail>torsten@sgalinski.de</authorEmail>
</header>
<body>
<trans-unit id="backend.uploadAction.importSuccessful.message" approved="yes">
<source>Import was successful</source>
<target>Der Import war erfolgreich</target>
</trans-unit>
<trans-unit id="backend.uploadAction.invalidData.message" approved="yes">
<source>Invalid CSV Data</source>
<target>ungültige CSV-Daten</target>
</trans-unit>
<trans-unit id="backend.uploadAction.noFileSelected.message" approved="yes">
<source>No File selected</source>
<target>Keine Datei ausgewählt</target>
</trans-unit>
<trans-unit id="backend.uploadAction.noImplementation.message" approved="yes">
<source>Not yet implemented</source>
<target>Noch nicht implementiert</target>
</trans-unit>
<trans-unit id="function.csv.import.internett" approved="yes">
<source>Internett Availability</source>
<target>Internett-Verfügbarkeit</target>
</trans-unit>
<trans-unit id="function.csv.import.users">
<source>Benutzer Kommmunalforum</source>
</trans-unit>
<trans-unit id="function.index.general" approved="yes">
<source>Please choose</source>
<target>Bitte wählen Sie</target>
</trans-unit>
<trans-unit id="mlang_labels_tabdescr" approved="yes">
<source>CSV Importer</source>
<target>CSV-Importer</target>
</trans-unit>
<trans-unit id="mlang_labels_tablabel" approved="yes">
<source>CSV Importer</source>
<target>CSV-Importer</target>
</trans-unit>
<trans-unit id="mlang_tabs_tab" approved="yes">
<source>CSV Importer</source>
<target>CSV-Importer</target>
</trans-unit>
<trans-unit id="backend.uploadAction.import.message" approved="yes">
<source>Import</source>
<target>Importieren</target>
</trans-unit>
</body>
</file>
</xliff>
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2014-10-16T16:26:21Z">
<header>
<type>module</type>
<description>Language labels for the backend module belonging to extension 'sg_csv_importer'</description>
<generator>LFEditor</generator>
<authorName>Torsten Oppermann</authorName>
<authorEmail>torsten@sgalinski.de</authorEmail>
</header>
<body>
<trans-unit id="backend.uploadAction.import.message">
<source>Import</source>
</trans-unit>
<trans-unit id="backend.uploadAction.importSuccessful.message">
<source>Import was successful</source>
</trans-unit>
<trans-unit id="backend.uploadAction.invalidData.message">
<source>Invalid CSV Data</source>
</trans-unit>
<trans-unit id="backend.uploadAction.noFileSelected.message">
<source>No File selected</source>
</trans-unit>
<trans-unit id="backend.uploadAction.noImplementation.message">
<source>Not yet implemented</source>
</trans-unit>
<trans-unit id="function.csv.import.internett">
<source>Internett Availability</source>
</trans-unit>
<trans-unit id="function.csv.import.users">
<source>Benutzer Kommmunalforum</source>
</trans-unit>
<trans-unit id="function.index.general">
<source>Please choose</source>
</trans-unit>
<trans-unit id="mlang_labels_tabdescr">
<source>Mail Templates</source>
</trans-unit>
<trans-unit id="mlang_labels_tablabel">
<source>Mail Templates</source>
</trans-unit>
<trans-unit id="mlang_tabs_tab">
<source>Mail Templates</source>
</trans-unit>
</body>
</file>
</xliff>
<f:be.container enableClickMenu="FALSE" loadExtJs="FALSE">
<div class="module" data-module-id="" data-module-name="">
<div class="module-docheader t3js-module-docheader">
<div class="module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation">
<div class="module-docheader-bar-column-left">
<div class="btn-toolbar" role="toolbar">
<f:be.menus.actionMenu>
<f:be.menus.actionMenuItem label="{f:translate(key:'function.csv.import.internett')}"
controller="Mail"
action="index" />
</f:be.menus.actionMenu>
</div>
</div>
<div class="module-docheader-bar-column-right">
</div>
</div>
<div class="module-docheader-bar module-docheader-bar-buttons t3js-module-docheader-bar t3js-module-docheader-bar-buttons">
<div class="module-docheader-bar-column-left">
<div class="btn-toolbar" role="toolbar" aria-label="">
<f:render section="iconButtons" />
</div>
</div>
<div class="module-docheader-bar-column-right">
</div>
</div>
</div>
<div id="typo3-docbody">
<div id="typo3-inner-docbody">
<f:render section="main" />
</div>
</div>
</div>
</f:be.container>
<f:layout name="Default" />
<f:section name="iconButtons">
&nbsp;
</f:section>
<f:section name="main">
<f:flashMessages renderMode="div" />
</f:section>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewBox="0 0 64 64"
id="svg5919"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="ModuleIcon.svg">
<metadata
id="metadata5931">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs5929" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2560"
inkscape:window-height="1365"
id="namedview5927"
showgrid="false"
inkscape:zoom="3.6875"
inkscape:cx="32"
inkscape:cy="32"
inkscape:window-x="1920"
inkscape:window-y="156"
inkscape:window-maximized="1"
inkscape:current-layer="svg5919" />
<path
fill="#E49139"
d="M0 0h64v64H0z"
id="path5921"
style="fill:#ffffff" />
<g
transform="matrix(0.89562766,0,0,-0.89562766,32.095621,2.5954637)"
id="g5258">
<path
inkscape:connector-curvature="0"
id="path5260"
style="fill:#7d1d1e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,0 -0.009,-0.005 0,-9.586 0.07,0.04 20.187,-11.636 0,-10.103 -20.257,12.207 -8.481,-5.047 8.481,-4.841 20.257,-11.561 0,-4.205 -20.187,-11.914 -0.07,0.038 0,-9.322 0.009,-0.005 28.553,16.486 0,32.969 L 0,0 Z" />
</g>
<g
transform="matrix(0.89562766,0,0,-0.89562766,32.08774,35.841249)"
id="g5262">
<path
inkscape:connector-curvature="0"
id="path5264"
style="fill:#c0392b;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,0 -20.257,11.308 0,4.626 L 0,27.529 l 0,9.586 -0.011,0.005 -28.551,-16.485 0,-32.969 28.553,-16.486 0.009,0.006 0,9.321 -20.257,11.455 0,9.533 L 0,-9.766 0.069,-9.805 8.622,-4.812 0,0 Z" />
</g>
</svg>
<?php
/***************************************************************
* Extension Manager/Repository config file for ext "sg_mail".
***************************************************************/
$EM_CONF[$_EXTKEY] = array (
'title' => 'Mail Templates',
'description' => 'Mail Templates',
'category' => 'module',
'version' => '1.0.0',
'state' => 'stable',
'uploadfolder' => false,
'createDirs' => '',
'clearcacheonload' => false,
'author' => 'Torsten Oppermann',
'author_email' => 'torsten@sgalinski.de',
'author_company' => 'sgalinski Internet Services (https://www.sgalinski.de)',
'constraints' =>
array (
'depends' =>
array (
'typo3' => '7.6.0-7.9.99',
'php' => '5.5.0-7.0.99',
),
'conflicts' =>
array (
),
'suggests' =>
array (
),
),
);
ext_icon.png

825 Bytes

<?php
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
/** @noinspection PhpUndefinedVariableInspection */
$extPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sg_mail');
if (TYPO3_MODE === 'BE') {
$tsPath = $extPath . 'Configuration/TypoScript/';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(file_get_contents($tsPath . 'setup.ts'));
}
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'SGalinski.sg_mail',
'web',
'Mail',
'',
[
'Mail' => 'index',
],
[
'access' => 'admin,user,group',
'icon' => 'EXT:sg_mail/Resources/Public/Icons/ModuleIcon.svg',
'labels' => 'LLL:EXT:sg_mail/Resources/Private/Language/locallang.xlf',
]
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment