typo3

TYPO3 6.2 - how to create FileReference in frontend (FE)?

若如初见. 提交于 2019-12-09 11:00:53
问题 I have the hypothetical Zoo extension in which I've Animal model with photo field and FrontEnd (FE) plugin with typical CRUD actions. photo field is typical FAL's FileReference and it works perfectly in backend (BE) with common TCA IRRE config. I'm able to successful upload the file to the storage, it's visible in the Filelist module, and I can use it in BE during my Animal editing, anyway I can't create FileReference within my FE plugin. My current approach looks like this: /** * @param \Zoo

TYPO3 Database migration from fluidcontent to flux

拜拜、爱过 提交于 2019-12-08 19:49:34
I want to switch from fluidcontent to flux by removing the obsolete fluidcontent. As mentioned in here https://github.com/FluidTYPO3/fluidcontent/issues/424 , you have to change the CType for all fluidcontent objects in the tt_content table from fluidcontent_content to extensionnamewithoutunderscores_templatenamewithoutunderscores . Is there a migration script or a SQL statement available for this? The tablename without Undescores is the filename. Why and where do i need the id of the flux:form ? A colleague made a SQL statement, which converts all fluidcontent CTypes to the correct flux value

TYPO3: get a javascript included by “headerData” to load before one included by “includeJS”

99封情书 提交于 2019-12-08 17:45:43
问题 I'm loading JQuery into my TYPO3 page by : page.headerData.10.value = <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> and I'm including my javascript like this : page.includeJS { file20 = fileadmin/templates/myjq.js } Point is, i need the JQuery to be loaded first. but TYPO3 puts it after my script. How do i get it swapped? Thanks 回答1: you don't want to include JQuery that way; Use page.includeJSlibs.jquery.external = 1 page

typo3 v.6 fluid template: getting Distribution.png (box with question mark) instead of wanted image

走远了吗. 提交于 2019-12-08 13:52:16
问题 I am getting Distribution.png (box with question mark) instead of wanted image while using fluid template, typo3 v6.0. This is my root template: config.no_cache = 1 config.doctype = html5 page = PAGE page.typeNum = 0 page.10 = FLUIDTEMPLATE page.10 { format = html file = fileadmin/templates/layouts/main.html partialRootPath = fileadmin/templates/partials/ layoutRootPath = fileadmin/templates/layouts/ variables { content < styles.content.get content.select.where = colPos = 0 content_left <

Get website name using TypoScript?

我是研究僧i 提交于 2019-12-08 13:18:57
问题 Is there a way to get the website name using TypoScript? In my TypoScript template I am using data = page : name to get the name of the current page I am on e.g. About . I need to get the webiste name as well, so I have tried data = site : name but this is not correct and I can't find the correct data name for the website name in the documentation. NOTE: by website name I mean the Sitename entered in the template settings. 回答1: With line below you need to know used uid of the TypoScript

How to integrate a html template to typo3

房东的猫 提交于 2019-12-08 13:17:13
问题 I'am new to typo3 and I want to integrate my HTML template in it. but I can't add my content to the pages threw the dashboard all I get is a blank page. I'am using TYPO3 v8 Greetings! 回答1: The steps you need to do for template integration in TYPO3 8 TYPOSCRIPT Tell TYPO3 by where the templates should be get. page = PAGE page.10 { templateRootPaths { 10 = PATH TO YOUR TEMPLATES } layoutRootPaths { 10 = PATH TO YOUR LAYOUTS } partialRootPaths { 10 = PATH TO YOUR PARTIALS } templateName = TEXT

How do I write a routing aspect mapper for TYPO3 9 LTS

随声附和 提交于 2019-12-08 13:03:30
I need a custom aspect mapper class, to define the value of an optional get parameter. this parameter holds an cf_cache identifier with extra data. But this parameter produces a cHash parameter what i dont need, and dont want to see in the URL's. The docs ( https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.5/Feature-86365-RoutingEnhancersAndAspects.html ) says: If the requirements are too loose, a URL signature parameter ("cHash") is added to the end of the URL which cannot be removed. And also: If you really have the requirement to never have a cHash argument, ensure that all

Typo3 fluid image from external resource

狂风中的少年 提交于 2019-12-08 12:45:41
问题 is it possible to resize images in fluid from external resource. I have an extension with datas from SOAP. So image URL looks like http://www.example.com/url/of/image/imagename.jpg . <f:image src="{data.url.image}" with="300" /> is not working. 回答1: Maybe an own ViewHelper which fetch the external image and save it to an temporary folder could help. After this you can modify the image. Something like this (not tested): <?php namespace MyNamespaece\MyExt\ViewHelpers; use TYPO3\CMS\Core\Utility

Exclude specific URL from HTTPS redirect

三世轮回 提交于 2019-12-08 12:41:16
问题 I'm using the following TYPO3 mod-rewrite configuration (cleaned from not working attempts). I want to exclude a specific URL from getting redirected to https. Additionally add a rule for redirecting this url to http, if requested via https. My errorcase is mostly to end up by getting redirected to index.php. Has anybody an idea? <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^(www\.)?domain\.de [NC] RewriteRule ^/?(.*) https://%{HTTP_HOST}%