Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let ve_guestbook work on TYPO3 8.7 #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions pi1/class.tx_veguestbook_pi1.php → Classes/Pi1.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
namespace Simonschaufi\VeGuestbook;

/***************************************************************
* Copyright notice
*
Expand Down Expand Up @@ -39,10 +41,11 @@
* @package TYPO3
* @subpackage ve_guestbook
*/
class tx_veguestbook_pi1 extends AbstractPlugin
class Pi1 extends AbstractPlugin
{
public $prefixId = 'tx_veguestbook_pi1'; // Same as class name
public $scriptRelPath = 'pi1/class.tx_veguestbook_pi1.php'; // Path to this script relative to the extension dir.
// @TODO find proper solution to load the correct language file
public $scriptRelPath = 'pi1/dummypathforlanguagefile.php'; // Path to this script relative to the extension dir.
public $extKey = 've_guestbook'; // The extension key.

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"license": "GPL-2.0+",
"require": {
"typo3/cms-core": ">=7.6,<8.0"
"typo3/cms-core": ">=7.6,<9.0"
},
"suggest": {
"sjbr/sr-freecap": "~2.3"
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'clearCacheOnLoad' => 0,
'constraints' => [
'depends' => [
'typo3' => '7.6.0 - 7.9.99',
'typo3' => '7.6.0 - 8.9.99',
],
'conflicts' => [
],
Expand Down
13 changes: 12 additions & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,18 @@
}
');

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi1/class.tx_veguestbook_pi1.php', '_pi1', 'list_type', 0);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'
plugin.tx_veguestbook_pi1 = USER_INT
plugin.tx_veguestbook_pi1 {
userFunc = Simonschaufi\VeGuestbook\Pi1->main
}

tt_content.list.20.ve_guestbook_pi1 = < plugin.tx_veguestbook_pi1
'
);


\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
$_EXTKEY,
'setup',
Expand Down
1 change: 0 additions & 1 deletion ext_typoscript_setup.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
plugin.tx_veguestbook_pi1 {
userFunc = tx_veguestbook_pi1->main
templateFile = {$plugin.tx_veguestbook_pi1.file.templateFile}
teasercut = 50
wordcut = 100
Expand Down