DCE image don't run after upgrade to TYPO3 v10 - typo3

I have upgraded a TYPO3 project from v6 to v10.
Some content of DCE elements aren't working anymore, this is the code there:
TCA:
<config>
<type>group</type>
<internal_type>db</internal_type>
<appearance>
<elementBrowserType>file</elementBrowserType>
<elementBrowserAllowed>jpg,jpeg,gif,png</elementBrowserAllowed>
</appearance>
<allowed>sys_file</allowed>
<size>1</size>
<minitems>0</minitems>
<maxitems>1</maxitems>
<show_thumbs>1</show_thumbs>
<dce_load_schema>1</dce_load_schema>
<dce_get_fal_objects>1</dce_get_fal_objects>
</config>
Fluid template:
<f:for each="{field.slide}" as="slide">
<div class="slide">
<div class="img-holder">
<f:image src="uploads/pics/{slide.bild}" alt="{slide.titel}" />
</div>
How can I fix it to make work again, i have even changed the image to FAL but make error too.

Thanks #Julian! I have fixed this issue with change:
<f:image src="uploads/pics/{slide.bild}" alt="{slide.titel}" />
to
<f:image image="{slide.bild.0}" alt="{slide.titel}" />

Related

Magneto 2.2.0 add header and footer to checkout page

How to add header and footer to checkout page. I used the override method. I created checkou_index_index.xml file in following path layout\override\theme\Magento\blank in my custom theme.
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="minicart" remove="false" />
<referenceContainer name="header.panel" remove="false" />
<referenceBlock name="top.search" remove="false" />
<referenceBlock name="catalog.compare.link" remove="false" />
<referenceBlock name="catalog.topnav" remove="false"/>
<referenceContainer name="footer-container" remove="false"/>
</body>
</page>
But I received following error.
Overriding view file 'C:\/xampp\/htdocs\/my_website\/app\/design\/frontend\/Vendor\/basic\/Magento_Checkout\/layout\/override\/theme\/Magento\/blank\/checkout_index_index.xml' does not match to any of the files
What is the cause of this error and how to fix this error?
First you have to create custom theme and once its done then create checkout_index_index.xml file in app/design/frontend/Magenticians/Mytheme/Magento_Checkout/layout and paste this code:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceBlock name="minicart" remove="false" />
    <referenceContainer name="header.panel" remove="false" />
    <referenceBlock name="top.search" remove="false" />
    <referenceBlock name="catalog.compare.link" remove="false" />
    <referenceBlock name="catalog.topnav" remove="false"/>
    <referenceContainer name="footer-container"  remove="false"/>
</body>
</page>
Then create customcss.css in app/design/frontend/Magenticians/Mytheme/web/css and paste this code:
.action-auth-toggle
{
display: block;
}
Now open a default.xml file of your custom theme and paste this code:
<head>
        <css src="css/customcss.css" />
</head>
After the implementation, don't forget to run necessary CLI commands.
Try putting your custom xml file in:
C:\xampp\htdocs\my_website\app\design\frontend\Vendor\basic\Magento_Checkout\view\frontend\layout\checkout_index_index.xml
Because, if i'm not mistaken, the file to override is in:
C:\xampp\htdocs\my_website\vendor\magento\module-checkout\view\frontend\layout\checkout_index_index.xml
Hope this helps you.

allowedContentTypes in fluidcontent for fluid_styled_content

For my templating i am using the fluid powered TYPO3 extension (flux, vhs, fluidpages, fluidcontent).
For the default Templates im am using fluid_styled_content.
I can restrict the content types with the following markup:
<flux:grid.column colPos="2" name="hero" label="Hero Image">
<flux:form.variable name="allowedContentTypes" value="fluidcontent_content" />
<flux:form.variable name="Fluidcontent" value="{allowedContentTypes: 'Vendor.ExtensionName:HeroImage.html'}" />
</flux:grid.column>
But now i want to restrict to only allow a fluid_styled_content element.
I tried the following, but it does not work:
<flux:grid.column colPos="1" variables="{allowedContentTypes: 'text,textpic'}" />
Is it because i use fluid_styled_content and not css_styled_content?
My Setup:
TYPO3 7.6.2
flux: 7.3.0
fluidcontent: 4.4.0
fluidpages: 3.4.0
In fluid_styled_content there is no longer a text or textpic CType. It is called textmedia now. So try:
<flux:grid.column colPos="1" variables="{allowedContentTypes: 'textmedia'}" />

Fluid TYPO3 : Error after Update : Could not analyse class:FluidTYPO3\Flux\ViewHelpers\Flexform\SheetViewHelper maybe not loaded or no autoloader?

