Search found 67 matches

by pierrepercee
Wed Nov 24, 2021 10:30 am
Forum: Modules/Add-Ons
Topic: Captcha plugin
Replies: 2
Views: 161

Re: Captcha plugin

Hello DIGI3,

Thanks for your answer, it is important to know that the module will be updated again.
by pierrepercee
Sat Nov 20, 2021 9:21 am
Forum: Modules/Add-Ons
Topic: Captcha plugin
Replies: 2
Views: 161

Captcha plugin

Hello, I know Captcha plugin is marked as stale. With PHP 7.4 there's a notice error. "Trying to access array offset on value of type null in /home/tedsi/modules/Captcha/lib/class.plugins_ops.php" I inspected the line ... but hey eh ::) Anyone knows if this module is definitely discontinued or if it...
by pierrepercee
Fri Oct 29, 2021 11:06 am
Forum: Modules/Add-Ons
Topic: Call Lise instance in a page template as a content block
Replies: 3
Views: 170

Re: Call Lise instance in a page template as a content block

Hello Velden, Thanks to your help I was even able to display a detailed contact list in a LISE detail template. To do this, all you have to do is add an element type field of a LISE instance. (select alias as identifier). Then in the detail template: {elseif $fielddef.name == 'mycontactchoice'} {ass...
by pierrepercee
Thu Oct 28, 2021 6:24 pm
Forum: Modules/Add-Ons
Topic: Call Lise instance in a page template as a content block
Replies: 3
Views: 170

Re: Call Lise instance in a page template as a content block

Velden,

You save my week, really ! Many, many thanks !

The solution is very clever. I was miles away



It works perfectly ! Well done !

You like wine ?
by pierrepercee
Thu Oct 28, 2021 4:41 pm
Forum: Modules/Add-Ons
Topic: Call Lise instance in a page template as a content block
Replies: 3
Views: 170

Call Lise instance in a page template as a content block

Hello, I have an instance Lise that contains items (with fields like last name, first name, email, profession, department, etc.). I would like a user (backend) editing a page to be able to select an item from this instance and then that displays details item view in the page. In effect, this amounts...
by pierrepercee
Wed Sep 15, 2021 6:53 pm
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Velden,

You 'are right for an item. In my case it's to access field value... :)
by pierrepercee
Wed Sep 15, 2021 4:42 pm
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Velden, All is perfect! Done ! yes ! Many thanks ! The response was getOne($querya) It returns a result (string), not an array... Each time I save an item it generate a jpg thumbnails with imagick based on a sendfield (pdf). Then it fill the value from another field(type inputtext) with the path to ...
by pierrepercee
Wed Sep 15, 2021 3:13 pm
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Velden, I report a bug... You can get params like name, alias etc... but not item_id when you use an event handler. I am tired, I think. A little rest, no doubt...Every time I solve a problem, it's to meet another one that is even more difficult :-\ Last, in my UDT I try to get item_id via sql reque...
by pierrepercee
Wed Sep 15, 2021 10:48 am
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Velden,

I think it's a LISE bug. When used with event handler you can't get item_id param. :(
by pierrepercee
Wed Sep 15, 2021 8:55 am
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Velden, Really many thanks.... I'm almost done... Last little difficulty I try to get 'item_id' in my UDT. I try hundred solution, nothing seems to work.... In summary template it's trivial : {$item->item_id} but in UDT... $obj = $params['item_object']; $fd = $obj->fielddefs['sendpdf']; $fd = $fd->G...
by pierrepercee
Tue Sep 14, 2021 2:09 pm
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Velden, don't think it's a good idea to generate the thumbnails with loading front-end page for many reasons. If there's 200 items (pdf>8mo) and somebody forget to load front page anytime he creates an item... I think it's more efficient to create a plugin dealing with the database : -Add an inputte...
by pierrepercee
Tue Sep 14, 2021 8:58 am
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Velden, I'm sure in my udt I test $filename = $ft; if (file_exists($filename)) {$im->readImage($ft);} else {echo "No uploads";} It returns "No uploads".... This is not the expected behavior. Record the item then call the udt. Obviously there, the correct recording of the item is disturbed by the cal...
by pierrepercee
Tue Sep 14, 2021 7:59 am
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Velden,

Code: Select all

$fd->GetImagePath(false)
Same thing... The file is not uploaded. I get the correct path (verified using echo in udt).
If I try with a minimalist udt

Code: Select all

echo "youpi!";

Then I can use Event Manager.There's no problem, the file is well uploaded.
I'm lost.... :(
by pierrepercee
Tue Sep 14, 2021 6:59 am
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Velden, It works like a charm... :) There is unexpected behavior. If I use event manager ->PostItemSave then the pdf file (my custom field (send file)in Lise) is not uploaded. My UDT: $im = new Imagick(); $obj = $params['item_object']; $fd = $obj->fielddefs['sendfile']; $ft = 'uploads/batimac/'.$fd-...
by pierrepercee
Mon Sep 13, 2021 4:11 pm
Forum: Modules/Add-Ons
Topic: Pass param to Custom Field by udt in LISE
Replies: 17
Views: 961

Re: Pass param to Custom Field by udt in LISE

Many thanks Velden, I have tested with Event Manager. It works but I don't know how to get smarty value in my UDT. $im = new Imagick(); $im->setResolution(72,72); $im->setBackgroundColor('white'); $im->readImage(xxxx); For readImage (last line) I must get the complet path for the pdf file I have pos...

Go to advanced search