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?

Data view plugin trouble

More
5 years 8 months ago #6127 by smpSami
Data view plugin trouble was created by smpSami
Hello,

I'm have two problems with plugin data view (in an article). First is the detail view icon. I can't get it to show. It only shows the id number as a link. The second problem is that the maxtextwidth parameter does nothing. In frontend view there is no problem

This is the code script i have:
Code:
{vfdataview}{"formid":"7","fieldlist":"117,118,121","sortorder":"117","sortdirection":"desc","display_num":"5","show_page_heading":"false","displaydetail":"true","viewclass":"jlist-table","displayid":"false","maxtextlength":"200","displaycounter":"true","fieldselect":{"114":"testikohde"}}{/vfdataview}

This is what it looks like in frontend view and what I would want it to look like in content plugin data view:


And this is what it looks like now:

More
5 years 8 months ago #6128 by Administrator AV
Replied by Administrator AV on topic Data view plugin trouble
Hi,
I will try to set up a test environment and check, if I can reproduce the problem.
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 8 months ago #6129 by Administrator AV
Replied by Administrator AV on topic Data view plugin trouble
Hi,
ok. I think you actually found two things that do not work as they should. Sorry for that. I will provide bugfixes with the next Visforms/Subscription release.

If you want to, you can try to apply the fixes right now.

1. Textlength is does not work.

Open the file plugins\content\vfdataview\tmpl\default.php

Replace the code at line 102
Code:
echo $texte = JLayoutHelper::render('visforms.datas.fields', array('form' => $this->form, 'field' => $rowField, 'data' => $row, 'text' => $texte, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-f' . $rowField->id, 'extension' => $this->extension, 'view' => 'list', 'makeLocationUnique' => true, 'viewType' => $this->viewType), null, array('component' => 'com_visforms'));

with the following code
Code:
echo $texte = JLayoutHelper::render('visforms.datas.fields', array('form' => $this->form, 'field' => $rowField, 'data' => $row, 'text' => $texte, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-f' . $rowField->id, 'extension' => $this->extension, 'view' => 'list', 'makeLocationUnique' => true, 'viewType' => $this->viewType, 'pparams' => $this->pparams), null, array('component' => 'com_visforms'));

2. Icon not showing up
Open the file components\com_visforms\models\visformsdata.php

Replace the code at line 562
Code:
$form->$plgParamName = (($form->$parameter == "1" || $form->$parameter == "2" || $form->$parameter == "3")) ? true : false;

With the following code
Code:
$form->$plgParamName = ($this->pparams[$parameter] == "true" && ($form->$parameter == "1" || $form->$parameter == "2" || $form->$parameter == "3")) ? true : false;

Or for this 2. Problem, as a workaround, you could just set the form option "Display Id" to "don't" show. But this will, of course effect other data views for that form as well.

Please don'f forget to make a copy of the files, before you make changes, just in case....

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 :-).
The following user(s) said Thank You: smpSami

More
5 years 8 months ago #6130 by smpSami
Replied by smpSami on topic Data view plugin trouble
Hello!

Both fixes worked well! Thank you!

More
5 years 8 months ago #6131 by Administrator AV
Replied by Administrator AV on topic Data view plugin trouble
Hi,
thanks a lot for letting me know that they work!
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