Hallo,
mir ist ein Fehler aufgefallen, welcher nur im Frontend Auftritt.
Im konkreten Fall habe ich über das Joomla-Frontend einen Artikel erstellt bzw. bearbeitet und möchte dort nun mit Hilfe des jdownload-Plugin einen Download einfügen.
Es öffnet sich die entsprechende Maske mit der Auflistung von Downloads. Diese können auch Problemlos ausgewählt und eingefügt werden.
Möchte ich aber im Suchfeld nach einem bestimmten Download suchen, dann erfolgt ein Fehler.
Im Backend tritt der Fehler in der Artikelbearbeitung nicht auf!
Bei mir ist das LOGA-Feature "Smart Search" aktiviert und dort wurde der Index erstellt, aber ich habe keine Filter gesetzt, alles Standard-Einstellungen.
Können Sie das bitte mal prüfen?
Version: jdownloads 4.0.29
Grüße Christian
Christian,
I am just about to look into this - have already tested the Content Plugin but not with the search you mention.
What is LOGA-Feature "Smart Search" ?
I used Google translate to read your message
Colin
--------------------------------------------------
Ich bin gerade dabei, mich damit zu befassen. Ich habe das Content-Plugin bereits getestet, aber nicht mit der von Ihnen erwähnten Suche.
Was ist die LOGA-Funktion ,,Smart Search"?
Ich habe Google Translate verwendet, um Ihre Nachricht zu lesen
Hello Colin,
Sorry, i mean the joomla component smarth search. But i am Not Sure If there is a Context.
Thank you.
Greetings Christian
Christian,
It does work ok but Articles Search uses Smart Search by default. So you need to index the Downloads with Smart Search indexer.
Need to ensure jDownloads Content Button Plugin is enabled in the editors-xtd type as well as the Content - jDownloads plugin in the content type.
I am writing notes for an extra article assuming using JCE editor
Best wishes
Colin
Hi Colin,
I use the default editor TinyMCE.
The plugin works there too, it opens yes!
Only when I use the search box in the plugin window appears an error, and only in the frontend, not in the backend.
In the Backend ist all fine.
Best wishes.
Christian
Christian,
Have you 'Indexed'?
Go to the Smart Search Component- click on Index then on Index at top left - it should tell to wait whilst it indexes.
The Button should then work in the front end
Colin
PS found a link to an old set of documentation but it still applies
https://docs.joomla.org/Smart_Search_quickstart_guide
Hi
Think the xtd-editor button for jD only works in front end if you are logged on as Super User
Could you please confirm so we can locate the bug!!!!
Colin
"xtd-editor button for jD only works in front end if you are logged on as Super User" - No, i can't confirm that. The Button works, i See my Downloads and i can select them. Only the search has a Problem, but just in the frontend. I Work as Superadmin.
Hi
Because you are editting as SuperUser in Front End then that is when the button works OK :) :)
Understand that it is the Search that is failing - I have reproduced the problem so will investigate further.
Will start a new report specific to the search part
"Search fails using Download button".
Colin
When using the extended editor Download button if you try to seach for a Download then it fails
with a 'Requested Page can't be found' message as below
This is a direct follow on from
https://www.jdownloads.com/forum/index.php?topic=14046.msg50046#msg50046
Colin
-------------------------------------------------------------------
An error has occurred while processing your request.
You may not be able to visit this page because of:
an out-of-date bookmark/favourite
a mistyped address
a search engine that has an out-of-date listing for this site
you have no access to this page
Go to the Home Page
If difficulties persist, please contact the website administrator and report the error below.
404 View not found [name, type, prefix]: featured, html, site
I looked into this further with the knowledge that the filter setting in the jD content editor button works in the backend and not the frontend when editing articles.
I noticed that, from the front end article editing, when you click the downloads button to open up the modal dialog to select a file, the dispatch() function in
components/com_jdownloads/src/Dispatcher/Dispatcher.php is called with $this->input->get('view') set to "downloads", but when you then select any filter from a drop down or search field the same dispatch() function is called $this->input->get('view') set to "article".
I did an experiment of changing the value from "article" to "downloads" by adding
if( $this->input->get('view') === 'article')
{
$this->input->set('view', "downloads");
}
at the start of the dispatch() function in components/com_jdownloads/src/Dispatcher/Dispatcher.php.
After doing this the filters can be used in the front end as expected.
This is obviously a hack, but suggests something needs to be changed in the jD content button config or code to use "downloads" rather than "article" from the outset ?
ghicar
Thanks -very helpful
Colin
Should be fixed with 4.0.30.