FAQ Database Discussion Community


Clean way to switch between typo3 fluid page and action link

typo3,fluid
Is there a more clean way to switch between a page or a action link in fluid based on a var? Now i used the if then statement but this increases a lot of double code lines. See example: <f:if condition="{var}"> <f:then> <f:link.page pageUid="{PageId}"> // a lot of code lines...

CSS right sidebar fixed width and left contant fluid

html,css,width,fixed,fluid
I'm trying to add a sidebar which have a fixed width. But the content div should be fluid. Here is my code: .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...

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

header,typo3,fluid,fedext
How can I edit my Header info fluidcontent_core Extension. I use it instead of the 'normal' CSS_Styled_Content with FLUIDPAGES 3.1.2, FLUX 7.1.2, FLUIDCONTENT 4.1.2, FLUIDCONTENT_CORE 4.1.1 and VHS 2.1.4 - the latest versions of FLuidTYPO3. For example, I need an additional <div class="text-center">|</div> for my <h1> Header, like this <div...

Fluxfield for internal Link with pagetree

typo3,fluid,typo3-6.2.x,flux
How can I create a fluxfield to create a link to another page, where the user can chose the page in a pagetree. Something like the Modify Linkfrom the RTE. Is there something? Or how else would I create a field for a internal link? Just an inputfield where the...

Typo3 DCE Images

image,typo3,fluid,dce
I'll try to design my own content elements with DCE (Dynamic Content Elements). The problem I have a problem when I try to work with images. I created a select field for images which works fine. In the fluid template I have the following code for handling the image: <f:image...

Typo3 6.2 fluid pagination not working as expected

