typoscript

How to benchmark single TypoSript Object generation?

谁说我不能喝 提交于 2019-12-22 10:59:01
问题 I would like to benchmark single TypoScript object generation to control the performance, is it possible, probably, with some stdWrap methods ? Example of TS objects, which I would like to benchmark : Test 1 page.10 = RECORDS page.10 { tables = pages source = 1 dontCheckPid = 1 conf.pages = TEXT conf.pages.field = title } Test 2 page.20 = CONTENT page.20 { table = tt_content select { pidInList = 0 recursive = 99 where = uid = 1 } } I need each object generation time and quantity of fired

TYPO3 8.7 can not override Fluid Styled Content templates

只愿长相守 提交于 2019-12-21 04:42:17
问题 I've tried to override the Fluid Styled Content elements but it doesn't work at all in latest TYPO3 version 8.7.0. I've got a template extension (key: biv_main) in which I add my overriding template pathes: lib { fluidContent { templateRootPaths { 30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Templates/ } partialRootPaths { 30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Partials/ } layoutRootPaths { 30 = EXT:biv_main/Resources/Private/Content/fluid_styled

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

自闭症网瘾萝莉.ら 提交于 2019-12-20 10:46:47
问题 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 回答1: 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

Typo3 8 How to properly customize felogin extension

孤人 提交于 2019-12-20 06:57:15
问题 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 回答1: The configuration is done like with every other extension: plugin.tx_felogin_pi1 { templateFile = EXT:your_extension/Resources/Private/Templates/Felogin

How to use option split to control typo3 menu properties?

不羁的心 提交于 2019-12-19 11:03:21
问题 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

TYPO3: 404 for restricted access page instead of login form

前提是你 提交于 2019-12-18 02:48:43
问题 I have a link pointing to restricted page. When I access the link directly in logout status, its redirect to 404. Actually it should redirect to login form. I tried: config { typolinkLinkAccessRestrictedPages=PAGE_ID typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID### } Not working. Also I tried the login status redirect plugin, no use. Anyone know how to do this? I am using TYPO3 version 4.4.8. 回答1: As this is still unanswered, does this help? #

TYPO3 Ajax Page Configuration

给你一囗甜甜゛ 提交于 2019-12-14 01:40:57
问题 How can I remove the CSS Styled conted header output from a Ajax Page in TYPO3? This is my Typoscript: ajax = PAGE ajax { typeNum = 1234 # this solution is working, but then I don't have flexform values # 10 < tt_content.list.20.myextension_pi1 10 < styles.content.get 10 { select.where = colpos = 0 select.andWhere = list_type='myextension_pi1' } config { disableAllHeaderCode = 1 additionalHeaders = Content-type:application/json xhtml_cleaning = 0 admPanel = 0 debug = 0 no_cache = 1 } } This

TYPO3: Add special menu CE and add class=“active”

独自空忆成欢 提交于 2019-12-13 23:25:48
问题 In TYPO3 one can insert a special menu as a content element, you can select about eight different ways to collect the menu. In the menu I selected there is no class assigned if the menu item is active, and I need to highlight it with CSS. And I'd like to know how to add a custom menu. Note: Once I did apply the solution supplied in my own answer I realized that the main difficulty was (and generally is in TYPO3) the caching, be aware to refresh frequently otherwise you'll never be sure what

TYPO3 userFunc give GET Parameter to php file

半腔热情 提交于 2019-12-13 09:13:38
问题 I am including a php file via userFunc and want to give the get parameter "?session_start=1" and use this in the function. TS: includeLibs.voucher = fileadmin/php/shop_init.php lib.phpscript = USER lib.phpscript.userFunc = voucher->init lib.phpscript.session_start_var = GP:session_start php file <?php class voucher { public function init($content ="", $conf){ $session_start = $conf['session_start_var']?t3lib_div::_GP($conf['session_start_var']):false; $lang_id = ($GLOBALS['TSFE']->sys

With TYPO3 be_layout, how to choose frontend template correctly (performance-wise)?

早过忘川 提交于 2019-12-13 07:16:58
问题 In most of my sites, I've been using the following code to decide which template should be applied to the content rendering - based on what the editor has picked in be_layout : page.10 = TEMPLATE page.10 { stdWrap.if { value = 1 isInList.data = levelfield:-1,backend_layout_next_level,slide isInList.override.data = TSFE:page|backend_layout } template = FILE template.file = fileadmin/templates/main/tmpl/main.html ... } page.20 = TEMPLATE page.20 { stdWrap.if { value = 2 isInList.data =