typo3

Display field in TCA of pages based on the previous field value

為{幸葍}努か 提交于 2019-12-08 11:20:20
问题 I would like to achieve that my field in TCA will be shown or hidden based on my previous field value. How can I do that? I can do it in javascript, but is possible to include a javascript in TCA? Here user choose value: $fields = array( 'question_field' => array( 'label' => 'user choose', 'config' => array( 'type' => 'select', 'items' => array( array('Yes','1'), array('No','0'), ), ), ) ); if the value is yes, i would like to display second field: $fields = array( 'second_field' => array(

Manage hierarchy / enforce priority of TS-templates

拈花ヽ惹草 提交于 2019-12-08 09:48:19
问题 Well, there is actually another guy with exact the same problem. But until today, they didn't come up with a solution, that's why I'm asking it once again. My entire TS is included by an extension in TYPO3 7.6.8 . This works fine except with indexed_search . The TS inside my resources EXT get overwritten by the indexed_search default TS. This is the order of the TS inside the Template-Analyzer: SYS: TYPO3_CONF_VARS:FE:defaultTypoScript EXT:fluid_styled_content/Configuration/TypoScript/... ...

Connect to database with eID

蓝咒 提交于 2019-12-08 09:30:56
问题 I have a little question: How do I connect an eid script in my extension with the MySQL database? What is the best practise to do so? 回答1: This should be a good point to start: <?php /** * @var $TSFE \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController */ $TSFE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController', $TYPO3_CONF_VARS, 0, 0); \TYPO3\CMS\Frontend\Utility\EidUtility::initLanguage(); // Get FE User Information

TYPO3 CommandController: How to set table field “sorting” of Extbase Object?

五迷三道 提交于 2019-12-08 09:03:32
问题 I can't set the database field "sorting" when adding an Extbase Object to it's Repository. Other database fields are filled correctly, but somehow $this->language->setSorting(8) isn't setting the database field sorting to 8. In my case the value is always 0. My Code looks in my TYPO3 CommandController looks like this: //Inject vars /** * @var \TYPO3\CMS\Extbase\Object\ObjectManager * @inject */ protected $objectManager; /** * @var \TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager *

TYPO3: Add custom set functions in extension controller

廉价感情. 提交于 2019-12-08 08:12:52
问题 I'm creating an extension for visitors to sign up to the page. When signing up, it should create a FE user in the backend which is disabled (and will be manually enabled by an admin). So I'll need to set the disable field to 1 when creating the FE user. This is the function inside my controller: /** * action create * * @param \Vendor\FeReg\Domain\Model\Dummy $newDummy * @return void */ public function createAction(\Vendor\FeReg\Domain\Model\Dummy $newDummy) { // vars $title = $newDummy-

Update Domain Model except for one property in TYPO3 6.2

巧了我就是萌 提交于 2019-12-08 08:12:19
问题 I maintain a TYPO3 extension that manages frontend users in the backend. Therefore I extend the FrontendUserRepository with my own model. My extension provides CRUD operations and I have a problem with updating the password of existing persons. The idea is to only update the password, if the password field in the edit form is filled, otherwise (if it's left empty) the old password value remains in the database. Now everything was working fine with TYPO3 4.5, but now after I upgraded to 6.2,

How to install Typo3 in Windows 10 with XAMPP?

自闭症网瘾萝莉.ら 提交于 2019-12-08 07:44:35
问题 I have installed XAMPP in Windows, It is working perfectly. but when I installed Typo3 version 8 and it Showed some errors PHP OpenSSL extension not working. PHP extension soap not loaded. Current directory is not within in the current path. Low PHP Script Execution Time. PHP max_input_vars very low. Windows apache thread stack size. But I can't able to fix the following: PHP OpenSSL extension not working. PHP extension soap not loaded. Current directory is not within in the current path.

How to add a new template to Typo3 “Layouts” drop-down list

▼魔方 西西 提交于 2019-12-08 07:37:26
问题 I have a Typo3 installation with 3 existing layout options. These are all declared in the page.ts file like so: #normal layout: [globalVar=TSFE:page|layout=0] page.10.template.file = fileadmin/template/classic-page.html page.includeCSS.screen = fileadmin/template/css/style.css page.includeCSS.screen.media = screen [global] And they are all in this list further down the page.ts file, like so: TCEFORM.pages { layout.altLabels.0 = Normal layout.altLabels.1 = Startpage layout.altLabels.2 =

Typo3 FCE refer a field inside a container field

。_饼干妹妹 提交于 2019-12-08 06:52:40
问题 Here is the screen shot of mapping of my FCE: I can refer 'Caption' field by 'field_caption' from the typoscript of 'Link' field. Here is the typoscript for that: 10 = TEXT 10.field = field_caption How to refer the 'Image' field which is inside a container field 'Image and alternate text' From the typoscript of 'Link' field? I tried to refer it directly by using 'field_image', but it is not working. here is the screen shot: Markup I am trying to map is: <a href="resources/img/site/demo1.jpg">

How to define redirect page for protected pages

元气小坏坏 提交于 2019-12-08 06:40:48
问题 In a TYPO3 6.1 site, I would like to make the creation of restricted (fe_groups) pages as easy as possible for editors. There's not one single protected area, but several protected pages all over the pagetree. What I would like to achieve would be that whenever a page has some login behaviour/restriction and no valid fe_user is logged in, there is a redirection to a central login page. I have found this post TYPO3 - Redirecting to login page when user is not logged in that refers to the same