typo3

TYPO3 Extbase how to empty ObjectStorage

此生再无相见时 提交于 2019-12-02 07:36:55
I want to "empty" an ObjectStorage when updating a Object: It's TYPO3 4.6 with a Extbase Extension which allows you to show/add/edit/delete datasets in the frontend. At first sight everything looks good. I have one field referencing another table: TCA: 'partner' => array( 'exclude' => 0, 'label' => 'LLL:EXT:toco3_marketingdb/Resources/Private/Language/locallang_db.xlf:tx_toco3marketingdb_domain_model_firma.partner', 'config' => array( 'type' => 'select', 'size' => 5, 'foreign_table' => 'tx_toco3marketingdb_domain_model_partner', 'foreign_table_where' => 'ORDER BY tx_toco3marketingdb_domain

TYPO3: Can I pull from another database on the same server?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 07:31:47
I have an alternate database (the one I'd really like to use instead of the tables I moved to TYPO3). That is full of the information I want on my view. Is it possible to pull from a specified database? And, can anyone provide a newer (6.1 is what i'm on) [English] tutorial on rendering database information to a page? page.20.subparts { typocontent = CONTENT typocontent { select { pidInList = 20 ### FROM myDatabase.myTable ### where = colpos=1 orderBy = sorting } Also, constructive criticism is welcome as I'm still pretty sure I'm not using the monster correctly at all. I still don't get all

Typo3 Fluid Templates How to add multiple templates

心已入冬 提交于 2019-12-02 07:28:12
I have a finished static HTML Template. I need to map it to typo3 so the content is dynamic. I followed following tutorial: https://docs.typo3.org/typo3cms/SitePackageTutorial/FluidTemplates/Index.html This works perfectly, but now I wonder how I can change the template per site? I made template for each site i.e Gallerie.html, Contact.html and they are linked to the same Layout as Header and Footer is always the same. How do I now tell the page About us to use the Gallerie.html? My setup.typoscript: page = PAGE page { typeNum = 0 // Part 1: Fluid template section 10 = FLUIDTEMPLATE 10 {

use removeAll() in scheduler task

喜欢而已 提交于 2019-12-02 07:19:50
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\PersistenceManagerInterface')->persistAll(); return true; } inserting new entries to the DB works fine, but clearing

TYPO3 TCA type select in FLUID?

こ雲淡風輕ζ 提交于 2019-12-02 06:57:58
问题 I use for the T3 Backend a TCA type select in a renderType = selectMultipleSideBySide Here the TCA Code: 'features' => array( 'label' => 'Zusatz', 'config' => array( 'type' => 'select', 'renderType' => 'selectMultipleSideBySide', 'size' => 10, 'minitems' => 0, 'maxitems' => 999, 'items' => array( array( 'Parkplätze', 'parking' ), array( 'Freies Wlan', 'wlan' ), ) ) ), it works fine in the Backend! But, how can I read the data properly now? I dont now the right way for the Domain/Model. /** *

Typoscript Condition: backend_layout (with slide)

走远了吗. 提交于 2019-12-02 06:54:38
问题 I use this condition [globalVar = GP:colPos==0]&&[page|backend_layout = pagets__MainTemplate] My problem is that my „subpage“ has no backend_layout selected because the parent pages "Backend Layout (subpages of this page)“ is set. So the condition does not work on subpages. Can create a condition like that? lib.backendLayout = TEXT lib.backendLayout { data = levelfield:-1, backend_layout_next_level, slide override.data = TSFE:page|backend_layout } I want do white/blacklist CTypes in BE

Typo3 Fluid Templates How to add multiple templates

大城市里の小女人 提交于 2019-12-02 06:32:37
问题 I have a finished static HTML Template. I need to map it to typo3 so the content is dynamic. I followed following tutorial: https://docs.typo3.org/typo3cms/SitePackageTutorial/FluidTemplates/Index.html This works perfectly, but now I wonder how I can change the template per site? I made template for each site i.e Gallerie.html, Contact.html and they are linked to the same Layout as Header and Footer is always the same. How do I now tell the page About us to use the Gallerie.html? My setup

TYPO3 9.5.2 Slug: Multilanguage: Page not found 404 exception, if no translation of page exists

▼魔方 西西 提交于 2019-12-02 05:24:59
问题 I have a website with two languages e.g de and en. De is my default language with no path prefix. En, the second language, has /en/ as prefix in the url. Now when I switch to the en language, the menu item links have /en/ in the url, which is fine. But when I click on a menu item, which is not explicit translated in the backend, then I get a 404 error. I cannot say this behavier is wrong, because there isn't a page with this slug path before I create one. But what should I do? Create a

Setting a multilanguage site in TYPO3

↘锁芯ラ 提交于 2019-12-02 04:55:50
问题 I'm trying to set up a multilanguage site with typo3, but Im having some trouble. The default language of the site is German, but I also want to have it in English and French. So I went to define 2 more languages: English with ID=2 and French with ID=3 Next I added this typoscript to my template: config.linkVars = L config.uniqueLinkVars = 2 config.sys_language_overlay = content_fallback config.language = de config.locale_all = de_DE config.htmlTag_langKey = de-DE config.sys_language_uid = 0

How to rename subheader in TYPO3 CMS backend

喜夏-厌秋 提交于 2019-12-02 04:27:13
问题 How can I rename a TYPO3 CMS backend field for authors? i.e. the mentioned field for content-elements of csc_styled_content? 回答1: In general, overriding label names can by done with Page TSconfig in the backend. The following example modifies the label of the subheader field. TCEFORM { tt_content { subheader.label = My new Label-Name } } There are two way to configure that adjustment in TYPO3. Type your configuration changes directly to the page settings » resources » TypoScript Configuration