Aargh! My TYPO3 6.2.11 worked fine! Then I was updated all of my FLUIDTYPO3-Extensions and now I'll get an error:
Could not analyse class:FluidTYPO3\Flux\ViewHelpers\Flexform\SheetViewHelper maybe not loaded or no autoloader?
Here's the changelog, but there is no obvious problem for me? FluidTYPO3:
flux 7.1.2 => 7.2.0
fluidcontent_core 1.0.3 => 1.1.0
fluidcontent 4.1.1 => 4.1.2
fluidpages 3.1.2 => 3.2.0
vhs 2.3.0 => 2.3.1
I change my namespaces at all templates and FLUX-FCEs xmlns:f but that won't help. From
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
to
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
f:schemaLocation="https://fluidtypo3.org/schemas/fluid-master.xsd"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
flux:schemaLocation="https://fluidtypo3.org/schemas/flux-master.xsd">
Nothing.
It's a disaster ... my Website is crashed with that error.
I hope someone can help me ... (Never update later then 10pm ;)
There is no longer a Flexform Namespace in Flux.
Change your ViewHelper to
<flux:form.sheet .... >
...
</flux:form.sheet .... >
This has to be done for all ViewHelpers that use the old <flux:flexform... namespace.
On my 6.2 system with
fluidpages 3.2.3
flux 7.2.1
vhs 2.3.3
it finally worked with:
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers">
I got this out of the extension built with the builder extension - the code given in the documentation did not work. (I only used Fluid pages, no Fluid content)
Some additional example to the above for the whole template:
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers">
<f:layout name="Default" />
<f:section name="Configuration">
<flux:form id="default">
<!-- Input field for Fluid variable 'pageClass' -->
<flux:field.input name="settings.pageClass" default="onecol"/>
<!-- Backend layout grid (TYPO3 6.x and greater only) -->
<flux:grid>
<flux:grid.row>
<flux:grid.column colPos="0" name="Main" style="width: 75%" colspan="4" />
</flux:grid.row>
</flux:grid>
</flux:form>
</f:section>
<f:section name="Body">
<div class="container content">
<div class="col-full">
<!-- Render colPos=0 in this section -->
<v:content.render column="0"/>
</div>
</div>
</f:section>
</div>
I don't wanna know how many hours of developer time these changes in conventions burn every time...
Good luck!

how to use tablelayout in zk framework

I am new to ZK framework and i am using its latest version.I am trying to use tablelayout in zul but its giving error.tried importing zkmax.jar but it did not work for me.can somebody help?
here is the sample code:
<tablelayout columns="2">
<tablechildren>
<panel title="Table 1" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="Table 2" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="Table 3" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="Table 4" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
</tablelayout>
Error:
java.lang.ClassNotFoundException: org.zkoss.zul.impl.api.XulElement
XulElement is normally under zul-x.x.x.jar.
Example :
zul.6.5.3.jar contains org.zkoss.zul.impl.XulElement.
As you can see its on another path.
Same for zk 7.x.x => http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/impl/XulElement.html
Now you have clashing dependencies, where a version of zul is to high for another dependencie.
For further help I need to know what zk jars you all use.
As you can see in this fiddle, there is nothing wrong with your code.
that is true, i checked it later.but i found that suggestion in zk forum and so i tried.I have found the solution. I am actually using free edition and those components are available in PE & EE not in CE. :) For reference http://www.zkoss.org/whyzk/Features .
Thanks Anyway..!!

TYPO3 RTE Image Upload is not visible when using

I use templavoila and TYPO3 4.5.29. I created a template in FCE. and added mapped text area.
I can see the rich text editor but I can't use some of the features. like Image Upload/Page Break.. etc..
Attaching the FCE form and Backend screen
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langDisable>1</langDisable>
</meta>
<ROOT type="array">
<tx_templavoila type="array">
<title>ROOT</title>
<description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
</tx_templavoila>
<type>array</type>
<el type="array">
<field_tab1_title type="array">
<tx_templavoila type="array">
<title>Tab 1 Title</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>rte</eType>
<preview></preview>
<TypoScript><![CDATA[
10 = TEXT
10.current = 1
10.parseFunc = < lib.parseFunc_RTE]]></TypoScript>
</tx_templavoila>
<TCEforms type="array">
<label>Tab 1 Title</label>
<config type="array">
<type>text</type>
<cols>48</cols>
<rows>5</rows>
<softref>*</softref>
</config>
<defaultExtras>richtext[*]</defaultExtras>
</TCEforms>
</field_tab1_title>
</el>
</ROOT>
</T3DataStructure>
I dont know what when wrong in my congfiguration.
What wrong with FCE
You can configure the RTE via the Extension Manager. Go to the configuration panel of the extension rtehtmlarea and set 'Default configuration settings' to Demo. Now you can see all features of the RTE.
Here is a quite good tutorial for configuring the RTE in TYPO3 (in german).