typo3,fluid,extbase,typo3-6.2.x,typo3-4.5
My typo3 6.2(Upgraded from Typo3 4.5) fluid paginate displays all the items instead of 5 items. My Repository Method : public function getRandomLocation($iLimit) { $query = $this->createQuery(); $result = $query->statement("Select * FROM tx_sfel_domain_model_ttblocationsproduktegruppen WHERE hidden = 0 AND deleted = 0 AND logo != '' ORDER BY uid LIMIT 0,...

Output nested tags with one single ViewHelper

typo3,fluid,view-helpers
I have a TYPO3 project with an extension using Extbase and to implement lazy loading and retina images while maintaining compatibility if javascript is disabled, I need to generate some output like this: <noscript data-src-small="small.jpg" data-src-large="large.jpg" data-width="300" data-height="200"> <img src="small.jpg" width="300" height="200"> </noscript> So I wrote a custom ViewHelper (or...

TYPO3 fluid get @attributes

typo3,fluid
I want to get attributes from an xml feed. If i f:debug the Array in fluid, i can see the attributes as an array with the name @attributes: array(6 items) title => 'Test Title' enclosure => array(1 item) @attributes => array(3 items) url => 'http://www.example.com/test.jpg' (55 chars) length => '83423'...

Disable TemplaVoila Backend Layout for some sections

typo3,fluid,templavoila
I hope a TemplaVoila Professional can help me with this little challenge. I've a TYPO3 6.2.6 Installation with TemplaVoila 1.9.2. We are now switching over to Fluid and I want to start with one section, a small microsite. How can I disable TemplaVoila BE-Layout and enable the Fluid BE-Layout for...

How to get typo3 settings in the utility files?

php,typo3,fluid,extbase
plugin.tx_xxx { setting { storagePid = 23 } } I want this typo3 settings in utility file. Please help me....

Fluid image with extra data for cycle2

typo3,fluid
I'm using cycle2 for a image slider, for adding a title extra data is needed in the image url, so I want to generate the following url: <img src="foto.jpg" data-cycle-title="Title" data-cycle-desc="Subtitle" /> I tried the following but this generates an error? <f:image src="foto.jpg" data-cycle-title="Title" data-cycle-desc="Subtitle" /> ...

File url [tmp_name] after upload via Typo3 backend

typo3,fluid
I'm building a typo3 extension and in a backend plugin I want to build a image upload form. I seem not to get the correct $_Files url. The following fluid form is used: <f:form action="customerSliderImages" id="customerSliderImages"> <f:form.upload name="custSlider[sliderimage]" /> <f:form.submit value="Upload" /> </f:form> I want to have the [name] and...

Display Extbase FileReference with Fluid

typo3,fluid,extbase,typo3-6.2.x
In an extbase extension, I have a FileReference Object. It was created with extension_builder originally. From The Model: /** * apprenticeshipDocument * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference */ protected $apprenticeshipDocument = NULL; etc. In the frontend, <f:debug>{institution.apprenticeshipDocument}</f:debug> gives me this: First Thing: originalResource is missing. Second: When calling {institution.apprenticeshipDocument.uidLocal} directly, the value is...

Fluid Powered TYPO3 FLUX Fluidcontent - No Output in Frontend?

output,typo3,frontend,fluid,flux
I've made a TYPO3-Installation 6.2.9 with Fluid powered TYPO3 - the first steps with the Pre-configured Distribution "Site" were fine. My Site/Page-Template is installed and I added all the TypoScript stuff. Now I want to use FLUIDCONTENT (FCE) with FLUX. I've added a new Template-File TeaserOne.html and I try to...

Access tx_fed_page_flexform in fluidtemplate

typo3,fluid,typo3-6.2.x
This question is related to Access fluidpage configuration in template. I try the same as in the question above. But as flux:flexformis outdated and replaced with flux:form there may be some changes I'm not aware of. With the following code I try to access the flex:form.fields from the menu-items: <v:page.menu...

typo3 news realurl overwriteDemand

typo3,fluid,realurl
I am using Typo3 7.1 + Fluid(Latest Integrated with 7.1) and I am very new to this latest version. Added News plugin(tx_news) and using Categories. Categories are left menu and located in News List page as well as News Detail page. I am getting url look like this, http://domain.com/de/sample/?tx_news_pi1%5BoverwriteDemand%5D%5Bcategories%5D=5&cHash=8aa8fd1fb7a5e47165a4e4acca3125e9 I...

How to assign variable in fluid?

typo3,fluid,view-helpers
I want viewhelper that can be helpful to assign variable in fluid, I dont want variable to be passed from controller.

Use v:content.render in a Contentelement

typo3,fluid,typo3-6.2.x
I try to render some Elements from another page via fluid in a Partial and try to use v:content.render. As you can see in the code I want to render 3 elements from the page with the Uid 9. But as soon as I have the v:content.render element in it...

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

typo3,slide,fluid,flux,col
I try to slide content elements at my TYPO3 Backend (v6.2) with Fluid Powered TYPO3. So I don't have CSS_Styled_content included. http://wiki.typo3.org/Content_Slide Example: 10 < styles.content.getRight 10.slide = -1 Especially I'd like to slide my content from the colPos=0 'Slider' to the Pages below. Is this possible with FLUID /...

How to use typoscript object in fluid template as if condition

typo3,typoscript,fluid,typo3-6.2.x
I have a typoscript TEXT object: lib.myid = TEXT lib.myid.value = 1413 And want to use it in a fluid template (for tx_news): <f:for each="{newsItem.categories}" as="category"> <f:if condition="{category.uid} == {lib.myid}"> Category ID is the same as myid </f:if> </f:for> How can I do this?...

Vertical centering of image in fluid nav bar

css,center,dreamweaver,fluid
I am trying to get a fluid navigation bar done in Dreamweaver, which will also change the size of the logo when changing the viewport. This works and looks perfectly, except that the logo image will not stay vertically centered when it gets smaller. <div class="gridContainer clearfix"> <div id="div1" class="fluid">...

Complex for/if conditions for rendering newsItems in Fluid Template

typo3,fluid,viewhelper
I am working on a special template for the news extension tx_news in Typo3. I am completely new to Typo3 and especially Fluid. What I want is an output of exactly 4 news items, but each of these items must have an image. What I need is programming logic, something...

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

typo3,fluid
In the typo3 template I'm using the following line to get the last 5 added items from the backend and this works. <f:cObject typoscriptObjectPath="lib.lastaddeditmes" /> Only the number of item I want to have it flexible and set in the fluid template. So for example like below where the qty...

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

typo3,fluid,typo3-6.2.x
I've created a custom content element called cat_but (category button). I've added TCA and content element wizard without problem. The category button have only one field: sys_category. Exactly one category should be selected. From this, I want to render a link action to a controller using that category as argument....

Typoscript USER / USER_INT objects in powermail input fields

typoscript,fluid,extbase,typo3-6.2.x
I've a custom extension to render a value from database. I want to prefill the returned value of the extension using powermail prefill typoscript. But when I add the plugin as userfunction, then it will display strange output in frontend. See my typoscript code below; lib.companyname = USER_INT lib.companyname {...

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
I'm using TYPO3 CMS 6.2.12 and Extension Builder 6.2.0 to model a Report class and build an extension to manage it. One of the domain driven design requirements is that a report author be a logged-in front end user. A second requirement is that the author choose a single group...