typoscript

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

Setting a multilanguage site in TYPO3

心不动则不痛 提交于 2019-12-02 02:28:59
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 [globalVar = GP:L = 2] config.language = en config.locale_all = en_EN config.htmlTag_langKey = en-EN

TYPO3: repository->findAll() not working

雨燕双飞 提交于 2019-12-02 02:07:38
问题 I am building an extension with a backend module. When I call the findAll () method it returns a "QueryResult" object. I tried to retrieve objects with findByUid () and it does work. I set the storage pid in the typoscript: plugin.tx_hwforms.persistence.storagePid = 112 I can also see it in the typoscript object browser. I also added this to my repository class: public function initializeObject() { $defaultQuerySettings = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic

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

浪子不回头ぞ 提交于 2019-12-01 23:33: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 translation for each page, which is not helpful, if there are already hundreds of pages. Is there no fallback

Typoscript navigation with subpages

笑着哭i 提交于 2019-12-01 21:14:09
I am trying to implement my navigation with typoscript and I am having problems to understand how to wrap right. I already have a base navigation with 1 level that is working fine. Now I have pages that has subpages and other that don't have. For the ones without subpages I want the behavior that I have now. For the pages with subpages I want to add this as an dropdown menu. The HTML code should look like this. <ul class="nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> Test0 <b class="caret"></b> </a> <ul class="dropdown-menu"> <li class=""><a href="#"

How to use option split to control typo3 menu properties?

孤者浪人 提交于 2019-12-01 13:08:38
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 I am not getting the right results. Below is my current code which gives me blank white spaces. I am

TYPO3 show content from subpages inlcuding css classes

自作多情 提交于 2019-12-01 12:19:18
With the following typoscript I get all content from the subpages on one page: lib.allPid = COA lib.allPid { 10 = HMENU 10 { special = directory special.value = 2 1 = TMENU 1 { expAll = 1 NO.doNotShowLink = 1 NO.allStdWrap.field = uid NO.allStdWrap.wrap = |, } 2 < .1 } } lib.allContent = CONTENT lib.allContent { table = tt_content select { pidInList.cObject < lib.allPid leftjoin = pages ON (tt_content.pid = pages.uid) where = tt_content.colPos = 0 orderBy = pages.sorting ASC } } But its not copying the tt_content wrap defined by the layout selectbox in the content element: tt_content.stdWrap

Typoscript - Link a file only if it exists using URL

感情迁移 提交于 2019-12-01 11:50:38
问题 I am using Templavoilà Plus and I have one field which the user complete with a title called field_title . I use this field to create an URL/HTML for other fields of my FCE, using Typoscript Object Path. Constants: file = fileadmin/datasheets/|.pdf Setup: lib.field_datasheet = TEXT lib.field_datasheet { field = field_title wrap = <a href="{$file}"></a> } The problem is that I want to do that only if the file/URL exists. First, I thought of checking if the URL I create didn't link to a 404

Typoscript - Link a file only if it exists using URL

百般思念 提交于 2019-12-01 11:50:30
I am using Templavoilà Plus and I have one field which the user complete with a title called field_title . I use this field to create an URL/HTML for other fields of my FCE, using Typoscript Object Path. Constants: file = fileadmin/datasheets/|.pdf Setup: lib.field_datasheet = TEXT lib.field_datasheet { field = field_title wrap = <a href="{$file}"></a> } The problem is that I want to do that only if the file/URL exists. First, I thought of checking if the URL I create didn't link to a 404 page. Then I thought it would be easier to check if the file size wasn't 0. After working on that for two

TYPO3 StoragePid and Current

白昼怎懂夜的黑 提交于 2019-12-01 11:40:24
问题 i build a simple commentary extbase extension, which i want to include with typoscript in a project extension (also extbase). The fluid code in the project extension looks like this: <f:for each="{project.reports}" as="report"> ...Content... {report -> f:cObject(typoscriptObjectPath: 'lib.comments')} </f:for> "Reports" is an array of id's. The lib.comments typoscript looks like this: lib.comments = USER lib.comments { userFunc = tx_extbase_core_bootstrap->run extensionName = Comments