typo3

TYPO3: Backend Layout Condition in TypoScript

余生颓废 提交于 2019-12-31 04:13:25
问题 I'd like to change the way elements are rendered depending on the page's backend layout. Changing the fluid styled content template depending on the backend layout works as following: [globalVar = TSFE:page|backend_layout = 1][globalVar = TSFE:page|backend_layout = 2] lib.fluidContent.templateRootPaths.10 = EXT:ds_res/Resources/Private/Templates/ContentTemplates/ [global] If it's 1 or 2, then use the other templates. However , this only works if the BE layout is set directly at the page and

Mapping to “pages” table from Extbase in TYPO3 6.1

被刻印的时光 ゝ 提交于 2019-12-30 19:17:31
问题 I created an extension with a domain model Message . This model has a relation m:n with the TYPO3 pages (the one which has the details of the pages, like title, issite_root etc) table. However, by using the mapping to existing tables option, it gives me type error saying page : The configured type field for table "pages" is of type int(11) unsigned This means the type field can not be used for defining the record type. You have to configure the mappings yourself if you want to map to this

How do you translate EXT:Form forms in TYPO3 CMS 8.7 LTS?

我是研究僧i 提交于 2019-12-29 09:37:11
问题 I'm new to TYPO3 and starting out with 8.7 LTS. I have created several forms with the default "form" extension. My site requires some of these forms to be translated into up to 5 other languages. So far the only solution I've found is to copy the forms and then have a separate form for each translation, but this does not seem like the best solution, as long term it would lead to form divergence. Is it possible to add alternate translations directly in the YAML file or point to a translation

What is the best usage of TypoScript in Fluid templates?

泪湿孤枕 提交于 2019-12-29 07:55:13
问题 If I want to use TypoScript like menu generation in a Fluid template I have two possible ways: use the TypoScript to fill a variable for the template. doing it like this: page.10 = FLUIDTEMPLATE page.10 { templateName = index.html // ... define pathes ... variables { contentMain < styles.content.get mainMenu < temp.mainMenu : } } and in the template just use the variable: <div class="header"> <div class="logo">{logo->f:format.raw()}</div> <div class="main-menu">{mainMenu->f:format.raw()}</div

Foreign Key to TYPO3 Frontend User

旧巷老猫 提交于 2019-12-29 07:11:27
问题 How can I set a ForeignKey to the TYPO3 FrontendUsers in the Extension Builder? Do I have to set the param map to existing table? oder make a relation? What I want to do: I've got a Model (People) with its own fields and values. and now I want to have a new Releation between this Model and the TYPO3 FE Users PeopleNr = fe_user with uid 123 回答1: Note: As stated in other question creating relations between tables/models doesn't require adding foreign keys I'm not quite sure what do you need it

TYPO3 ver. 6.x - additional configuration a.k.a. `localconf_local.php`

为君一笑 提交于 2019-12-29 06:12:13
问题 What we need In TYPO3 ver. 4.x we used to include additional configuration file for overwriting some settings (ie. DB credentials) by adding the include statement at the end of the localconf.php : @include_once('localconf_local.php'); Thanks to this trick it is possible for an example keep separate database settings or IM paths individual for each developer as we can just ignore our 'local' files from the git repository. What's the problem Unfortunately in TYPO3 ver. 6.x that approach

Display list of elements grouped by year and by month in TYPO3 Fluid

老子叫甜甜 提交于 2019-12-29 02:11:07
问题 I have a model where one field is a date. I want to display elements from that model, grouped by year and by month, like this: == 2013 == === April === * Element 1 * Element 2 === March === * Element 3 ... == 2012 == ... What if the best way to achieve that? Should I build a nested array directly in the Controler? Or is there a way to display the year and month headers only using Fluid template? Or should I write a custom ViewHelper to extract and display the year and month headers? 回答1:

typoscript backend_layout_next_level not working

一曲冷凌霜 提交于 2019-12-25 12:52:06
问题 I have the following config page = PAGE page { typeNum = 0 10 = FLUIDTEMPLATE 10 { templateRootPath = EXT:folder/Resources/Private/Website/Templates/ partialRootPath = EXT:folder/Resources/Private/Website/Partials/ layoutRootPath = EXT:folder/Resources/Private/Website/Layout/ file.stdWrap.cObject = CASE file.stdWrap.cObject { key.data = levelfield:-1, backend_layout_next_level, slide key.override.field = backend_layout default = TEXT default.value = whatever.html 1 < .default 2 = TEXT 2.value

Change image margin in Typo3

淺唱寂寞╮ 提交于 2019-12-25 12:41:50
问题 When creating a 'Text & Images' element in Typo3 how can you adjust the left/right margin around the images? The default margin between text and images is too small, is there a line I can add to the template to set a custom margin or something else? Any help appreciated. 回答1: If you use css_styled_content then you can configure this with constants. styles.content.imgtext.textMargin = 10 Just over the backend or over TS: Valid constants: https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3

TYPO3 mark root page as active

[亡魂溺海] 提交于 2019-12-25 11:55:49
问题 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