Menu
  • HOME
  • TAGS

Multiple objects in one Fluid form

typo3,fluid,extbase

In order to pass non persistent objects between multiple actions, I would suggest that you store the objects serialized in a TYPO3 session variable. Doing so, you can restore the objects in the target action. Below you find a working example which can also be found here. <?php namespace derhansen\ValidationExamplesNew\Controller;...

Fluid Powered TYPO3 FLUX Fluidcontent - No Output in Frontend?

output,typo3,frontend,fluid,flux

It seems that the frontend rendering configuration for the CType fluidcontent_content is missing. Did you add the following to your typo3conf/AdditionalConfiguration.php: <?php $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'] = array('fluidcontentcore/Configuration/TypoScript/'); ...

Disable TemplaVoila Backend Layout for some sections

typo3,fluid,templavoila

Enable the classic Page module as you already did and clear the entire Cache as always. After that you see two "Page" Modules in the upper right corner of the t3 backend and can switch between "Classic" and TV-Mode. Don't forget to create a new / clean template for your...

RssDisplay Extension / Simple Pie

rss,typo3,fluid,simplepie

One way to do this, is to create a fluid variable author and assign the author object to it. Then you can access the name using {author.name}. To create a variable, you could use the ViewHelper <f:alias>, like this: <f:alias map="{author: '{feed:item.get(value: \'author\')}'}"> {author.name} </f:alias> Another way would be to...

Typo3 6.2 fluid pagination not working as expected

typo3,fluid,extbase,typo3-6.2.x,typo3-4.5

To fix the above issue i rebuilt the query in extbase query format. In typo3 6.2.x paginate will not work with query statement so we need to convert it into extbase query format. My rebuilt query format is, $constraints = array(); $subConstraints = array(); $query = $this->createQuery(); foreach($PublicationYears as $year)...

Add custom page configuration field in typo3

typo3,fluid,typo3-6.2.x

You need to add the field to the TCA type configuration for the table "pages" where it should show up. There is a utility method for adding it to all configured types.

How does my frontend usergroup list get lost between Extbase action controller and Fluid template partial in TYPO3 6.2?

typo3,fluid,extbase,typo3-6.2.x,typo3-extensions

Your variables are not passed to the partial, so {groups} is not a variable inside your Partial. You can specify the variables you want to use in the partial by giving the attribute arguments on your <f:render.partial> like in your case: <f:render partial="Report/FormFields" arguments="{groups : groups}" /> Since TYPO3 4.6...

Force a no_cache link with

typo3,fluid,typo3-6.1.x,tx-news

If you want to disable caching for your news item, you can set the no_cache on your page. you can also take a look at the viewhelper class of tx_news to see if this is possible. If not, you can add an additional parameter yourself...

Can I also slide content with Fluid Powered TYPO3 (fed flux fluidcontent)

typo3,slide,fluid,flux,col

