typo3

TYPO3 individual query filter by another table

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 03:59:50
问题 I have TYPO3 version 7.6.18, and want get data with filtering by field on another relation table. class PhotoRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { public function getFiltered($offset = 0, $limit = 5){ $query = $this->createQuery(); $query->matching($query->in('cruserId.gender', 3)); return $query->execute(); } } Model: class Photo extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { /** * CruserId * * @var \Fhk\Feusersplus\Domain\Model\User> */ protected $cruserId

TYPO3 RTE: Saving mathematical/greek symbols doesn't work

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 03:38:14
问题 I need to display some mathematical/greek symbols in the RTE and later in the frontend. Inserting them via copy/paste or the "Insert characters" option works great, but as soon as I save the text, the inserted symbol get's replaced with a question mark and T3 throws following error: 1: These fields of record 56 in table "tt_content" have not been saved correctly: bodytext! The values might have changed due to type casting of the database. I think there is an issue with the character set of T3

TYPO3 - How to add a placeholder to an input field?

余生长醉 提交于 2019-12-12 03:26:52
问题 In TYPO3 (7.2.0) using the standard template engine, is there a way to add a placeholder attribute to the standard mail form text input? At the moment I am using JavaScript to convert the labels into placeholders, but I am open to suggestions on a better way to do this... 回答1: The suggested solution of @biesior does only work for EXT:form 7.4 and higher (see changelog). The supplied picture shows the form wizard of TYPO3 7.5 or 7.6. In 7.2 you won't find any placeholder attribute in the

useStdWrap conflicts with overrideFlexformSettingsIfEmpty in tx_news

拥有回忆 提交于 2019-12-12 02:25:16
问题 In tx_news all plugin settings can also be set via TypoScript by adding their names to overrideFlexformSettingsIfEmpty . As the name suggests, these TS based settings are only used, if the corresponding Flexform fields of any plugin incarnation are left empty. This is what I want and what I need. It allows for a basic TS configuration that can be overwritten within each plugin element. Now here's the problem: As my TS default values need more complex calculations, I also activate useStdWrap

Typo3 Extbase losing fe_user authentication

给你一囗甜甜゛ 提交于 2019-12-12 02:07:31
问题 I have this little snippet for logging in a user with my own Typo3 extension: $GLOBALS['TSFE']->fe_user->createUserSession(array()); $GLOBALS['TSFE']->fe_user->user = $GLOBALS['TSFE']->fe_user->getRawUserByUid($this->userRepository->findByUsername($winAcc)->toArray()[0]->getUid()); $GLOBALS['TSFE']->fe_user->fetchGroupData(); $GLOBALS['TSFE']->loginUser = 1; In the fluid template I can check if a user is logged in with this: <f:security.ifAuthenticated> This is being shown whenever a FE user

How to display news articles grouped by year with TYPO3 Versatile news system

佐手、 提交于 2019-12-12 01:56:25
问题 I tried to show a list of news articles with the LIST-Modul grouped by year. The year itself should be displayed as headline for each group of articles. Like 2014 -------- article 1 article 2 article 3 -------- 2013 -------- article 4 article 5 ... I tried to implement it with the f:groupedFor viewhelper in the standard list.html template of the extension. inside the pagedNews part. But TYPO3 throws the exception: http://wiki.typo3.org/Exception/CMS/1237900529 I also tried the viewhelper

Cannot choose text style in RTE

流过昼夜 提交于 2019-12-12 01:45:29
问题 In the Page TSConfig on the root page I have the following code: ///////////////////////////////////////////////////////////// // RTE ///////////////////////////////////////////////////////////// RTE.classes{ highlight{ name = highlight value = color:#636466; font-size:15px; } brown{ name = braun value = color:#9A3811; } } RTE.default{ ignoreMainStyleOverride = 1 useCSS = 1 contentCSS = fileadmin/templates/css/rte.css classesCharacter := addToList(highlight, brown) classesParagraph :=

TYPO3 Extbase: Set storagepid for Backend Module

时光总嘲笑我的痴心妄想 提交于 2019-12-12 01:42:53
问题 I have written a small extension that provide news for Backend User. Ist is just 2 Parts. One part showing the news for all BE User as a own Module, and the other part are create and edit functions provided by the TCA. To work with the TCA forms and the default extbase getter, i need the correct storagePid. I can't set them via TypoScript, because I'm never in a page context . My Idea was to use the Plugin settings with the file ext_conf_template.txt # cat=persistence/enable; type=int; label

Project files missing in container DDEV / Typo3 Windows 10

倖福魔咒の 提交于 2019-12-12 01:05:03
问题 I have Docker Toolbox V18.03 running on a Windows 10 machine, together with DDEV 1.0 and Typo3 . When I run ddev start , the containers are starting and I can access to the container with ddev ssh . But the project files from my host are not copied to the container. This solutions here I get an `ngnix 403 Forbidden' when starting ddev won't fix my issue ... 回答1: That basically means that docker-toolbox is not mounting your project at all, and of course nothing about ddev can work in that case

FluidTYPO3 vhs ViewHelper for SVG Images?

﹥>﹥吖頭↗ 提交于 2019-12-12 00:55:01
问题 I use TYPO3 CMS 6.2.14, vhs 2.3.3 , Flux 7.2.1 and FluidContent 4.3.1 - my TYPO3 Editor need the opportunity to upload SVG-Images via vhs -ViewHelper. I've made a new FluidTYPO3 Content Element (FCE), but there's no SVG Image visible in frontend. Mmhh? Flux-FlexForm <flux:field.file name="imgIcon" allowed="jpg,gif,png,jpeg,svg" uploadFolder="uploads/tx_myext" minItems="0" maxItems="1" size="1" /> ... <v:media.image src="uploads/tx_myext/{imgIcon}" alt="Icon" /> Output <div class="small-2