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.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Hide ID in frontend data view

More
10 years 4 months ago #681 by KompanHarder
Hide ID in frontend data view was created by 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

More
10 years 4 months ago - 10 years 4 months ago #692 by Administrator AV
Replied by Administrator AV on topic 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 :-).
Last edit: 10 years 4 months ago by Administrator AV.

More
10 years 3 months ago #732 by Administrator AV
Replied by Administrator AV on topic 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 :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum