Commit ccaeaa1d authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

Merge branch 'feature_Upgrade-to-TYPO3-10' into 'master'

Feature upgrade to typo3 10

See merge request !2
parents 8f8d111d 98dd87eb
......@@ -34,25 +34,9 @@ call_user_func(
'label' => 'LLL:EXT:sg_contentlink/Resources/Private/Language/locallang_db.xlf:tt_content.tx_sgcontentlink_contentlink',
'config' => [
'type' => 'input',
'size' => 50,
'eval' => 'trim',
'wizards' => [
'_PADDING' => 2,
'link' => [
'type' => 'popup',
'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel',
'icon' => 'link_popup.gif',
'module' => [
'name' => 'wizard_element_browser',
'urlParameters' => [
'mode' => 'wizard'
],
],
'JSopenParams' => 'height=600,width=500,status=0,menubar=0,scrollbars=1'
]
],
],
],
'renderType' => 'inputLink'
]
]
]
);
......
......@@ -8,7 +8,7 @@ Repository: https://gitlab.sgalinski.de/typo3/sg_contentlink
Please report bugs here: https://gitlab.sgalinski.de/typo3/sg_contentlink
TYPO3 version: >7.6
TYPO3 version: >=9.5
## About
Adds an option to content elements that creates a link which wraps the entire element. Inner links will be removed.
......@@ -19,10 +19,10 @@ Adds an option to content elements that creates a link which wraps the entire el
2. Include the static TypoScript template "Contentlink" to the root page
3. The most important **CTypes** are already added.
If you want to add a new **CType**, simply extend the tt_content **cType** values to the **SGalinski\SgContentlink\TCA\TcaProvider** class by using the following functions,
either in your ext_tables.php or in your TCA configuration of your template extension.
either in your ext_tables.php or in your TCA configuration of your template extension.
```
\SGalinski\SgContentlink\TCA\TcaProvider::addAllowedTypeForContentLink('###MY_CTYPE###');
// Example
\SGalinski\SgContentlink\TCA\TcaProvider::addAllowedTypeForContentLink('media');
```
......@@ -43,8 +43,8 @@ You can supply different values for the link properties within the extensions Ty
}
}
}
## Usage
In your content elements you find an option **Content Element Link**.
When you provide a valid url, the element gets wrapped with the link and all inner links are removed.
If the option is empty or is not a valid url, nothing happens.
\ No newline at end of file
In your content elements you find an option **Content Element Link**.
When you provide a valid url, the element gets wrapped with the link and all inner links are removed.
If the option is empty or is not a valid url, nothing happens.
## Version 3 Breaking Changes
- Dropped TYPO3 8 support
......@@ -6,12 +6,12 @@
"license": [
"GPL-2.0-or-later"
],
"version": "2.0.1",
"version": "3.0.0-dev",
"support": {
"issues": "https://gitlab.sgalinski.de/typo3/sg_contentlink/issues"
},
"require": {
"typo3/cms-core": "^8.7.0 || ^9.5.1"
"typo3/cms-core": "^9.5.0 || ^10.4.0"
},
"require-dev": {
"roave/security-advisories": "dev-master"
......
......@@ -10,12 +10,12 @@
* writing. "version" and "dependencies" must not be touched!
***************************************************************/
$EM_CONF[$_EXTKEY] = [
$EM_CONF['sg_contentlink'] = [
'title' => 'sgalinski Contentlink',
'description' => 'Possibility to set a link around a whole content element. (Include static template)',
'category' => 'plugin',
'version' => '2.0.1',
'state' => 'stable',
'version' => '3.0.0-dev',
'state' => 'experimental',
'uploadfolder' => FALSE,
'createDirs' => '',
'clearcacheonload' => FALSE,
......@@ -26,8 +26,8 @@ $EM_CONF[$_EXTKEY] = [
[
'depends' =>
[
'typo3' => '8.7.0-9.5.99',
'php' => '7.0.0-7.3.99',
'typo3' => '9.5.0-10.4.99',
'php' => '7.3.0-7.4.99',
],
'conflicts' =>
[
......
CREATE TABLE tt_content (
tx_sgcontentlink_contentlink text NOT NULL,
);
\ No newline at end of file
tx_sgcontentlink_contentlink text NOT NULL
);
Markdown is supported
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