News:

Dear jDownloads users, There is currently no Joomla 6 compatible version available. However, we are working on it and hope to release it shortly.

Main Menu
Support-Forum

Content Plugin Button Broken in Front End

Started by ghicar, 22.01.2026 10:20:28

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

ghicar

Button - jDownloads Content Ver 4.0 (type: editors-xtd) that comes packaged with jDownloads 4.0.49 is very broken when used in the front end. It works OK when used in the backend.

Whilst front end editing an article when you click the Download button you see the dialog with a few most recent downloads listed. But if you navigate to the next page or try to search for downloads the view switches to my main "jDownloads - List All Categories" menu item.

Environment:
jDownloads 4.0.49
Joomla: 5.4.2
PHP: 8.4.16
Site Template: Cassiopeia (that comes with Joomla)
Editor: JCE: 2.9.97 (free)

100% reproducible

  •  

ghicar

I don't know if this helps but looking at the queries made from the initial click of the "Download" editor and page 2 from the navigation for both frontend and backend editing of an article.

front end initial Download click:
QuoteGET   SITEURL/index.php?option=com_jdownloads&view=downloads&layout=modal&tmpl=component&f5ba...fa=1&editor=jform_articletext

backend initial Download click:
QuoteGET SITEURL/administrator/index.php?option=com_jdownloads&view=downloads&layout=modal&tmpl=component&23f1...e4=1&editor=jform_articletext

frontend selecting the second page from the navigation
QuoteGET SITEURL/index.php/component/jdownloads/downloads/all?layout=modal&tmpl=component&Itemid=1632&start=20

backend selecting the second page from the navigation
QuotePOST SITEURL/administrator/index.php?option=com_jdownloads&view=downloads&layout=modal&tmpl=component&function=jSelectDownload&23f1...e4=1&editor=jform_articletext
with POST data:
filter[search]
list[fullordering]=a.id DESC
list[limit]=20
filter[published]
filter[featured]
filter[language]
filter[level]
limitstart=20
task
boxchecked=0
forcedLanguage
23f1...e4=1

So they are quite different on the when moving to the second page in the modal.
  •  

ColinM

Hi,
Did you set 'Enabe Plugin Locally' to Yes? Also which layout did you choose in the Default Layout parameter?

Colin
Colin M
  •  

ghicar

Hi Colin

Thanks for taking a look at this.
  • Yes I had "Enable Plugin locally" set to Yes.
  • In the default layout I was using a custom layout, but have just switched to a standard supplied default template of "Files link only v3.9" and get the same issue.

This used to work fine but its been a while since I have tried from the front end to add a download link to an article from the editor download button that wasn't on the first page of the modal, so I don't know when it got broken.  I will have updated Joomla 5 and jD a few times in between.

The jD installer will not let me install earlier versions to try to zoom in on what's changed.

Is it working ok in your test environments, if yes it gives me some hope that some config change might fix it?
  •  

ColinM

Hi
This does seem strange.  I have not been able to reproduce. Also I use the Pro version of JCE.

There are two articles on the content plugin in the Modules & Plugin section of the Documentation.
Additional Aspects of Using the  the Content Plug
Introduction to jD Contentin Articles etc

Direct Links to these are given below
https://www.jdownloads.net/documentation?view=article&id=119&catid=30
https://www.jdownloads.net/documentation?view=article&id=269&catid=30

Colin
Colin M
  •  

ghicar

#5
Hi Colin

So for me, the content plugin is fully working when used in a backend article edit. But in the front end article edit, it opens correctly and lists the first page of downloads that I can select from.  However if I go to the bottom of the modal and move to the next page, then that is when the view in the modal switches to a categories list. The same happens if I apply a filter.

Looking at the HTML src that is generated when the modal is first displayed after clicking the download button in the editor, I see the following for page 2 (and similar for other pages):

<li class="page-item">
<a aria-label="Go to page 2" href="/index.php/component/jdownloads/downloads/all?layout=modal&amp;tmpl=component&amp;Itemid=1632&amp;start=20" class="page-link">2</a>
</li>

It would be good to know what they look like from your test environment.   Itemid=1632 referred to in the href is the #__menu.id for the website home page.
  •  

ghicar

As a workaround until we get to the bottom of this, I have added {file_id} to my downloads layout so that I can see the file id and then rather than using the editor Download button we can type in the code {jd_file file==nnn} manually.
  •  

Arno

Hi,
I will check this in the next days.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ghicar

The environment experiencing the issue is hosted on linux with several other 3rd party extensions and has undergone many updates to both Joomla and 3rd party extensions.

So I have installed XAMPP on a local Windows 11 PC and a fresh install of Joomla 5.4.2 and only installed plugins JCE(free) and JDownloads(4.0.49).

I made minimal changes to the jDownloads config to allow use of the content plugin and the downloads editor button.

I see the exact same problem, ie
  • I edit an article in the front end
  • Click the "download" button which opens up a modal showing the first 20 downloads.
  • If I move to page 2, or if I select some filters then it switches to a categories view rather than the all downloads
view.

  •