TYPO3 only one file in fe_manager - typo3

I have TYPO3 7.6.18 and extension fe_manager. User profile has a field image. How to allow to upload only one image ? And if user upload new image, old image must be replacing with new.

You need just add 'maxitems' => 1 in your fileds image TCA configuration.

Related

Using Flexform-FAL Image in Typo3 10.x WITH editor

I wonder how to get the editor (image manipulation / crop) in Typo3 Flexform FAL image working. How to run up the FAL inside Flexform is not a big deal, but... how to get the editor? I din't found any solution, so it would be great getting some help.
the reason why I try it in flexform, is that I want ot stay on core functions without using flux and all that horrible stuff just to prevent version chaos....
here is a similar example of how I realsied it in Flexform.
How to create a file upload field in flexform of a custom extbase extension in TYPO3 10?
anyone got a solution get the editor running?
Found a solution
https://blog.wappler.systems/typo3-fal-image-in-flexform/
BUT: how can I use the cropped image in FE?

Adding own CSS to TYPO3 backend [v9]

I am trying to add some CSS styles to the TYPO3 backend (v9). I've added the stylesheet and the following line to the ext_tables.php of my own extension (as described in the file typo3/sysext/backend/Classes/Template/DocumentTemplate.php).
$GLOBALS['TBE_STYLES']['skins'][$_EXTKEY]['stylesheetDirectories'] = ['EXT:my_extension/styles.css'];
When I check the configuration, the new entry show up, so that looks fine. But I don't see any style changes to the backend.
Any ideas anyone? Thanks!
As the key value (stylesheetDirectories) indicates, this should point to a directory. It will add all .css files in that directory.
Also, don't set $GLOBALS['TBE_STYLES']['skins'][$_EXTKEY]['stylesheetDirectories'] as a new array, but use $GLOBALS['TBE_STYLES']['skins'][$_EXTKEY]['stylesheetDirectories'][] = 'EXT:my_extension/styles/';. That way other extensions can also add stylesheets without it being overwritten by your extension.

How to make file clickable in upload collection?

I am doing upload collection component in sap ui5. I want to make file clickable after upload. Previously uploaded files are getting clickable but currently uploaded files are not getting clickable. Please help me to find solution.
Below is my XML code :
You have not set the mode for the Upload list, by default this is set to None. Add a mode parameter in you List as below. This will make the List clickable.
mode="SingleSelectMaster"
Reference:
https://sapui5.netweaver.ondemand.com/#docs/api/symbols/sap.m.UploadCollection.html#getMode
https://sapui5.netweaver.ondemand.com/#docs/api/symbols/sap.m.ListMode.html

How add image caption to click-enlarge link in css_styled_content

Along an upgrade from TYPO3 4.5->6.2, I encountered the following issue:
We have many existing images with text in the "Caption" field, which is in fact named "description". I wanted to rebuild the click-enlarge feature with a given lightbox script and adapt the content rendering by css_styled_content.
Now there is a newer setting in css_styled_content, which enables you to replace the odd/old "click enlarge" behaviour by a regular lightbox (fancybox, colorbox, anybox) style link.
This comes in very handy. But some lightbox scripts need a title on the link to display that caption when enlarging the image.
How to add that caption to the click-enlarge link?
Just add the field file:current:descriptionto the link's ATagParams:
tt_content.image.20.1.imageLinkWrap.linkParams.ATagParams.dataWrap = class="{$styles.content.imgtext.linkWrap.lightboxCssClass}" rel="{$styles.content.imgtext.linkWrap.lightboxRelAttribute}" title="{file:current:description}"

Magento 1.9 Wysiwyg image URL problems on Product pages

I am try to set multiple Images in attribute using Wysiwyg Editor and try to get those images in product detail page but no success. and in view source I get something like this <img alt="" lighthouse.jpg"}}"="" productfeed="" wysiwyg="" src="{{media url="> so may be it will not allow me to get path in this format {{media url="lighthouse.jpg"}}. So how to get images which i have uploaded using Wysiwyg Editor on product page.
Finally I got solution,
If you are also facing same issue than use
$this->helper('cms')->getBlockTemplateProcessor()->filter($this->helper('catalog/output')->productAttribute($this->getProduct(),nl2br($_description), 'description') )
Instead of
$this->helper('catalog/output')->productAttribute($this->getProduct(),nl2br($_description),
'description')
where you want to show product description or any attribute along with it's images which you uploaded using Wysiwyg editor. for further detail go through this link