typo3

Typo3 Fluid Image crop of with and height failure

て烟熏妆下的殇ゞ 提交于 2019-12-04 18:23:15
Using this code: <f:image src="/uploads/extkey/{image}" alt="" width="115c" height="70c" /> Produces following HTML output: <img src="typo3temp/_processed_/csm_testimage_31f6051846.gif" width="115" height="92" alt=""> The image has a wrong height now and there are white bars at top and bottom. I figured out that "92" comes from its proportion (original image is: 1280 × 1024). I guess if the white bars at top and bottom are cut out the height of 70 will be reached. Any ideas why Typo3 is doing that wrong and does some others here having the same problem? Using Typo3 6.1.5 ImageMagick 6 EDIT #2:

Language switching in TYPO3 v6

六眼飞鱼酱① 提交于 2019-12-04 16:33:57
Switching the fontend-language does not work for me as expected. What I have done so far: At the root page, I created two website-languages, german and english: In the typoscript template I added the following setup, I found most of this scattered around the web: config { tx_realurl_enable = 1 simulateStaticDocuments = 0 sys_language_uid = 0 language = de locale_all = de_DE htmlTag_langKey = de linkVars := addToList(L) uniqueLinkVars = 1 sys_language_mode = content_fallback sys_language_overlay = 1 } [globalVar = GP:L = 0] config.sys_language_uid = 0 config.language = de config.locale_all = de

typo3 extbase: validate a form

北城以北 提交于 2019-12-04 15:07:52
I created a simple "subscribe to newsletter" form: <f:form action="subscribe" method="post" name="newsletterform"> <f:form.textfield id="name" name="name" required="true" /> <f:form.textfield id="email" name="email" required="true"/> <button type="submit">Submit</button> </f:form> as you can see, this is not a form that's based on an existing model, I have no interest in saving newslettersubscriptions to the database (they'll be stored somewhere else anyways). Now in my subscripeAction I want to do some form validating. I want to check if the email is really an email address, if its notEmpty

TYPO3: indexed_search and language

让人想犯罪 __ 提交于 2019-12-04 14:41:18
If I make a search with indexed_search the page has contents like Search for: xxx Page 1 Page x Next > Size Created but the language of the page is another one. This is true for the default language (german) and another language (slovenski). The configuration of the plugin has either the Language Default or Slovenski . I have set the config.language parameter config { linkVars = L sys_language_mode = content_fallback sys_language_overlay = hideNonTranslated sys_language_uid = 0 language = de locale_all = de_DE } [globalVar = GP:L=] config { sys_language_uid = 0 language = de_DE local_all = de

TYPO3: How to add a css and JS on the backend

假装没事ソ 提交于 2019-12-04 14:39:41
How do i add css and javascript file(s) on the backend? I would like to use those files for custom created content elements in order to make them more appealing for the user. System : TYPO3 v9 Mode : Composer Mode Target : Custom Content element In TYPO3 v9 you will have to do the following and on every mode CSS $GLOBALS['TBE_STYLES']['skins']['your_extension_key'] = array(); $GLOBALS['TBE_STYLES']['skins']['your_extension_key']['name'] = 'My Awesome Name'; $GLOBALS['TBE_STYLES']['skins']['your_extension_key']['stylesheetDirectories'] = array( 'visual' => 'EXT:yourextension/Resources/Public

How can I get the category object in Fluid of Typo3 Content Element Pictures?

萝らか妹 提交于 2019-12-04 14:26:49
after a long time of Google, I can get the categories of FAL Objects in Typo3 7.6 Fluid. But I can only return a String. I want to get an object like {data}. What I do: TypoScript lib.category = CONTENT lib.category { table=sys_category wrap=| select { pidInList = root,0,1 recursive = 99 max=10 selectFields=sys_category.title,sys_category.uid join = sys_category_record_mm on sys_category_record_mm.uid_local = sys_category.uid join sys_file_metadata on sys_file_metadata.uid = sys_category_record_mm.uid_foreign join sys_file_reference on sys_file_reference.uid_local = sys_file_metadata.file

TYPO3: CKEditor strips data-attributes in <span>-Tags

女生的网名这么多〃 提交于 2019-12-04 12:36:33
I want to use a data-attribute in a span-Tag. The CKEditor removes this attribute. If I add it in a p-Tag it will not removed and this is OK. processing: allowAttributes: [data-count] is added in the YAML-file. I've tried this and other combinations, nothing works. config extraAllowedContent: '*(*)[data-*]' What do I have to do, to keep the data-attribute in a span-Tag? I have done this for iframe tag with attribbuts, no allowAttributes used for this: processing: allowTags: - iframe editor: config: extraAllowedContent: - iframe[*] for you this should do the trick: editor: config:

“Map to existing tables” in Extension builder showing weird issues in TYPO3

心已入冬 提交于 2019-12-04 09:56:39
In my extension MyExt , I mapped the model Page to pages table in TYPO3. Firstly it shows me the type mismatch error, I anyhow went ahead and saved it. The following things happen: My Page tree becomes like this: My New Record Form shows only the UIDs and not the titles: My Page Edit becomes like this: In my MyExt/Configuration/TypoScript/setup.txt I have this: config.tx_extbase.persistence.classes { Tx_MyExt_Domain_Model_Page { mapping { tableName = pages } } } Is this a bug ? Or something i'm doing wrong ? This is my /Domain/Model/Page.php , just a glimpse of it. class Page extends \TYPO3

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

可紊 提交于 2019-12-04 09:29:06
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) Barlow Tucker The problem would seem to be in the fact the UIWebView does not include the same user agent string as mobile safari. (See this question here ). If your video is being converted to HTML5

How to add custom wizards in typo3 7 TCA?

拜拜、爱过 提交于 2019-12-04 09:05:52
When I try to add the wizard named wizard_geo_selector in TCA ,there arised an error "module not registered".Please tell me how to register the wizard properly in the TCA.? In TYPO3 Version 7.6 new wizards are added like this: Inside your extension create the directory Configuration/Backend/ In the new directory create a file Routes.php , it will be found automatically, no mentioning in ext_localconf.php or ext_tables.php is required. If you still need Ajax you can add the file AjaxRoutes.php in the same folder. Content for Routes.php : return array( 'my_wizard_element' => array( 'path' => '