Commit 239470e2 authored by Fabian Galinski's avatar Fabian Galinski 😾
Browse files

[TASK] Improvements of the code documentation

parent f403a5bb
......@@ -51,8 +51,14 @@ class TcaProvider implements SingletonInterface{
'shortcut' => 'shortcut',
'list' => 'list',
'fluidcontent_content' => 'fluidcontent_content',
'gridelements_pi1' => 'gridelements_pi1',
];
/**
* Returns the display condition for the TCA.
*
* @return array
*/
public static function getAllowedTypesForTcaDisplayCond() {
$conditions = [];
foreach (self::$allowedTypesForContentLink as $allowedTypeForContentLink) {
......
# How to install and configure this extension
1. Install the extension "sg_contentlink" in your TYPO3 extension manager
2. Include the static TypoScript template "Contentlink" to the root page
3. Add the tt_content cType values to the "SGalinski\SgContentlink\TCA\TcaProvider" class by using the following function, either in your ext_tables, or in your TCA configuration:
```
\SGalinski\SgContentlink\TCA\TcaProvider::addAllowedTypeForContentLink('###MY_CTYPE###');
// Example
\SGalinski\SgContentlink\TCA\TcaProvider::addAllowedTypeForContentLink('media');
```
\ No newline at end of file
......@@ -10,8 +10,8 @@
</header>
<body>
<trans-unit id="tt_content.tx_sgcontentlink_contentlink" approved="yes" xml:space="preserve">
<source>Contentelement link (Sets a link around this content. Could be a page uid)</source>
<target>Inhaltselement-Link (Setzt einen Link um dieses Inhaltselement. Kann eine Seiten-Uid sein)</target>
<source>Content Element Link</source>
<target>Inhaltselement-Link</target>
</trans-unit>
</body>
</file>
......
......@@ -10,7 +10,7 @@
</header>
<body>
<trans-unit id="tt_content.tx_sgcontentlink_contentlink" xml:space="preserve">
<source>Contentelement link (Sets a link around this content. Could be a page uid)</source>
<source>Content Element Link</source>
</trans-unit>
</body>
</file>
......
......@@ -2,11 +2,11 @@
$EM_CONF[$_EXTKEY] = array(
'title' => 'sgalinski Contentlink',
'description' => 'Possibility to set a link around a whole content element by sgalinski. Include static template.',
'description' => 'Possibility to set a link around a whole content element. (Include static template)',
'category' => 'plugin',
'author' => 'Fabian Galinski',
'author_email' => 'fabian@sgalinski.de',
'author_company' => 'sgalinski Internet Services',
'author_company' => 'sgalinski Internet Services (http://www.sgalinski.de)',
'shy' => '',
'dependencies' => '',
'conflicts' => '',
......@@ -22,8 +22,8 @@ $EM_CONF[$_EXTKEY] = array(
'version' => '1.0.0',
'constraints' => array(
'depends' => array(
'typo3' => '6.2.0-6.2.99',
'php' => '5.4.0-5.5.99',
'typo3' => '6.2.0-7.9.99',
'php' => '5.4.0-5.6.99',
),
'conflicts' => array(),
'suggests' => array(),
......
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