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.

Numbering of results instead of showing ID?

More
6 years 5 months ago #4969 by aschuch
Hi,
I would like to show the data base entries in the frontend with numbers, instead of IDs. Why? Because the IDs don´t show the real amount of entries. If you delete an entry, the ID is not assigned anymore...

Is that possible? Thx

More
6 years 5 months ago #4970 by aschuch
Replied by aschuch on topic Numbering of results instead of showing ID?
In the meanwhile I found the setting for "Display Counter Column" in the PRO-version, which I set to YES.

However, the numbers are written into the first column, which is "eMail" in my case.
Also, the column titles are shifted by one column to the right.

Is that a bug?

Thanks.

More
6 years 5 months ago #4971 by Administrator AV
Replied by Administrator AV on topic Numbering of results instead of showing ID?
Hi,

I added this feature just to the latest version of the Visforms subcription.
There are a lot of different views that can display data and although I thought I had tested them all, it could be, that I have missed something on one of the views.

Can I have a link to the data views please?
If it is a bug it should be found and fixed easily.

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
6 years 5 months ago #4973 by Administrator AV
Replied by Administrator AV on topic Numbering of results instead of showing ID?
Hi,

ok, yes this is a bug.
If you do not enable "Display Detail" the columns are shifted. With "Display Detail" set to yes, everything is fine.
Obviously I have not tested with that specific set of settings....

I'll post you a fix as soon as possible.

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
6 years 5 months ago #4974 by Administrator AV
Replied by Administrator AV on topic Numbering of results instead of showing ID?
Hi,

please open the file components/com_visforms/views/visformsdata/tmpl/data.php
(Make a copy of the original file first, just in case....)

at line 63 ff you will find the following code
Code:
$n=count( $this->fields ); if (!(isset($this->form->displaydetail) == false) && $this->form->displaydetail == true) { ?> <th class="data-id"><?php if (!empty($this->form->displaycounter)) { echo '<th></th>'; }

Please replace it with
Code:
$n=count( $this->fields ); if (!empty($this->form->displaycounter)) { echo '<th></th>'; } if (!(isset($this->form->displaydetail) == false) && $this->form->displaydetail == true) { ?> <th class="data-id"><?php

Please make sure, that you replace exactly those 6 line!

You can see, basically the code
Code:
if (!empty($this->form->displaycounter)) { echo '<th></th>'; }
is moved out of that if statement.

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
6 years 5 months ago #4975 by aschuch
Replied by aschuch on topic Numbering of results instead of showing ID?
Hi Aicha,
I am not a programmer, but I can do copy & paste ;)
However, looking at the code, I think something is wrong. At least the <?php tag needs to be closed with an > ?

However - I did as you said regarding "enabling Details" to yes, it is working now and its OK for me to have that additional column with link to a detail page.

I guess you will release the code fix with next update...

Thanks, Alex

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum