plug in-Fileupload

lecoqray

New Member
Hello,

I migrated my site to j4.

As I was using Fabrik 3.10, I then placed Fabrik 4.0.Epsilon on the site.

I noticed a small problem with an element using the fileupload plug-in.

With Fabrik 3.10, when I clicked on the image placed on the detail, I had the image in a new window.

With J4 and Fabrik4.0, I have the image but on the active window and no longer on a new window.

In the list view> link target = New tab/window settings, I've got it right.

Could you tell me what I need to do to have this image in a new window?

Thanks in advance
lecoqray
 
Please excuse me, I am French-speaking.
The problem is for both, the list and the detail.
In the element, I chose the fileupload plugin and in the ''list view settings'', I updated the option ''link target'' = new tab/window. With f4 when clicking on the image, I have the original on the same window and not on a new tab. Under f3 it worked.
I hope I explained well.
Yours sincerely
lecoqray
 
I forgot to tell you that on the frontend I am on a different template from Cassiopeia.
Wouldn't the problem come from there?
lecoqray
 
I don't think so.
Can you post screenshots of your element settings of "List view settings" and of "Details"?
 
Here are the screenshots
 

Attachments

  • Capture d'écran 2023-10-24 094350.png
    Capture d'écran 2023-10-24 094350.png
    204.8 KB · Views: 16
  • Capture d'écran 2023-10-24 094547.png
    Capture d'écran 2023-10-24 094547.png
    195.4 KB · Views: 19
  • Capture d'écran 2023-10-24 094657.png
    Capture d'écran 2023-10-24 094657.png
    211.2 KB · Views: 14
  • Capture d'écran 2023-10-24 094732.png
    Capture d'écran 2023-10-24 094732.png
    188.4 KB · Views: 13
I thought I had answered but obviously iI didn't submit it.

If you want the "link target = New tab/window" to have an effect you must also set a custom link. But this is already the case in F3, so if it was working in F3 it seems you changed your settings.

You didn't give details to the "Detail" (=Affichier) tab, which is also important for display and links of the images.

(BTW: It may be easier if you switch your backend to English so that you and we have the same "naming" for setting options etc.)
 
@troester
Hello, I have provided you with all the screens concerning the element in English. For custom link in F3, nothing is included. Good to you. Lecoqray
 

Attachments

  • details2 2023-10-29 084037.png
    details2 2023-10-29 084037.png
    57.6 KB · Views: 6
  • details1 2023-10-29 083902.png
    details1 2023-10-29 083902.png
    61.1 KB · Views: 8
  • crop 2023-10-29 084553.png
    crop 2023-10-29 084553.png
    49.6 KB · Views: 8
  • details3 2023-10-29 084143.png
    details3 2023-10-29 084143.png
    26.5 KB · Views: 5
  • display1 2023-10-29 084341.png
    display1 2023-10-29 084341.png
    67.9 KB · Views: 7
  • display2 2023-10-29 084412.png
    display2 2023-10-29 084412.png
    17.1 KB · Views: 5
  • downloads1 2023-10-29 084834.png
    downloads1 2023-10-29 084834.png
    63.4 KB · Views: 6
  • downloads2 2023-10-29 084857.png
    downloads2 2023-10-29 084857.png
    12 KB · Views: 6
  • export 2023-10-29 084925.png
    export 2023-10-29 084925.png
    31.9 KB · Views: 8
  • list settings 2023-10-29 084237.png
    list settings 2023-10-29 084237.png
    56.9 KB · Views: 7
  • storage1 2023-10-29 084632.png
    storage1 2023-10-29 084632.png
    60.6 KB · Views: 6
  • storage2 2023-10-29 084704.png
    storage2 2023-10-29 084704.png
    24.3 KB · Views: 6
  • thumbnails1 2023-10-29 084524.png
    thumbnails1 2023-10-29 084524.png
    60.6 KB · Views: 6
I can't replicate.
It's the same behavious in F3 and F4: As long as you don't set a "Custom link" the "List settings/Target" doesn't matter.

With your settings in "Details" in F3 and F4 a click on the image (in list view and details view) opens the image on the same site (with Fabrik Options Javascript "Use Mediabox" = Slimbox) or in a popup (with Fabrik Options Javascript"Use Mediabox" = Mediabox).

Maybe you added a layout override in F3 to change this behaviour?
 
@troester
For certain elements, I added font-weight:bold;font-size:11pt in the custom-css.php, the element concerned is not included in this file.
path: /components/com_fabrik/views/details/tmpl/bootstrap/custom_css.php.
Now, if it is necessary to add in the custom link can you tell me what to indicate.
Lecoqray
 
@troester
For your information here is the site which under j3 allows you to have the image on a new tab.
https://www.scripophilybelgium.be.
You must choose >securities info>Database> click on advanced search then in the window choose ''element''= name of title, ''condition'' = contains, ''value''= citas.
You will have the list, you click on the image, it will appear on a new tab. In detail it's the same thing.
Now I already found a new solution if none is found.
Lecoqray
 
Your F3 site is showing target="_blank" for the image.
I assume you have an override for plugins\fabrik_element\fileupload\layouts\fabrik-element-fileupload-image.php (or you modified this file directly) in F3.
You can add a similar override in F4.
 
@troester
I will see, it is possible that the person, who helped me during the design of the database, to change a parameter to have a new tab. I'll tell you what, but for today I'm leaving the problem pending; I will see that tomorrow. Thanks again for all the info.
Yours sincerely
 
@troester
Hello
I found where the ''target_blank'' was'' which allowed the image to be on a new tab.
This parameter was in > template/templatename/html/layouts/com_fabrik/element/fabrik-element-fileupload-image.php (see templatej3 screen).
Due to the j3>j4 migration and following an override I had to delete the com_fabrik directory of the new template.
Now I have added in ''element-fileupload-image.php'' to line 29 (see fileupload-image screen). The addition is temporary, as the line could be modified during an update.
After all future updates (Joomla 5 and Fabrik zeta), I'll come back to modifying my template.
So the problem is solved.
Quick question: how do I close the post?
 

Attachments

  • fileupload-image 2023-10-30 120910.png
    fileupload-image 2023-10-30 120910.png
    96.6 KB · Views: 7
  • templatej3 2023-10-30 093356.png
    templatej3 2023-10-30 093356.png
    98.7 KB · Views: 7
your-template/html/... is the correct place to store the modified layout file, as you say correctly the modified original file will be overridden by updates.

Closing thread: Can you see
upload_2023-10-30_19-10-56.png
? Then uncheck "Open" (but I'm not sure about the access settings in this forum).
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top