Resolves #64525 (Follow-up): Extbase does not find the templates of backend Font...
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 27 Jan 2015 20:26:08 +0000 (20:26 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 27 Jan 2015 20:26:08 +0000 (20:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/sr_freecap/trunk@88291 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Configuration/TypoScript/FontMaker/setup.txt [new file with mode: 0644]
Resources/Private/Layouts/Default.html [new file with mode: 0644]
Resources/Private/Templates/FontMaker/Create.html [new file with mode: 0644]
Resources/Private/Templates/FontMaker/New.html [new file with mode: 0644]
ext_tables.php

index 0e59177..6e63fbc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2015-01-27  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Resolves #64543: Extension does not handle vendorName
+       * Resolves #64525 (Follow-up): Extbase does not find the templates of backend Font Maker in TYPO3 7.0
 
 2015-01-26  Stanislas Rolland  <typo3@sjbr.ca>
 
diff --git a/Configuration/TypoScript/FontMaker/setup.txt b/Configuration/TypoScript/FontMaker/setup.txt
new file mode 100644 (file)
index 0000000..47bd746
--- /dev/null
@@ -0,0 +1,10 @@
+## Configuring the Font Maker backend module
+module.tx_srfreecap {
+       features.rewrittenPropertyMapper = 1
+       ## Paths for backend templates
+       view {
+               templateRootPath = EXT:sr_freecap/Resources/Private/Backend/Templates/
+               partialRootPath = EXT:sr_freecap/Resources/Private/Partials/
+               layoutRootPath = EXT:sr_freecap/Resources/Private/Backend/Layouts/
+       }
+}
\ No newline at end of file
diff --git a/Resources/Private/Layouts/Default.html b/Resources/Private/Layouts/Default.html
new file mode 100644 (file)
index 0000000..3346646
--- /dev/null
@@ -0,0 +1,11 @@
+<f:be.container includeCssFiles="{0:'{f:uri.resource(path:\'StyleSheets/FontMaker.css\')}'}">
+       <div id="typo3-docheader">           
+               <div class="typo3-docheader-functions">&nbsp;</div>
+               <div class="typo3-docheader-buttons">&nbsp;</div>
+       </div>
+       <div id="typo3-docbody">
+               <div id="typo3-inner-docbody">
+                       <div id="typo3-mod-freecap-font-maker"><f:render section="Content" /></div>
+               </div>
+       </div>
+</f:be.container>
\ No newline at end of file
diff --git a/Resources/Private/Templates/FontMaker/Create.html b/Resources/Private/Templates/FontMaker/Create.html
new file mode 100644 (file)
index 0000000..c581531
--- /dev/null
@@ -0,0 +1,27 @@
+<f:layout name="Default" />
+
+<f:section name="Content">
+       <h2>{f:translate(key: 'title-created')}</h2>
+       <fieldset class="sjbr-freecap-font-maker-created">
+               <dl>
+                       <dt>
+                               <label>{f:translate(key: 'usingFontFile')}</label>
+                       </dt>
+                       <dd>
+                               <strong>{font.ttfFontFileName}</strong>
+                       </dd>
+                       <dt>
+                               <label for="sjbr-freecap-font-maker-characterWidth">{f:translate(key: 'pngImageCreated')}</label>
+                       </dt>
+                       <dd>
+                               <img src="../{font.pngImageFileName}" alt="{f:translate(key: 'pngFontImage')}" />
+                       </dd>
+                       <dt>
+                               <label for="sjbr-freecap-font-maker-characterHeight">{f:translate(key: 'gdFontFileCreated')}</label>
+                       </dt>
+                       <dd>
+                               <strong>{font.gdFontFileName}</strong>
+                       </dd>
+               </dl>
+       </fieldset>
+</f:section>
diff --git a/Resources/Private/Templates/FontMaker/New.html b/Resources/Private/Templates/FontMaker/New.html
new file mode 100644 (file)
index 0000000..e80365f
--- /dev/null
@@ -0,0 +1,61 @@
+<f:layout name="Default" />
+
+<f:section name="Content">
+       <h2>{f:translate(key: 'title')}</h2>
+       <f:form method="post" controller="FontMaker" action="create" name="font" object="{font}" class="sjbr-freecap-font-maker">
+               <fieldset>
+               <dl>
+                       <dt>
+                               <label>{f:translate(key: 'charactersToIncludeInFont')}</label>
+                       </dt>
+                       <dd>
+                               <f:form.radio id="sjbr-freecap-font-maker-charactersIncludedInFont-0" property="charactersIncludedInFont" value="0" /><label for="sjbr-freecap-font-maker-charactersIncludedInFont-0">{f:translate(key: 'numbers-only')}</label>
+                               <br />
+                               <f:form.radio id="sjbr-freecap-font-maker-charactersIncludedInFont-1" property="charactersIncludedInFont" value="1" /><label for="sjbr-freecap-font-maker-charactersIncludedInFont-1">{f:translate(key: 'ASCII-lowercase-letters')}</label>
+                               <br />
+                               <f:form.radio id="sjbr-freecap-font-maker-charactersIncludedInFont-2" property="charactersIncludedInFont" value="2" /><label for="sjbr-freecap-font-maker-charactersIncludedInFont-2">{f:translate(key: 'ANSI-extended-ASCII-lowercase-letters')}</label>
+                       </dd>
+                       <dt>
+                       <label for="sjbr-freecap-font-maker-characterWidth">{f:translate(key: 'characterWidth')}</label>
+                       </dt>
+                       <dd>
+                               <f:form.textfield id="sjbr-freecap-font-maker-characterWidth" property="characterWidth" size="5" />
+                               <f:render partial="FormErrors" arguments="{for: 'font.characterWidth'}" />
+                       </dd>
+                       <dt>
+                               <label for="sjbr-freecap-font-maker-characterHeight">{f:translate(key: 'characterHeight')}</label>
+                       </dt>
+                       <dd>
+                               <f:form.textfield id="sjbr-freecap-font-maker-characterHeight" property="characterHeight" size="5" />
+                               <f:render partial="FormErrors" arguments="{for: 'font.characterHeight'}" />
+                       </dd>
+                       <dt>
+                               <label>{f:translate(key: 'endianness')}</label>
+                       </dt>
+                       <dd>
+                               <f:form.radio id="sjbr-freecap-font-maker-endianness-0" property="endianness" value="0" /><label for="sjbr-freecap-font-maker-endianness-0">{f:translate(key: 'littleEndian')}</label>
+                               <br />
+                               <f:form.radio id="sjbr-freecap-font-maker-endianness-1" property="endianness" value="1" /><label for="sjbr-freecap-font-maker-endianness-1">{f:translate(key: 'bigEndian')}</label>
+                       </dd>
+                       <dt>
+                               <label for="sjbr-freecap-font-maker-ttfFontFileName">{f:translate(key: 'pathToTTFFile')}</label>
+                       </dt>
+                       <dd>
+                               <f:form.textfield id="sjbr-freecap-font-maker-ttfFontFileName" property="ttfFontFileName" size="50" />
+                               <f:render partial="FormErrors" arguments="{for: 'font.ttfFontFileName'}" />
+                       </dd>
+                       <dt>
+                               <label for="sjbr-freecap-font-maker-gdFontFilePrefix">{f:translate(key: 'gdFontFilePrefix')}</label>
+                       </dt>
+                       <dd>
+                               <f:form.textfield id="sjbr-freecap-font-maker-gdFontFilePrefix" property="gdFontFilePrefix" size="25" />
+                       </dd>
+                       <dt>
+                       </dt>
+                       <dd>
+                               <f:form.submit class="submit" value="{f:translate(key: 'makeFont')}" />
+                       </dd>
+               </dl>
+               </fieldset>
+       </f:form>
+</f:section>
index 11a9c15..a9b53be 100644 (file)
@@ -32,5 +32,9 @@ if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
                                'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
                        )
                );
+               // Add configuration setup
+               if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 6002000) {
+                       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/FontMaker/setup.txt">');
+               }
        }
 }