You can do it in just the same way it is done in css_styled_content internally, using a CONTENT object: lib.content_not_cascading_without_default = CONTENT lib.content_not_cascading_without_default { table = tt_content # This enables content sliding. For more possible values # check the docs (linked above) slide = -1 select { # Use the...

Access tx_fed_page_flexform in fluidtemplate

typo3,fluid,typo3-6.2.x

Found a solution. To set sectionData use v:variable.set. the as in flux:form.data seems not to work. <v:variable.set name="sectionData" value="{flux:form.data(table:'pages', field:'tx_fed_page_flexform', uid:'{section.uid}')}" /> ...

File url [tmp_name] after upload via Typo3 backend

typo3,fluid

It seems you did not define the enctype attribute on the <f:form> tag. <f:form ... enctype="multipart/form-data"> ... </f:form> See also: http://www.w3schools.com/tags/att_form_enctype.asp http://wiki.typo3.org/Fluid#f:form ...

How do i make fluid movement with arrows using javascript?

javascript,if-statement,canvas,movement,fluid

tast() in your version can be called whenever the player presses a key. At that time, the variable i within that function doesn't appear to point to your for loop variable. Execution might not be within that loop at the time tast() is called. You're also redefining the function with...

Typo3 Fluid Loop Through Properties

loops,properties,typo3,fluid

You cannot do this out of the box. However if you access a property of your model in fluid ({model.property}), under the hood the getProperty() method is called. So if you want some magic functionality that automatically expands your view if you model grows, you have to implement it. I'll...

What is the best program to run a mobile app on that looks professional using wordpress?

wordpress,plugins,responsive-design,fluid,mobile-application

You can try using Mobapper, which can create mobile apps from WordPress.But the apps are complete native mobile apps.

Typoscript USER / USER_INT objects in powermail input fields

typoscript,fluid,extbase,typo3-6.2.x

I'm just starting out with Typo3 myself, but I needed that functionality also. I had the same problem, it started working for me when I used this: plugin.tx_powermail.settings.setup.prefill { company = USER company { userFunc = tx_extbase_core_bootstrap->run extensionName = ExtPowermail pluginName = Extpowermail vendorName = TYPO3 switchableControllerActions.Extpowermail.1 = list }...

Complex for/if conditions for rendering newsItems in Fluid Template

typo3,fluid,viewhelper

In short words this kind of logic isn't possible in Fluid - reason is simple -it's template engine. You need to create your own extension and create a ViewHelper in it, which will take the collection of News will check if it has required settings (falMedia existing in this case)...

Typo3 DCE Images

image,typo3,fluid,dce

Got it. With the hint form vijay rami I found out, that you have to render images in dce like this: <f:for each="{dce:fal(field:'image', contentObject:contentObject)}" as="fileReference" iteration="iterator"> <f:if condition="{iterator.isFirst}"> <f:image src="{fileReference.uid}" alt="" treatIdAsReference="1" /> </f:if> </f:for> Of course you have to edit in the first line "field:'image'" to your name....

Fluid image with extra data for cycle2

typo3,fluid

Since data-cycle-title and data-cicle-desc are not registered arguments within the ImageViewHelper you cant pass those values directly. But there is a additionalAttributes argument for the rescue. You can add as many attributes as you like to have in your image tag. additionalAttributes expects an array notation: <f:image ... additionalAttributes="{data-cycle-title: 'Title',...

Change translation language programmtically

typo3,fluid,extbase

In your cronjob, change the language of the current backend user. You can use the $GLOBALS['BE_USER'] variable to access this. It has a property for the language. However, you might need to reinitialize the language service. How a look into the bootstrap to see how this is done.

Typo3 extbase json output

ajax,json,typo3,fluid,extbase

Okay, I got it... I included a file with some functions named user.php /** * User service * * @var \Whmcs\Registration\Service\User * @inject */ protected $user = NULL; In this file there were empty lines after the ?> tag. These empty lines were the problem. I deleted them and now...

Fluxfield for internal Link with pagetree

typo3,fluid,typo3-6.2.x,flux

You can use a normal text input, but add a link wizard to it. Looks like this: <flux:field.input name="link" label="Link!" > <flux:wizard.link/> </flux:field.input> To output the link, use one of the ViewHelpers v:(link|uri).typolink from EXT:vhs: <v:link.typolink configuration="{parameter: link}"> Linktext </v:link.typolink> This works for all kinds of links....

Typo3 Fluid: add link to homepage

templates,typo3,fluid

I left the links like: <a href="/{product.alias}">{product.name}</a> And set in typoscript config: absRefPrefix = http://www.sitedomain.com This was needed only for a specific request, for a certain typeNum, so the normal typo3 content pages are not affected....

Typo3 Standalone View Form

view,typo3,fluid,extbase

Action's view uses controller's context, but standalone view has no any context by default. You need to pass it yourself i.e. right after creating the view object: $View = $this->objectManager->get('TYPO3\\CMS\\Fluid\\View\\StandaloneView'); $View->setControllerContext($this->controllerContext); ...

Execute plain SQL query in Extbase repository

php,typo3,fluid,extbase

$Query = $this->createquery(); $Query->getQuerySettings()->setReturnRawQueryResult(TRUE); $Query->getQuerySettings()->setRespectStoragePage(FALSE); $Query->statement('your query'); return $Query->execute(); In your controller class your_Controller_name extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController { protected $myimagegalleryRepository; public function yourAction() { $myimagegalleries = $this->myimagegalleryRepository->getImages( $uidOfCE, $this->cObj->data['pid'] ); } }...

Display Extbase FileReference with Fluid

typo3,fluid,extbase,typo3-6.2.x

Files and file references behave a bit different in fluid that usual: They are lazy-loaded, so the originalResource (Extbase file reference) and originalFile (Core file reference) values are NULL before the first access to them. But you can just access them as usual. The value uidLocal of an extbase file...

IOS : Move an image with a timer

ios,image,move,fluid

Try: - (IBAction)goRight:(id)sender { sprite.image = [UIImage imageNamed:@"sprite_rr.png"]; CGRect frame = sprite.frame; frame.origin.x += 5; [UIView animateWithDuration:1.0 animations:^{ [sprite setFrame: frame]; sprite.image = [UIImage imageNamed:@"sprite_lr.png"]; }]; } In order to animate or "move" objects visually, you need to use animateWithDuration: animations: method. Edit: Try setting the frame instead of modifying...

Clean way to switch between typo3 fluid page and action link

typo3,fluid

You can extract the code within the links into a partial. For this, first create a partial template. Inside an Extbase extension, they are placed in Resources/Private/Partials by convention (you can change this by using the setPartialsRootPath() method on the template object, but usually that shouldn't be necessary). # Resources/Private/Partials/LinkContent.html...

How to use typoscript object in fluid template as if condition

typo3,typoscript,fluid,typo3-6.2.x

You can use the ViewHelper f:cObject. It would look like this: <f:for each="{newsItem.categories}" as="category"> <f:if condition="{category.uid} == {f:cObject(typoscriptObjectPath: 'lib.myid')}"> Category ID is the same as myid </f:if> </f:for> Alternatively, you can make the value a setting of the news plugin, by setting plugin.tx_news { settings { valuefromlibrary < lib.myid }...

Extbase Query doesn't work

typo3,fluid,extbase,typo3-6.2.x

You don't need to have a findByUid method in your repository because this method is already defined in the Repository base class. The problem is most likely that you didn't clear the system caches (in Development Context, there's a button for this in the Backend and there's a button for...

Is it possible to set by fluid a argument that the typo3 backend uses as input

typo3,fluid

You can't do that in the view, instead you can make a copy of lib.lastaddeditmes in TypoScript and then use it in other place like: lib.lastaddeditmesOnlyThree < lib.lastaddeditmes lib.lastaddeditmesOnlyThree.someSetting.items = 3 and in view: <f:cObject typoscriptObjectPath="lib.lastaddeditmesOnlyThree" /> Remember that TypoScript is just a configuration syntax (not programming language) so it...

Typo3 extension builder configuration settings.yaml

typo3,typoscript,fluid

You comment out the statement. use Edit.html: keep instead of #Edit.html: keep ...

Use v:content.render in a Contentelement

typo3,fluid,typo3-6.2.x

I found a solution that works: <v:variable.set name="contentElements" value="{v:content.get(column:'0', limit:'3', pageUid:'9', render:'FALSE')}" /> <f:for each="{contentElements}" as="contentElement" iteration="footerIteration"> <v:content.render contentUids="{0:contentElement.uid}" /> <f:format.html>{contentElement.bodytext}</f:format.html> </f:for> ...

typo3 news realurl overwriteDemand

typo3,fluid,realurl

try add 'fixedPostVars' => array( ... '35' => 'newsDetailConfiguration', #change you id page with news detail plugin '79' => 'newsTagConfiguration', # change you id page with news tag plugin if need #'69' => 'newsCategoryConfiguration', # change you id page with news category plugin ), ...

Parse an existing JSON string in fluid template?

typo3,fluid,extbase,typo3-6.2.x

As an alternative to using a custom ViewHelper, you could use a transient property in your model. Let's assume your model has a property "jsonData" that is a JSON encoded string. Now, you add another property $jsonArray and a getter for it: /** * @var array * @transient */ protected...

TYPO3 fluid get @attributes

typo3,fluid

Thanks Christoph. This solution works: <f:for each="{rss_news.enclosure}" as="item"> <img src="{item.url}" alt=""> </f:for> ...

Typo3 Fluid - How To Make f:form.textarea Mandatory

validation,textarea,typo3,fluid,required

It is true, the TextareaViewHelper does not support the required attribute as an argument, but you can add any attribute to a fluid generated tag by using the additionalAttributes argument. E.g.: <f:form.textarea property="story" rows="3" cols="7" class="lcapp-formwidth" additionalAttributes="{required: 'required'}" /> Notice how additionalAttributes expects an array notation, where the key is...

Edit headlines (header level) FLUID Powered TYPO3 fluidcontent_core instead of CSS_Styled_Content

header,typo3,fluid,fedext

the templates of content_core are all in the Private dir of the ext. itself. If you take a look at them, you will see that the headers are rendered from a comma separated string set in the setup.ts and deflated as an array. You can make your ow array or...

CSS right sidebar fixed width and left contant fluid

html,css,width,fixed,fluid

Just move .page-side before .page-content in your html .page-main{ padding: 10px; height: auto; overflow: hidden; } .page-content{ background-color: red; width: auto; overflow: hidden; } .page-side { float: right; width: 200px; background-color: green; } <div class="page-main"> <div class="page-side"> Sidebar </div> <div class="page-content"> Content </div> </div> ...

Fluid Typo3 - How to get variables definded via flux from different page uids

css,typo3,fluid,flux,viewhelper

Finally got it. It's the old problem... how do you ask the right question if you don't get to the real matter. Another post (about accessing flexform) gave me the final hint. Yay! <f:section name="MainMenu"> <ul class="sf-menu"> <v:page.menu pageUid="{settings.startpageUid}" entryLevel="2" levels="2" expandAll="TRUE" as="menu"> <f:for each="{menu}" as="item"> <li class="{item.class}"> <!--new:--> <flux:form.data...

How to assign variable in fluid?

typo3,fluid,view-helpers

Define namespace like following at the top {namespace v=FluidTYPO3\Vhs\ViewHelpers} Then use set viewhelper <v:variable.set name="test" value="12345" /> {test} {test} will return value 12345...

Fluid FlexForms are not loaded after upgradding Fluid Content Engine to 4.2.3

typo3,fluid

There is already an issue on github and a possible fix that you can apply yourself by removing line 22 in Configuration/TCA/Overrides/tt_content.php. The line you have to remove is --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance You could of course also switch back to 4.2.2 and wait for a fix. https://github.com/FluidTYPO3/fluidcontent/issues/243...

How to access TCA-fields in the Fluid template for a custom content element

typo3,fluid,typo3-6.2.x

If you name your element settings.sys_category, then you should be able to access its value with {settings.sys_category} in the Fluid template, as well as from $settings['sys_category'] in the Controller. Otherwise, you will need to parse the pi1_flexform field of your content element. In Fluid, it could be done using a...

Inline notation of TYPO3 Fluid view helper `f:for`

fluid,view-helpers

In the meanwhile I found a solution for my problem. To print all items of an array you could do something like {x -> f:for(each: {0: 'one', 1: 'two', 2: 'three'}, as: 'x')}. But this will result in: onetwothree. To fix that the view helper f:if helps: <div class="{f:if(condition: i.isLast,...

How do I check for column content in a typo3 fluid template?

typo3,fluid

There is no easy way to do that. But you can use some TypoScript and then pass the count to Fluid and use it in a condition: lib.countContent = CONTENT lib.countContent { table = tt_content select { selectFields = count(uid) AS count pidInList = this andWhere = (deleted = 0...

TYPO3 object storage is empty

typo3,relation,fluid,extbase,typo3-6.2.x

Please check if the ObjectStorage is related to the correct class in your model. Sometimes the extensionbuilder does set up the ObjectStorage but messes up the annotation. Check if the annotation for "fach" in your ReRe\Rere\Domain\Model\Modul class contains the referenced class. It should look like this: @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\ReRe\Rere\Domain\Model\Fach> If assume...

How to get typo3 settings in the utility files?

php,typo3,fluid,extbase

You can add below line in the your controller. $objectManager = \TYPO3\CMS\Core\UtilityGeneralUtility::makeInstance('Tx_Extbase_Object_ObjectManager'); $configurationManager = $objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager'); $this->setting = $configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT); $this->ts_config = $this->setting['plugin.']['tx_xxxx.']['settings.']['storagePid']; I think...

Vertical centering of image in fluid nav bar

css,center,dreamweaver,fluid

I think you need to add vertical-align:middle (img is a inline element like text). #divL { display:inline-block; vertical-align: middle; } ...

Output nested tags with one single ViewHelper

typo3,fluid,view-helpers

The easiest way to achieve what you want is to use a partial. It would look like this: {namespace x=Yourcompany\Yourproduct\ViewHelpers} <f:comment> Parameters: * src: src of the image * width: Width of the image </f:comment> <x:noscript src="{src}" width="{width}"> <f:image src="{src}" width="{width}" /> </x:noscript> You can use it like this: <f:render...