typo3

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? #

RealURL: Remove Controller and Action from URL

你离开我真会死。 提交于 2019-12-17 16:48:12
问题 I have an extension with a list and show action. Currently this extension can appear on multiple pages: /page-1/ /page-2/subpage/ I have configured realurl like that: $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array ( 'encodeSpURL_postProc' => array('user_encodeSpURL_postProc'), 'decodeSpURL_preProc' => array('user_decodeSpURL_preProc'), '_DEFAULT' => array ( … 'postVarSets' => array( '_DEFAULT' => array( 'controller' => array( array( 'GETvar' => 'tx_extension_plugin[controller]',

Extbase - get created sql from query

我的未来我决定 提交于 2019-12-17 09:56:23
问题 i want to get some database tables from my typo3 extensions. The Extension is based on extbase. The query always returns nothing but the data exists I've tried this: $query = $this->createQuery(); $query->statement('SELECT * FROM `my_table` WHERE field = ? ORDER BY date DESC LIMIT 1', array($condition)); $results = $query->execute(); and this: $query = $this->createQuery(); $query->matching($query->equals('field', $condition)); $query->setOrderings(array('date' => Tx_Extbase_Persistence

“Plugin handled load” dialog appears when playing a video within a web page within UIWebView

拜拜、爱过 提交于 2019-12-14 03:42:04
问题 If I click on a link to a video within a web page being displayed by UIWebView then the video plays but a dialog pops up saying "Plugin handled load". Does anybody know why this happens and how to stop it from happening? This is not a duplicate of: Playing videos in UIWebView broken in iOS4? as I am not creating a UIWebView with a zero size frame, which is described as the cause. (Am using iOS 5) 回答1: The problem would seem to be in the fact the UIWebView does not include the same user agent

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

Exception on executing ext:news upgrade wizard for updating path_segment in TYPO3 9

爷,独闯天下 提交于 2019-12-13 20:17:20
问题 After upgrading to TYPO3 9, some of the tx_news_domain_model_news path_segment fields were empty, so I marked Upgrade Wizard "Updates slug field "path_segment" of EXT:news records" of news extension" as undone and tried to execute it. This throws an exception . Makes no difference if executed via backend or on command line, though the command line shows a success message before the error:: typo3-cli upgrade:run newsSlug Output: In UpgradeWizardsService.php line 466: No valid wizard identifier

ExtJS find events handlers registered with an object

风流意气都作罢 提交于 2019-12-13 19:44:06
问题 I would like to find which event handlers are registered over an object (in my concrete case it's the pagetree in the TYPO3 CMS backend). Is there a method to get all event handlers ? 回答1: You can simply walk through its events property. Most of the members will be just true , but those actually representing attached events will be objects. Type something like: var es = Ext.getCmp('my-tree-id').events; for (var k in es) { if (Ext.isObject(es[k])) { console.log(es[k]); } } If your object is a

Make extension compatible for TYPO3 v8

痞子三分冷 提交于 2019-12-13 17:31:26
问题 I have a problem in TYPO3 v8.5.0 dev with own extensions. After creating a proper composer.json my classes are not found. Installation was done by copy into the typo3conf/ext folder as usual and activating in extension manager. Unfortunally the ext is not in TER, so this is the only way. After activating, i'm stuck with error: Oops, an error occurred! Class 'XXX\ExtKey...' not found What do I miss so my classes are found again? 回答1: If your extension is not installed with composer you have to

TYPO3 domain and subdomain with one installation

有些话、适合烂在心里 提交于 2019-12-13 15:25:01
问题 Have following problem. I use TYPO3 version 4.7.1 and for both sites the domain record is configured. Internet site → www.domain.com → root id = 77 Extranet site → service.domain.com → root id = 104 But still, both sites will be redirect to the internet site. How must I set this up? 回答1: Did you create a template for each domain? Did you set those templates as root? See http://wiki.typo3.org/Multidomain for more details. 回答2: Also go to the page properties/edit -> behaviour -> Miscellaneous -