typo3

TYPO3 mark root page as active

非 Y 不嫁゛ 提交于 2019-12-25 11:54:19
问题 In my TYPO3 6.2.31 (I know...) page I have the following typoscript for the navigation: NAVIMAIN = HMENU NAVIMAIN.entryLevel = 0 #NAVIMAIN.excludeUidList = NAVIMAIN { 1 = TMENU 1 { expAll = 1 wrap = <ul class="sf-menu">|</ul> noBlur = 1 NO = 1 NO.ATagTitle.field = title NO.wrapItemAndSub = <li>|</li> ACT = 1 ACT.wrapItemAndSub = <li class="active"> |</li> } 2 = TMENU 2 { expAll = 1 maxItems = 10 wrap = <div class="sf-mega">|</div> NO = 1 NO { ATagTitle.field = title wrapItemAndSub = <div

How to extend femanager controller under php 7

删除回忆录丶 提交于 2019-12-25 08:58:57
问题 Since using PHP 7.0 and higher, the strict mode of php generates warnings like this: PHP Warning: Declaration of In2code\Femanagerextended\Controller\EditController::updateAction(In2code\Femanagerextended\Domain\Model\User $user) should be compatible with In2code\Femanager\Controller\EditController::updateAction(In2code\Femanager\Domain\Model\User $user) in ($PATH)\typo3conf\ext\femanagerextended\Classes\Controller\EditController.php line 17 when trying to extend an existing controller of the

Background image on body tag with TypoScript

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 08:49:44
问题 I would like to assign every Page in TYPO3 Backend a Image. This image should be rendered as background image for my body tag, like. <body style="background-image:url("/fileadmin/user_uploads/image.png")"> I have the version 6.2LTS of TYPO3. In a previous TYPO3 Version (4.5) i realized a smilar solution with this typoscript part page.bodyTagCObject = COA page.bodyTagCObject { 10 = TEXT 10.value = <body style="background-image:url( 20 = TEXT 20 { data = levelmedia: -1 "slide" wrap = uploads

RTE in own backend module based on Extbase and Fluid

泪湿孤枕 提交于 2019-12-25 08:18:45
问题 for a complex structure of a domain model (lots of fields and some relations) it´s planned to write an own backend module to be more flexible according to the structure and usability of that module. And there are some dependencies of some fields which I think I cannot make it just via TCA resp. FlexForms. So one thing I hope someone has done that before: If I build an own BE module with extbase and Fluid etc. and have forms with input fields or better textfields: How can I add an RTE to such

Issue with realurl, redirect and caching in TYPO3

梦想与她 提交于 2019-12-25 07:58:34
问题 This error occures in TYPO3 7.6.10 with a piBase extension and realurl 2.0.15: In this extension, I'm checking for a GET parameter, e.g. a country. If this parameter is not provided, I redirect to the same page, with default country as parameter: if(!$this->piVars['country']) { $this->piVars['country'] = 'germany'; \TYPO3\CMS\Core\Utility\HttpUtility::redirect($this->pi_linkTP_keepPIvars_url(array(), true), \TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_303); } That means, the visitor e.g.

In extbase, how to access item by another value than uid

浪子不回头ぞ 提交于 2019-12-25 07:47:52
问题 In a custom extbase extension, I need to call a show action, passing it another value than uid (this is a continuation of Use other than primary key as RealURL id_field). As the value "other than uid" is not resolved, it results in the exception http://wiki.typo3.org/Exception/CMS/1297759968 EDIT: here's the current working (but ugly) Controller code: /** * ItemController */ class ItemController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController { /** * itemRepository * * @var \STUBR

How can I extract metadata properties from images with FAL and fluid?

喜欢而已 提交于 2019-12-25 07:12:48
问题 Situation sysext:filemetadata is activated; images (fal references) are deposited within page resources (pages.media). 2 options are currently known to me in conjunction to TYPO3 pages: Using a custom FAL viewhelper Using TypoScript (which is often illegible and not easy to maintain) Question What's actually (TYPO3 7.x and 8.x) a common/core-only solution to render such images within fluid with additional properties (metadata) like creator, copyright and so on? 回答1: I would go for next

Refresh Typo3 by web server cron job

别等时光非礼了梦想. 提交于 2019-12-25 07:08:04
问题 Is it possible to force Typo3 to refresh websites by an external trigger (e.g. web server cron job or manual trigger)? Could you please describe some best practices? 回答1: Please have a look at Scheduler. The Scheduler is designed to be the central place to manage all kind of tasks that need to be executed on a regular basis, without needing someone to actually press a button. If no existing task fits your needs, you can create an own task. 回答2: If refreshing means recreating the frontend

Change storage pid when programmatically persisting a model

房东的猫 提交于 2019-12-25 04:56:23
问题 I'm quite new to Extbase and I'm trying to programmatically persist a new Model. The following code works: $testModel = $this->objectManager->create('Tx_MyExtension_Domain_Model_Test'); $testModel->setName('testing'); $this->TestRepository->add($testModel); $this->persistenceManager->persistAll(); However, I would like to change the storage folder it is put in (thus; change the pid field the record gets in the database). How should I do this? 回答1: You can set the default storage pid for new

Extension Manager is in offline mode. No TER connection available in TYPO3

天大地大妈咪最大 提交于 2019-12-25 04:56:07
问题 I have installed TYPO3 Version 7.6.15 by using composer and also I am using the Xampp version 7.0.0. I have installed many extensions and activated them successfully at the backend of my TYPO3 page. Now, I have installed the Ecodev/typo3-cms-speciality-distribution via composer. and i am trying to activate it from extension manager but it is giving me following error. Error Now, I have no idea, what to do? at this link https://github.com/Ecodev/typo3-cms-speciality-distribution it is written