Joomla 5 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 29. Januar 2024 alle unsere Joomla Erweiterungen mit Joomla 5 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt nun auch eine eigenständige Dokumentation für Visforms für Joomla 4 und für Visforms auf Joomla 5

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

Wichtig Angaben für fast jede Frage:
V1: Welche Visforms-Version läuft?
V2: Welche Joomla-Version läuft?
V3: Welche PHP-Version läuft?

Aufgrund von Feiertagen und Urlaub ist bei Anfragen im Forum in der Zeit vom 20. Dezember 2024 bis zum 8.Januar 2025 mit verlängerten Antwortzeiten zu rechnen.

Hide ID in frontend data view

Mehr
10 Jahre 5 Monate her #681 von KompanHarder
Hide ID in frontend data view wurde erstellt von KompanHarder
Hallo Aicha,

I am back again and this time on your new Layout ;)

Is it possible to hide the ID column in the frontend data view?

thnaks and a nice evening
Arne

Mehr
10 Jahre 5 Monate her - 10 Jahre 5 Monate her #692 von Administrator AV
Administrator AV antwortete auf Hide ID in frontend data view
Hi Arne,

as you know it is possible to create a "show detail" view of the submitted form data in frontend. I thought it would be a good idea to place the link to this view (if it is enable) on a "small" field and choose to take the id field. That is, why the id field is displayed in frontend data list view. By now I know, that was not a very good idea, because it simple looks awful (and I hade more than one post about that). I will change this for certain. For now, if you do not use the "show detail" feature, you could follow my instructions below and I think this will solve your problem.

1) Create an override of the views template file.
Create a folder named html in the root of your template (if such a folder already exists that is fine too).
Inside the html folder create a folder named com_visforms
Inside the com_visforms folder create a folder named visformsdata
After that you have a path like yourTemplate/html/com_visforms/visformsdata
Go to components/com_visforms/views/visformsdata/tmpl and copy the file data.php into the newly created folder from above
For security reasons copy the index.html file (it is just an empty file) from components/com_visforms/views/visformsdata/tmpl too and put a copy in each folder which you have create (html, com_visforms, visformsdata in your template).

2) Adapt the override file
Open the copy of data.php in yourTemplate/html/com_visforms/visformsdata
Go to line 68 and remove the following 4 lines of code there
Code:
<th > <?php echo JHtml::_('grid.sort', 'COM_VISFORMS_ID', 'a.id', $listDirn, $listOrder, 'visformsdata.display'); ?> </th>

Go to line 113 (or somewhere very near by that line) and remove the following lines of code
Code:
<td> <?php if (isset($row->id)) { if (isset($this->form->displaydetail) == false || $this->form->displaydetail == true) { echo "<a href=\"".$link."\">".$row->id."</a>"; } else { echo $row->id; } } else { ?> &nbsp; <?php } ?> </td>
After that the id column in frontend data view will be deleted for every form.
These instructions will work for Joomla! 2.5 and Joomla! 3 with Visforms 2.0.3 respectively Visforms 3.0.0

When a future version of Visforms comes with an option to hide the id field and another solution for the link to the detail view, you can just remove the override files and everything works with the core layout again, so you do not temper with the core code of Visforms.

Data will still be orderd according to the id. But if you set the "column header" option of the menu item (tab Form Data Display Options) to "show" (which is the default) users can click into the column headers and the record sets will then be ordered by the column they click on. The individual sort order will be a feature of Visforms versions to come.

Kind 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 :-).
Letzte Änderung: 10 Jahre 5 Monate her von Administrator AV.

Mehr
10 Jahre 4 Monate her #732 von Administrator AV
Administrator AV antwortete auf Hide ID in frontend data view
Hi Arne,

I just release Joomla! 2.1.0 with many new features. Usually you should be notified in the backend of your website, that there is an update, but somehow I have trouble with Joomla 2.5.24 websites to find the update. I've not jet figured why, but I wanted to notify you because I fixed the data view in frontend!.

Please don't forget to remove the override for the data view which you may have created in your templates html folder (following my instructions). Otherwise you will wonder, why the new features don't work.

You can disable the display of the id column (it's a setting of the form, frontend view)
You can choose a field as default for ordering (is's a setting of the menu)
The date format error is fixed too.

Please note, that you will loose any changes you made to the visforms.css file and have to put them back into the css file after the update.

Kind 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 :-).

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum