-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from jmverges/welcomeModule
[FEATURE] Site module
- Loading branch information
Showing
15 changed files
with
370 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?php | ||
namespace FluidTYPO3\Site\Controller; | ||
|
||
/* | ||
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.md file that was distributed with this source code. | ||
*/ | ||
|
||
use FluidTYPO3\Builder\Analysis\Fluid\TemplateAnalyzer; | ||
use FluidTYPO3\Builder\Analysis\Metric; | ||
use FluidTYPO3\Builder\Result\ParserResult; | ||
use FluidTYPO3\Builder\Service\ExtensionService; | ||
use FluidTYPO3\Builder\Service\SyntaxService; | ||
use FluidTYPO3\Builder\Utility\ExtensionUtility; | ||
use FluidTYPO3\Site\Service\EnterpriseLevelEnumeration; | ||
use FluidTYPO3\Site\Service\KickStarterService; | ||
use TYPO3\CMS\Backend\Template\DocumentTemplate; | ||
use TYPO3\CMS\Backend\Utility\BackendUtility; | ||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; | ||
|
||
/** | ||
* Class BackendController | ||
* @package FluidTYPO3\Site\Controller | ||
*/ | ||
class BackendController extends ActionController { | ||
|
||
|
||
|
||
/** | ||
* @var KickStarterService | ||
*/ | ||
protected $kickStarterService; | ||
|
||
|
||
/** | ||
* @param KickStarterService $kickStarterService | ||
* @return void | ||
*/ | ||
public function injectKickStarterService(KickStarterService $kickStarterService) { | ||
$this->kickStarterService = $kickStarterService; | ||
} | ||
|
||
/** | ||
* @param string $view | ||
* @return void | ||
*/ | ||
public function indexAction($view = 'Index') { | ||
$extensions = [ | ||
EnterpriseLevelEnumeration::BY_DEFAULT => EnterpriseLevelEnumeration::BY_DEFAULT, | ||
EnterpriseLevelEnumeration::MINIMALIST => EnterpriseLevelEnumeration::MINIMALIST, | ||
EnterpriseLevelEnumeration::SMALL => EnterpriseLevelEnumeration::SMALL, | ||
EnterpriseLevelEnumeration::MEDIUM => EnterpriseLevelEnumeration::MEDIUM, | ||
EnterpriseLevelEnumeration::LARGE => EnterpriseLevelEnumeration::LARGE | ||
]; | ||
|
||
$this->view->assign('csh', BackendUtility::wrapInHelp('site', 'modules')); | ||
$this->view->assign('view', $view); | ||
$this->view->assign('extensionSelectorOptions', $extensions); | ||
|
||
} | ||
|
||
/** | ||
* @param string $mass | ||
* @param bool $makeResources | ||
* @param bool $makeMountPoint | ||
* @param string $extensionKey | ||
* @param null $author | ||
* @param null $title | ||
* @param null $description | ||
* @param bool $useVhs | ||
* @param bool $useFluidcontentCore | ||
* @param bool $pages | ||
* @param bool $content | ||
* @param bool $backend | ||
* @param bool $controllers | ||
*/ | ||
public function buildSiteAction($mass = EnterpriseLevelEnumeration::BY_DEFAULT, $makeResources = TRUE, $makeMountPoint = TRUE, $extensionKey = NULL, $author = NULL, $title = NULL, $description = NULL, $useVhs = TRUE, $useFluidcontentCore = TRUE, $pages = TRUE, $content = TRUE, $backend = FALSE, $controllers = TRUE) { | ||
$view = 'buildSite'; | ||
$this->view->assign('csh', BackendUtility::wrapInHelp('builder', 'modules')); | ||
$this->view->assign('view', $view); | ||
$output = $this->kickStarterService->generateFluidPoweredSite($mass, $makeResources, $makeMountPoint, $extensionKey, $author, $title, $description, $useVhs, $useFluidcontentCore, $pages, $content, $backend, $controllers); | ||
$this->view->assign('output', $output); | ||
} | ||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff"> | ||
<file t3:id="1415814985" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:37Z" product-name="builder"> | ||
<header/> | ||
<body> | ||
<trans-unit id="mlang_tabs_tab" xml:space="preserve"> | ||
<source>Kick Starter</source> | ||
</trans-unit> | ||
<trans-unit id="mlang_labels_tablabel" xml:space="preserve"> | ||
<source>Kick Starter</source> | ||
</trans-unit> | ||
<trans-unit id="modules.alttitle" xml:space="preserve"> | ||
<source>Kick Starter</source> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0"?> | ||
<xliff version="1.0"> | ||
<file source-language="en" datatype="plaintext" original="messages" product-name="builder" date="2015-03-14T22:24:42+01:00"> | ||
<header/> | ||
<body> | ||
<trans-unit id="mlang_tabs_tab" xml:space="preserve"> | ||
<source>Site</source> | ||
</trans-unit> | ||
<trans-unit id="mlang_labels_tablabel" xml:space="preserve"> | ||
<source>Site</source> | ||
</trans-unit> | ||
<trans-unit id="modules.alttitle" xml:space="preserve"> | ||
<source>Site</source> | ||
</trans-unit> | ||
<trans-unit id="modules.description" xml:space="preserve"> | ||
<source>The Site provides a site</source> | ||
</trans-unit> | ||
<trans-unit id="header.index" xml:space="preserve"> | ||
<source>Site - Site Kick Starter</source> | ||
</trans-unit> | ||
<trans-unit id="header.index.title" xml:space="preserve"> | ||
<source>Configure a FluidTYPO3 site</source> | ||
</trans-unit> | ||
<trans-unit id="options.mass" xml:space="preserve"> | ||
<source>Site enterprise level: If you wish, select the expected size of your site here. Depending on your selection, system extensions will be installed or uninstalled to create a sane default extension collection that suits your site. The "medium" option is approximately the same as the default except without the documentation-related extensions. Choose "large" if your site is targed at multiple editors, languages or otherwise requires many CMS features.</source> | ||
</trans-unit> | ||
<trans-unit id="options.makeResources" xml:space="preserve"> | ||
<source>Create resources: Check this checkbox to create a top-level page with preset template selections, three sub-pages, one domain record based on the current host name you use and one root TypoScript record in which the necessary static TypoScript templates are pre-included.</source> | ||
</trans-unit> | ||
<trans-unit id="options.makeMountPoint" xml:space="preserve"> | ||
<source>Create FAL mount point: Check this to create a file system mount point allowing you to access your templates and asset files using the "File list" module" and reference your templates and asset files from "file" type fields in your pages and content properties.</source> | ||
</trans-unit> | ||
<trans-unit id="submit.validate" xml:space="preserve"> | ||
<source>Submit</source> | ||
</trans-unit> | ||
<trans-unit id="providerextension.name" xml:space="preserve"> | ||
<source>Extension Key: We will create for you an extension with this name if the extension is not found in the system.</source> | ||
</trans-unit> | ||
|
||
|
||
|
||
</body> | ||
</file> | ||
</xliff> |
Oops, something went wrong.