To be noticed that we use github for question/issues..  Issues


Table CSS in Attachments

Question :Hello - do you have any templates for Table CSS in attachments
I want to be able to control headings, the table etc

Answer:

  1. Attachments lists are tables which have class 'attachmentsList' by default (but this can be overridden using the parameters 'attachments_table_style'). So with the css class for the header you can define cascading css rules that only affect attachments tables.
  2. You can also override the attachments template if you want to change the layout completely. However you will have to look out for possible changes in the future that might break your new template.

Problem with the update of attachment

Question :

I’ve been using your attachments extension for years… since Joomla 2.5.  It’s been great!

I finally got around to updating for Joomla 4 and installed V4.04 into an upgraded environment.  I still have the old 3.x version installed but disabled as I have dozens of articles with attachments that I want to preserve with the update. 

The installation appears to go smoothly and has a whole set of “success” messages for all of the extensions it’s installing.   However, at the very end of the installation process I get:  0 Class "JRequest" not found

It completely corrupts the Admin portal and making it unusable as it can’t get past it.  

 

attachment_install_issue.png

 

It also affects the front end site if I click on one of the articles.    0 Call to undefined method Joomla\CMS\Factory::getURI().

Any advice?

Answer:

During the upgrade to attachments v4.0.4 all the parts get upgraded but the plugin framework is now placed in a new directory leaving the old one (v3) behind. You should probably have a “plugins/attachments/ attachments_plugin_framework” in your site which you can just rename so joomla doesn’t find it’s code. Generaly these are the steps that I have found to work without a problem to perfrorm the upgrade from attachments 3 to attachments 4: - take a backup - remove "Attachments - Plugin Framework" before upgrading to Joomla 4. If the site is already migrated to Joomla 4, you should first remove the folder plugins/attachments/attachments_plugin_framework and then remove it from the backend. - after upgrading the site to Joomla 4 install attachments 4.0.x - check if all parts of the Attachment extension are enabled

 


Open attachment in new  - _blank?

Hello! I am using "attachments-4.0.4" Joomla5 and I wonder if it is possible to configure so that the file shown in the article can be displayed with content in new window - _blank?

Answer:

you can configure it in the component options. Go to Components -> Attachments -> Options -> Advanced -> Open in new window

 


Add attachment button not present in front-end editor

Hi,i have a user group which can add/edit articles in a News category from the front-end but the Add attachment button in CMS Content dropdown is not showing like in the administrator page.

attachment_add_button1.png

What type of permission should be set?

Answer:

Hello did you change this parameter Hide 'Add Attachments' link
Also please check the permissions for attachments

attachments_create_rights.png

To see the button in editor you need

  • to enable the plugin "Editor Button - Add Attachment"
  • to have an editor configured for the front-end, mine is JCE

You will the see the button Add Attachment

attachments_add_button.png