typo3

TYPO3 - Redirecting to login page when user is not logged in

六月ゝ 毕业季﹏ 提交于 2019-11-29 04:13:49
I have some restricted pages built in Typo3. The problem is I cannot automatically redirect user from these pages to login page. How do I do that? I desperately need it and cannot find a solution despite of the fact I have spent most of the day working on it :( Any help will be much appreciated. That should work fine: # Restricted area starts at pid 123. # Check if user is logged in: [PIDinRootline = 123] && [usergroup = *] # do something [else] page.config > page.config.additionalHeaders = Location: http://www.yourdomain.org/login.html [end] Found here Just for reasons of documentation: make

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

三世轮回 提交于 2019-11-29 03:55:31
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 requires manual changes of the LocalConfiguration.php to overwrite the values before the return statement,

Remove attributes “height” and “width” of the image tag

自闭症网瘾萝莉.ら 提交于 2019-11-29 02:04:35
In order to create a responsive website with Typo3 and Twitter Bootstrap , I would like to remove the height and width attributs of images Here's how images are generated in Frontend via content element of type text & image and image <img src="typo3temp/pics/a625b79f89.jpg" width="300" height="226" alt="blabla" /> I would like to remove the dimension attributes and get this: <img src="typo3temp/pics/a625b79f89.jpg" alt="blaba" /> Can anyone help me ? It's not possible to remove the height or width image attributes with typoscript. But you could override it with CSS in order to create a

TYPO3: 404 for restricted access page instead of login form

会有一股神秘感。 提交于 2019-11-28 23:50:00
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. Mateng As this is still unanswered, does this help? # Check if user is logged in: [usergroup = *] # do something [else] page.config > page.config

TYPO3 Fluid complex if conditions

我的梦境 提交于 2019-11-28 23:33:29
I am trying to write the following if condition in fluid but it is not working as I would hope. Condition As part of a for loop I want to check if the item is the first one or 4th, 8th etc I would have thought the following would work but it display the code for every iteration. <f:if condition="{logoIterator.isFirst} || {logoIterator.cycle % 4} == 0"> I have managed to get it working with a nested if but it just feels wrong having the same section of code twice and also having the cycle check use a <f:else> instead of == 0 <f:if condition="{logoIterator.isFirst}"> <f:then> Do Something </f

Typo3 Extbase AJAX without page typenum

你离开我真会死。 提交于 2019-11-28 22:03:41
Is there any way to create AJAX calls in Extbase extension without using of page typeNum? lorenz Edit: Helmut Hummel, a member of the TYPO3 CMS team, measured that using EID with Extbase is slower than using the typeNum approach. But since the typeNum approach is cumbersome to configure, there is a third way developed by him. The extension typoscript_rendering provides a way to call Extbase actions directly without additional configuration. It contains a ViewHelper that generates such links and can be used like this in a Fluid template: {namespace h=Helhum\TyposcriptRendering\ViewHelpers}

What is the best way to debug Typoscript in TYPO3 CMS?

久未见 提交于 2019-11-28 18:20:57
What is the best way to debug typoscript in the TYPO3 CMS? Assuming I have a list, which is not displayed - what is the strategy to look for the issue? Debugging Typoscript is not the most comfortable task, but there are several possibilities. Here are the most common techniques: Use the TS Object Browser in the backend: Choose the Web > Template module, then pick the page from the pagetree you need to debug. If there are any obvious syntax errors or redundant/missing brackets, an error message will be displayed. Switch between constants and setup and use the search field extensively. In your

How to upgrade TYPO3 4.5 to 6.2

ⅰ亾dé卋堺 提交于 2019-11-28 18:02:51
What are the recommended steps to upgrade TYPO3 4.5 (or 6.1) to 6.2? I have a mac and my site is running on a shared Linux account. Here's a step by step guide from my upgrading practice which I would like to share. Thanks for the guide on https://jweiland.net/typo3/vortraege/typo3camp-berlin-2014.html that has helped me a lot. Note that these are my personal experiences which may or may not apply to your environment. Treat everything carefully. I differentiate between "Quick" and "Long" upgrades. With "Long" upgrades, you do the upgrading twice. First, you upgrade a copy of the live site, get

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

女生的网名这么多〃 提交于 2019-11-28 14:46:24
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? Finally, I solved this problem by using a custom ViewHelper, derived from GroupedBy ViewHelper, inspired from

Parse an existing JSON string in fluid template?

Deadly 提交于 2019-11-28 11:48:35
问题 I have a JSON string with some data I want to render in a template. As Fluid arrays are notated in JSON too, I thought I might just take that JSON string and hand it over to fluid, telling it to treat it just like some other array and use it in the template. Thus gaining a lot of speed and losing overhead (don't have to split the JSON data up to save it in the DB, can template it easily in fluid). It wouldn't work, at least not how I tried it. <f:alias map="{item.jsonData}"> {fieldname} </f