typo3

How to access a method and pass an argument within the template?

痞子三分冷 提交于 2019-12-13 02:59:19
问题 In my template I want check whether an entity has a relation to another one. Meaning one object is in an attached Object Storage of another one. In the controller I can simply call: if ($product->getCategory()->offsetExists($category) { print 'In category ' . $category->getName(); } But I can't figure out the correct syntax in the template. I tried those without luck (both evaluate to true everytime): <f:if condition="{product.category.offsetExists(category)}">true</f:if> <f:if condition="

How to wrap image with div in typo3?

倖福魔咒の 提交于 2019-12-13 02:37:35
问题 To remove default wrap around image, i have used this template code: tt_content.image.20.rendering.noWraps { imageRowStdWrap.dataWrap = | noRowsStdWrap.wrap = | oneImageStdWrap.dataWrap = | imgTagStdWrap.wrap = | editIconsStdWrap.wrap = | caption.wrap = | } # Set this as active rendering method tt_content.image.20.renderMethod = noWraps I want to override it above codes for a specific section. Here is my code to do so: SCREENSHOTS<styles.content.get SCREENSHOTS.select.where = colPos = 9

TYPO3 get category uid at FLUID template (sys_category)

雨燕双飞 提交于 2019-12-13 01:04:23
问题 I try to show my category uid or name as a class="category.uid" at my FLUID template. If I try <f:debug>{data}</f:debug> I'll see there are an output like: categories => '1' (1 chars) But how can I write the category-uid or -name into my FLUID/HTML, similar like this: <div id="container" class="{data.nav_title}"> <!-- I need the categories --> <div id="container" class="{categories.uid}"> THanks for your help. EDIT: some screenshots The info is in table sys_category title, uid, pid .. `{data}

TYPO3 menu - duplicate parent link on submenu list

我的梦境 提交于 2019-12-13 00:49:09
问题 Is it possible to insert the parent link to sub menu list. It should looks like this: Parent link |--Parent link |--Subpage link1 |--Subpage link I need this for bootstrap menu where every parent link is only clickable (to expand the sub menu) My menu looks like this: lib.header-menu = HMENU lib.header-menu.entryLevel = 0 lib.header-menu { 1 = TMENU 1 { wrap = <nav class="navbar navbar-default" role="navigation"><ul class="nav navbar-nav">|</ul></nav> expAll = 1 NO { ATagTitle.field = title

Migrating all the content from Typo3 CMS [closed]

泄露秘密 提交于 2019-12-13 00:48:13
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . Is there a way to export the current content (pages and assetts)? if so what format does it export to? I am not familiar with Typo3 as yet so any info would be great. Thanks. 回答1: Yes, you can. There is a

TYPO3 upload multiple files in a frontend form

做~自己de王妃 提交于 2019-12-12 21:12:49
问题 I'm using the https://github.com/helhum/upload_example to create a form that allow file upload in frontend. It works fine with single file but I would need to upload multiple files. So here is my form field : <mr:form.upload property="files" id="publication-files-{contentUid}" class="file" data="{loading-text: '{f:translate(key: \'uploading\', extensionName: extKey)}', max-file-size: maxFileSize}" additionalAttributes="{autocomplete: 'off', accept: settings.allowedFiles, multiple: 'multiple'}

Assign plugin in typoscript

本小妞迷上赌 提交于 2019-12-12 20:27:21
问题 I have a plugin http://typo3.org/extensions/repository/view/aw_consume I'm using it as a content element it's working When I try to assign to a subpart in my typoscript nothing shows up LOGOUT < plugin.tx_awconsume.widgets.menu this plugin was created with the extension_builder extension installed on TYPO3 6.1.4 update 3 plugin.tx_awconsume { view { templateRootPath = {$plugin.tx_awconsume.view.templateRootPath} partialRootPath = {$plugin.tx_awconsume.view.partialRootPath} layoutRootPath = {

Pass content from TypoScript to fluid template in TYPO3 7.6

≡放荡痞女 提交于 2019-12-12 20:18:50
问题 I would like to read content via TypoScript and render it through a custom Fluid template. Without css_styled_content or fluid_styled_content. temp.test = CONTENT temp.test { table = tt_content select.languageField = 1 select.selectFields = bodytext,image,header,header_link select.where = colPos = 1 renderObj = FLUIDTEMPLATE renderObj { file = path/to/Teaser.html } } This works with strings, say <f:debug>{data.header}</f:debug> But not with <f:debug>{data.image}</f:debug> returning only the

AJAX calls to TYPO3 Extension not working

為{幸葍}努か 提交于 2019-12-12 20:11:13
问题 I'm trying to make an AJAX call in my application to a certain custom extension. The request seems to going, but somehow it seems like the application is not recognizing the Extension or something. I use TYPO3 V6. The request params caught from my browser are : id 82 no_cache 1 tx_mediaplugin_mediaplugi... update tx_mediaplugin_mediaplugi... MediaPlugin type 99 my updateAction is : public function updateAction(){ die('Ajaxed!'); } I added the following script in my Extension View and I use it

TYPO3 v7.6 extBase backend module template path not working

无人久伴 提交于 2019-12-12 18:22:46
问题 I have created extBase extension using extension_builder. Everything is fine but backend module path not working. - constants.txt module.my_ext { view { templateRootPath = EXT:my_ext/Resources/Private/Backend/Templates/ partialRootPath = EXT:my_ext/Resources/Private/Backend/Partials/ layoutRootPath = EXT:my_ext/Resources/Private/Backend/Layouts/ } } - setup.txt module.my_ext { view { templateRootPath = {$module.my_ext.view.templateRootPath} partialRootPath = {$module.my_ext.view