typoscript

How can I insert the current page title automatically into a TYPO3 template?

依然范特西╮ 提交于 2019-12-02 23:13:28
actually the title is the whole question. I just want to modify the template so that the current page title is automatically shown (i'm working with html templates so I just need the bit of typoscript to get the page title out of the database) I hope that's possible It is. It's pretty simple to do. I'll assume you're using TemplaVoilà, because if you're not, you should be :-D Start off by putting some HTML in your template with a dummy page title. Give it an ID attribute so it's easy to map. Like: <h1 id="page-title">Page Title Here</h1> Next, go into TemplaVoilà and map that <h1> element to

Typolink content in menu?

蹲街弑〆低调 提交于 2019-12-02 19:56:10
问题 I am trying to make a menu that displays the page's first content element header and image and have them be links. But the typolink part doesn't seem to work for me: lib.menu = HMENU lib.menu { 1 = TMENU 1.NO { doNotLinkIt = 1 wrapItemAndSub = <div>|</div> stdWrap.cObject = CONTENT stdWrap.cObject { table = tt_content select { pidInList.field = uid } renderObj = COA renderObj { 10 = TEXT 10.field = header 10.typolink.parameter.field = uid } } } } 回答1: Just to add give the full working example

How to include a custom CSS file in TYPO3

北城以北 提交于 2019-12-02 18:22:34
问题 I need to build an Extension in typo3 7.6.I include a css file in setup.txt using page.IncludeCSS = Ext.Path_to_css_file.css But the styles in my css file is override by some other custom styles.How can I prevent this.Any Idea? I am new to typo3.Please help me.Thank you in advance. 回答1: You have to give each css file you want to include a unique key (e.g. myCssFile1 ). Also use a colon after the EXT: . So the correct way of including a CSS file with TypoScript would be page.includeCSS

How to get rendered links of a HTML element in TYPO3 7.6

旧巷老猫 提交于 2019-12-02 11:17:12
问题 IN TYPO3 versions before 7.6 it was possible to render links inside the content element HTML by using the TypoScript tt_content.html.parseFunc.tags.link < lib.parseFunc.tags.link This does not work anymore since 7.6. How can it be solved? 回答1: There are a couple of possible solutions for this question. 1.) Use fluid_styled_content. I guess that now fluid_styled_content instead of css_styled_content is used. Therefore the used TypoScript does not work anymore. A valid solution would be to

Typolink content in menu?

眉间皱痕 提交于 2019-12-02 10:46:37
I am trying to make a menu that displays the page's first content element header and image and have them be links. But the typolink part doesn't seem to work for me: lib.menu = HMENU lib.menu { 1 = TMENU 1.NO { doNotLinkIt = 1 wrapItemAndSub = <div>|</div> stdWrap.cObject = CONTENT stdWrap.cObject { table = tt_content select { pidInList.field = uid } renderObj = COA renderObj { 10 = TEXT 10.field = header 10.typolink.parameter.field = uid } } } } Just to add give the full working example. Using section.field = uid you can link to the content element itself. lib.menu = HMENU lib.menu { 1 =

Typo3 8 How to properly customize felogin extension

僤鯓⒐⒋嵵緔 提交于 2019-12-02 10:38:59
I would like to customize felogin (frontend lofin) extension template. I would like to copy the template file inside of my template extension folder, but I don´t know how to change the path with TypoScript, so Typo3 can look first into the template file which is located inside of my extension template folder. Thanks in advance! Denis The configuration is done like with every other extension: plugin.tx_felogin_pi1 { templateFile = EXT:your_extension/Resources/Private/Templates/Felogin.html } Notice that felogin does not use Fluid, you might want to look at alternatives like Hairu if you need

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 {

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