Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Plugin Data View string syntax

More
5 years 9 months ago #5662 by jch
Plugin Data View string syntax was created by jch
I want to display my data view list with the newest entry first instead of last (default) so the user sees his latest entry at the top of the list when he sends the form and is redirected.

I assume that including the "sortdirection" parameter = "desc" will accomplish this. Is that correct?

What is the proper syntax for including this parameter in the plugin string? Does it matter where in the string it is inserted?

An example would be helpful.

Cordially,
jch

More
5 years 9 months ago #5664 by Administrator AV
Replied by Administrator AV on topic Plugin Data View string syntax
Hi,

on the demo page ( www.vi-solutions.de/en/documentations/vi...-vfdataview-examples ) there is actually an example. (The one in the middle, which is named "Display the newest form submission record set". This example is achieved, by ordering the record sets descending according to their creation date and then limit the view to exactly one record set.

You need one plugin parameter to name the field by which the record sets are sorted and one for the direction

"sortorder":"created","sortdirection":"desc"

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
5 years 9 months ago #5665 by jch
Replied by jch on topic Plugin Data View string syntax
Thank You. I read the documentation several times but somehow missed the example.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum