Search found 466 matches

by webform
Thu May 23, 2024 11:55 am
Forum: Modules/Add-Ons
Topic: NEWS MODULE - different output based on category
Replies: 15
Views: 569

Re: NEWS MODULE - different output based on category

Good to hear it's working for you. You can also use {cycle} to set your text alignment. But you maybe need to use the name attribute so they don't conflict with each other. Maybe something like this [untested]: <!-- Start News Display Template --> {foreach from=$items item=entry} <div class="ro...
by webform
Mon May 20, 2024 5:07 pm
Forum: Modules/Add-Ons
Topic: NEWS MODULE - different output based on category
Replies: 15
Views: 569

Re: NEWS MODULE - different output based on category

In fact, you could simplify it even more (based on your current layout): <!-- Start News Display Template --> {foreach from=$items item=entry} <div class="row{cycle values=' flex-md-row-reverse,'} justify-content-center no-gutters press-black mb-5 mb-lg-0"> <div class="col-lg-6">...
by webform
Mon May 20, 2024 3:47 pm
Forum: Modules/Add-Ons
Topic: NEWS MODULE - different output based on category
Replies: 15
Views: 569

Re: NEWS MODULE - different output based on category

If you just want to make an even/odd layout, you don't need to link your news articles to changing categories. Instead, do this: <!-- Start News Display Template --> {foreach from=$items item=entry name=foo} {if $smarty.foreach.foo.iteration is even} My Even News Layout Code {else} My Odd News Layou...
by webform
Tue Apr 30, 2024 12:52 pm
Forum: Modules/Add-Ons
Topic: LISE categories not working when LISE Instance tag present
Replies: 2
Views: 12794

Re: LISE categories not working when LISE Instance tag present

Thanks! That works perfectly.

Every day is an opportunity to learn something new. Although it can be a frustrating experience. ;D
by webform
Tue Apr 30, 2024 12:41 pm
Forum: Modules/Add-Ons
Topic: LISE categories not working when LISE Instance tag present
Replies: 2
Views: 12794

LISE categories not working when LISE Instance tag present

A strange problem I don't understand why is happening. Maybe someone can explain what is going wrong? If I have both categories and another LISE Instance tag in a LISE summary template, categories stop working. However the first iteration in the loop does output the category. My summary template: {i...
by webform
Mon Apr 29, 2024 9:39 am
Forum: Modules/Add-Ons
Topic: LISE Smarty tag in an UDT
Replies: 4
Views: 753

Re: LISE Smarty tag in an UDT

Finally succeed in finding the error in the php error log: PHP Notice: Trying to access array offset on value of type null in /lib/smarty/sysplugins/smarty_resource_recompiled.php(52) : eval()'d code on line 18\n My UDT set as a LISE PreItem Save: $item = $params['item_object']; $id = $item->project...
by webform
Fri Apr 26, 2024 2:05 pm
Forum: Modules/Add-Ons
Topic: LISE Smarty tag in an UDT
Replies: 4
Views: 753

Re: LISE Smarty tag in an UDT

Doh! I totally forgot to check the error log. Sadly it didn't contains much info, so it's no help at all:

Code: Select all

[26/Apr/2024:15:36:59 +0200] "POST /admin/moduleinterface.php" 500
by webform
Fri Apr 26, 2024 1:42 pm
Forum: Modules/Add-Ons
Topic: LISE Smarty tag in an UDT
Replies: 4
Views: 753

LISE Smarty tag in an UDT

I have an UDT which gets data from one LISE Instance while presave to another LISE Instance, but it's not working (Server Error 500): $item = $params['item_object']; $id = $item->project; $smarty_data = "{LISEProjects action='detail' item='".$id."' template_detail='foo'}"; //Save...
by webform
Thu Mar 21, 2024 2:12 pm
Forum: Modules/Add-Ons
Topic: Passing Default values to FormBuilder Multiselect
Replies: 7
Views: 43776

Re: Passing Default values to FormBuilder Multiselect

After thinking about it a bit more, I have managed to pass an array of values to a multiselect field in FormBuilder. I converted my selected values to an array and then FormBuilder wanted to accept the data. {$title = $item->title} {assign var='category' value=','|explode:"{$item->category}&quo...
by webform
Thu Mar 21, 2024 8:43 am
Forum: Modules/Add-Ons
Topic: Passing Default values to FormBuilder Multiselect
Replies: 7
Views: 43776

Re: Passing Default values to FormBuilder Multiselect

Normally I use the default template, where I adapt it to be usable with Bootstrap. And it works fantastic in most cases, but in this case I will probably have to make a custom html template as you suggest, so that I can get many select values into a multiselect field. (I'm building a frontend editin...
by webform
Wed Mar 20, 2024 9:07 pm
Forum: Modules/Add-Ons
Topic: Passing Default values to FormBuilder Multiselect
Replies: 7
Views: 43776

Re: Passing Default values to FormBuilder Multiselect

Yeah, i need to take my thinking hat on and look into if i could recreate the multiselect field manually in the form template, so i can preselect the multiselect values i need :-\
by webform
Wed Mar 20, 2024 6:53 pm
Forum: Modules/Add-Ons
Topic: Passing Default values to FormBuilder Multiselect
Replies: 7
Views: 43776

Re: Passing Default values to FormBuilder Multiselect

I use the fields ID to pass default values like value_fld12='value1,value,2,value3' , where the field is a Multiselect Field Type. And default value IS passed if there is only one value but not if there is multiple values, like in the example above. So it may not work to pass multiple values to a Mu...
by webform
Wed Mar 20, 2024 11:27 am
Forum: Modules/Add-Ons
Topic: Passing Default values to FormBuilder Multiselect
Replies: 7
Views: 43776

Passing Default values to FormBuilder Multiselect

I'm trying to pass default values to a FormBuilder Multiselect field and it works just fine with a single value but not with multiple values. {FormBuilder form='MyForm' value_TITLEFIELD='My Title' value_MULTISELECTFIELD='value1,value,2,value3'} The help says "It may not work for more exotic fie...
by webform
Tue Mar 12, 2024 10:13 am
Forum: Modules/Add-Ons
Topic: LISE Custom Search Template
Replies: 2
Views: 44002

Re: LISE Custom Search Template

Thank a lot Velden, that did the trick and my actionid is now consistent through all fields. My final custom search template: {$form_actionid = $actionid} <div id="{$modulealias}_search" class="card bg-contrast-0 rounded-6 border-0 shadow"> <div class="card-body p-5"> {...
by webform
Mon Mar 11, 2024 11:39 am
Forum: Modules/Add-Ons
Topic: LISE Custom Search Template
Replies: 2
Views: 44002

LISE Custom Search Template

I am confused about how to create a custom search template. I have a number of select fields, but after each select the actionid for the subsequent fields changes and the search fails. Here is an example of a custom search template: <div id="{$modulealias}_search" class="card bg-contr...

Go to advanced search