typo3

How can I insert the current page title automatically into a TYPO3 template?

自闭症网瘾萝莉.ら 提交于 2019-12-20 10:46:47
问题 actually the title is the whole question. I just want to modify the template so that the current page title is automatically shown (i'm working with html templates so I just need the bit of typoscript to get the page title out of the database) I hope that's possible 回答1: It is. It's pretty simple to do. I'll assume you're using TemplaVoilà, because if you're not, you should be :-D Start off by putting some HTML in your template with a dummy page title. Give it an ID attribute so it's easy to

Use other than primary key as RealURL id_field

倖福魔咒の 提交于 2019-12-20 07:29:47
问题 In a TYPO3 6.2 site, I have the following postVarSets in realurl_conf.php for an extbase extension: 'postVarSets' => array( '_DEFAULT' => array( 'wba' => array( array( 'GETvar' => 'tx_weiterbildung_pi1[item]' , 'lookUpTable' => array( 'table' => 'tx_weiterbildung_domain_model_item', 'id_field' => 'uid', 'alias_field' => 'kurs_titel', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ), ), ), ), ), ), This

Powermail 2.0 in TYPO3

六眼飞鱼酱① 提交于 2019-12-20 07:28:11
问题 Im trying powermail 2.0 in a TYPO3 4.7, for the first time, and I'm getting this error message in frontend: The default controller can not be determined. Please check for Tx_Extbase_Utility_Extension::configurePlugin() in your ext_localconf.php. What am I missing? I already inserted one static template. 回答1: i had the same problem! i reviewed the form i created and found that somehow the checkbox for custom variable name in an input field was checked and the value was empty {}. so somehow

Typo3 8 How to properly customize felogin extension

孤人 提交于 2019-12-20 06:57:15
问题 I would like to customize felogin (frontend lofin) extension template. I would like to copy the template file inside of my template extension folder, but I don´t know how to change the path with TypoScript, so Typo3 can look first into the template file which is located inside of my extension template folder. Thanks in advance! Denis 回答1: The configuration is done like with every other extension: plugin.tx_felogin_pi1 { templateFile = EXT:your_extension/Resources/Private/Templates/Felogin

Is there a Fluid viewhelper to truncate an URL? If not, how do I make one?

房东的猫 提交于 2019-12-20 06:09:33
问题 In TYPO3's Fluid or in Fedext/vhs, is there a viewhelper that can convert http://www.stackoverflow.com/questions/ask into www.stackoverflow.com ? PS: that's the goal: <f:format.raw><f:link.external uri="{item.link}">{item.just-display-the-domain}</f:link.external></f:format.raw> EDIT (adapting the question to the answer I got): If I have to build a custom view helper, how do I proceed? 回答1: I really doubt if there would be any sensible reason for adding this kind of VH into the core, de facto

Attempt to insert record on page where this table is not allowed

三世轮回 提交于 2019-12-20 05:20:09
问题 I get the message above (Attempt to insert record on page where this table is not allowed) when trying to create a new record from an extension. The "page" i try to create the record in is a sysfolder and not a page t3lib_extMgm::allowTableOnStandardPages('user_myext_categories'); is set there are already records of categories on this page there is no 'type' => definition in TCA, but the table itself is registered in TCA like the other tables from this extension (and they work) Any hints on

use removeAll() in scheduler task

孤人 提交于 2019-12-20 04:35:24
问题 Before doing new stuff, i want my scheduler-Task to remove all entries from the database, the execute-function looks like that: public function execute() { $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Extbase\Object\ObjectManager'); $jobRepository = $objectManager->get('\TYPO3\MyExtension\Domain\Repository\JobRepository'); //clear DB $jobRepository->removeAll(); (...)//insert new entries to DB $objectManager->get('TYPO3\CMS\Extbase\Persistence

How to use option split to control typo3 menu properties?

不羁的心 提交于 2019-12-19 11:03:21
问题 I am trying to resolve a design issue implementation in typo3. Essentially I have to implement a tabbed menu (only the active state is tabbed) that's generated from the directory, but each active (tabbed) menu has to have a different bg colour (matching the tab body box). I opted to use a TMENU initially but was introduced to the optionsplit functionality earlier as a way to achieve this but I can't think of a way achieve this using a TMENU so I am currently experimenting with GMENU, however

Get tt_content uid

痴心易碎 提交于 2019-12-19 08:13:46
问题 I am developing an extension that allows admins to save stuff to the database. And I want that each instance of the extension should have it's own Id in the database. Is there some way to get the tt_content uid (which I guess is the extension instance Id) in the extension php. 回答1: You fetch all tt_content's data in array: $this->cObj->data ie: $uidOfCE = $this->cObj->data['uid']; If you're using Extbase of course you need to get the content object first, ie: $this->contentObj = $this-

Typo3 V6: How to create a content element container? (without TV)

寵の児 提交于 2019-12-18 11:31:51
问题 For a project I'm using Typo3 v6.0. I'm looking to create nested content elements, or a content element container. I want to be able to create an inline two-column layout without using a specific template for it. I'm looking to do this without the use of templavoila. Extensions I have tried are gridelements , kb_nescefe , bs_fce , multicolumn but these do not work because they are not compatible with Typo3 V6. I'm aiming for an end result like the attached image. Where the inline two-column