typo3

Typo3 Adding a class to the body tag on a specifc page

百般思念 提交于 2019-12-08 06:17:07
问题 I'm trying to figure out how conditionally add a class to the body tag of a specific page. I'm trying to do it via typoscipt but haven't been able to figure it out. Maybe there's a better way to do it though. The site is using Typo3 version 4.4.6 I've tried this which didn't work page.4.bodyTag > page.4.bodyTagCObject = TEXT page.4.bodyTagCObject { field = uid wrap = <body class="uid-|"> } Any help or pointers would be greatly appreciated! 回答1: Figured it out! [globalVar = TSFE:id = 4] page

TYPO3: Filter frontend users by usergroup in backend?

荒凉一梦 提交于 2019-12-08 05:43:42
问题 Is there a feature or backend extension or that can filter list records? Right now, you can only check a single user record or sort by usergroup. I am looking for a module where I can choose the usergroup and get a list of all assigned users (FE users) in the backend. Or a standard feature I haven't discovered yet. Maybe similar to filtering news articles in tt_news by category. If it doesn't exist, I will have to code it myself. 回答1: Not in the List module but you can do this by setting an

tt_news and RealURL: shorten URL of news article

自古美人都是妖i 提交于 2019-12-08 05:36:17
Currently the URL for a news article looks like www.domain.com/path/to/page/news/news-detail/article/articlename Is there a way to shorten this URL? E.g. missing out article or news-detail? In the RealUrl-Configuration there is the array article but I don't know if I can change this for example to news-detail ... Do you have some ideas? I'm using Typo3 4.5.5, realurl 1.11.2 and tt_news 3.0.1. If you want to exclude the keywords indicating a new part of the rewritten url, use fixedPostVars : 'fixedPostVars' => array( '123' =>array( array( 'GETvar' => 'tx_ttnews[tt_news]', 'lookUpTable' => array

Keep whitespaces in RTE for pre and code tags

谁都会走 提交于 2019-12-08 04:55:21
问题 I want to display code through <pre> and/or <code> tags, which works fine. White spaces are saved on first save and displayed properly in the front-end. However, when reloading the content in the backend, the editor shows the code without the additional whitespaces. Saving again drops the whole code formatting. I assume there is some setting for this but I couldn't find anything until now. Any hints on this? For the code highlighting, I am using the GeshiLib and vjrtecodesnippets extensions.

typo3: what is the fast way to find which page has certain extension

痴心易碎 提交于 2019-12-08 04:13:38
问题 I want to find which page has installed this extension: jc_register , I can check every page, but it takes too much time since there are many pages, so I wonder if there is any fast way to find it instead of checking every page? 回答1: If you mean you want to find a content record of type "Insert Plugin" set to a particular extension, you can use "Admin tools". Open "Admin Tools -> DB check". Select "Full search" from the drop-down list. Select "Advanced query". Tick "Use formatted strings,

Typo3 extbase json output

做~自己de王妃 提交于 2019-12-08 04:12:22
问题 I try to create controller that handles ajax requests. I found out, that I have to add this to my TS config: ajaxCall = PAGE ajaxCall { typeNum = 999 config.disableAllHeaderCode = 1 config.metaCharset = UTF-8 xhtml_cleaning = 0 admPanel = 0 10 = COA 10 < tt_content.list.20.registration_userregistration } And my controller looks like this: /** * JSONController */ class JSONController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController { /** * @var string */ protected

TYPO3 - get thumbnail for menue from CONTENT of subpage

别等时光非礼了梦想. 提交于 2019-12-08 04:00:06
问题 I need a typoscript for adding a thumbnail for each menu entry by getting a pic NOT from page properties, but from first content element of a specified column. Current typoscript for the menu is that; it basically generates a list of subpages which a named as "news". temp.newsPage = COA temp.newsPage.40 = HMENU temp.newsPage.40 { special = directory special.value = {$plugin.tx_rstwstdtpl.settings.menuNewsPagesStart} includeNotInMenu = 1 wrap = <div class="news-latest-container">|</div> 1 =

tt_news and RealURL: shorten URL of news article

混江龙づ霸主 提交于 2019-12-08 03:47:29
问题 Currently the URL for a news article looks like www.domain.com/path/to/page/news/news-detail/article/articlename Is there a way to shorten this URL? E.g. missing out article or news-detail? In the RealUrl-Configuration there is the array article but I don't know if I can change this for example to news-detail ... Do you have some ideas? I'm using Typo3 4.5.5, realurl 1.11.2 and tt_news 3.0.1. 回答1: If you want to exclude the keywords indicating a new part of the rewritten url, use

Extending sys_file_reference (FAL)

ε祈祈猫儿з 提交于 2019-12-08 03:22:05
问题 I want to extend sys_file_reference with a own field. So i created the field and the TCA. In the backend the field is usable, but i cant refer to the field in my fluid template. ext_tables.php: CREATE TABLE sys_file_reference ( nofollow int(11) DEFAULT '0' NOT NULL, ); Configuration/TCA/Overrides/sys_file_reference.php: $tempColumns = array( 'nofollow' => array( 'exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'Link als Nofollow?', 'config' => array( 'type' => 'check', 'default' =

TYPO3 4.6 include extbase plugin with typoscript

我的梦境 提交于 2019-12-08 03:13:36
问题 I have TYPO3 4.6, in tempvoila template i have typoscript object path lib.header and I want to redirect output of plugin to lib.header I have extension Gallery and plugin written and configured in ext_localconf.php like this: Tx_Extbase_Utility_Extension::configurePlugin( $_EXTKEY, 'RandomPhotoSlideShow', array( 'Photo' => 'randomPhotoSlideShow', ), // non-cacheable actions array( 'Photo' => '' ) ); in ext_tables.php like this: Tx_Extbase_Utility_Extension::registerPlugin( $_EXTKEY,