Search found 471 matches

by webform
Wed Jan 24, 2024 6:17 pm
Forum: Modules/Add-Ons
Topic: ECB2 (Enhanced Content Blocks) Support Page
Replies: 27
Views: 8613

Re: ECB2 (Enhanced Content Blocks) Support Page

Hmm! I'm not getting any result if i search for any words present in a group field. I have a group set up like this in my template: {content_module module='ECB2' field='group' block='section01_rows' layout=block label='Rows' assign='section01_rows' sub1_field=textinput sub1_name=title sub1_label='Ti...
by webform
Wed Jan 24, 2024 2:18 pm
Forum: Modules/Add-Ons
Topic: ECB2 (Enhanced Content Blocks) Support Page
Replies: 27
Views: 8613

Re: ECB2 (Enhanced Content Blocks) Support Page

Hi Chris,

Am I mistaken, you can't use the Search module on content fields in ECB2 Groups?

However, I do get a search result on content in regular ECB2 content fields.
by webform
Wed Dec 13, 2023 2:02 pm
Forum: Modules/Add-Ons
Topic: LISE and custom field from smarty
Replies: 6
Views: 11628

Re: LISE and custom field from smarty

For future references LISE Instance Category Template: {* LISE Categories *} {$opts[''] = '- None -'} {foreach $categories as $category} {$opts[$category->category_id] = $category->name} {/foreach} {$opts = $opts scope = parent} Other LISE Instance "Add Field Definition => Custom Field From Sm...
by webform
Wed Dec 13, 2023 1:55 pm
Forum: Modules/Add-Ons
Topic: LISE and custom field from smarty
Replies: 6
Views: 11628

Re: LISE and custom field from smarty

Thanks! It's much shorter and sweeter than my take. ;D

One thing though. The space results in a " too many shorthand attributes" error.:

Code: Select all

{$opts [''] =  '- None -'} change to {$opts[''] =  '- None -'}
by webform
Tue Dec 12, 2023 4:46 pm
Forum: Modules/Add-Ons
Topic: LISE and custom field from smarty
Replies: 6
Views: 11628

Re: LISE and custom field from smarty

Thanks a lot for pointing me in the right direction. Intialy it didn't work because of a" too many shorthand attributes" error. But after searching some more on arrays i came up with a solutions thats working: {$cat_ids[] = null} {$names[] = '- None -'} {foreach $categories as $category} {...
by webform
Tue Dec 12, 2023 1:58 pm
Forum: Modules/Add-Ons
Topic: LISE and custom field from smarty
Replies: 6
Views: 11628

LISE and custom field from smarty

I'm trying to have a dropdown in a LISE Instance with categories from another LISE Instance, but i can't seem to figure out if it's possible with field type "Custom field from smarty"? The help description says: {$opts = [1 => 'one', 2 => 'two']} {html_options options=$opts selected=$sel} ...
by webform
Mon Dec 11, 2023 3:44 pm
Forum: Modules/Add-Ons
Topic: ECB2 (Enhanced Content Blocks) Support Page
Replies: 27
Views: 8613

Re: ECB2 (Enhanced Content Blocks) Support Page

Thanks! I was not trying to do something that advanced, only to load different layout parts depending if a group has any rows. And the default way works just fine. I've just made a mistake in my if statement. {if !empty($section01_rows->sub_fields)} {include file='cms_template:templatepart_section01...
by webform
Mon Dec 11, 2023 12:32 pm
Forum: Modules/Add-Ons
Topic: ECB2 (Enhanced Content Blocks) Support Page
Replies: 27
Views: 8613

Re: ECB2 (Enhanced Content Blocks) Support Page

I can test if an ECB" Group has data with

Code: Select all

{if !empty($test20->sub_fields)}{* test if any data exists *}
But if i have multiple Groups, how do i test if a groups subfields is not empty?

Edit: Doh! :-[
!empty() works just fine with multiple Groups. I've messed up my if/else statements.
by webform
Sun Nov 26, 2023 5:54 pm
Forum: Modules/Add-Ons
Topic: Lise detailpage not working after update
Replies: 2
Views: 4529

Re: Lise detailpage not working after update

I can confirm this behavior.
I've filed a bug report: http://dev.cmsmadesimple.org/bug/view/12668
by webform
Sat Oct 07, 2023 3:06 pm
Forum: Modules/Add-Ons
Topic: Passing Default Values to FormBuilder Text Area
Replies: 16
Views: 8272

Re: Passing Default Values to FormBuilder Text Area

I have signed up to the CMSMS Patreon as a thank you for the ongoing help this community and forum provide.
https://www.cmsmadesimple.org/donations
by webform
Sat Oct 07, 2023 2:47 pm
Forum: Modules/Add-Ons
Topic: Passing Default Values to FormBuilder Text Area
Replies: 16
Views: 8272

Re: Passing Default Values to FormBuilder Text Area

You are a lifesaver!!!
It was precisely a strip tag that caused the trouble. It hadn't even crossed my mind to look at strip tags.
Thank you so much for pointing me in the right direction and saving the day. ;D
by webform
Sat Oct 07, 2023 2:08 pm
Forum: Modules/Add-Ons
Topic: Passing Default Values to FormBuilder Text Area
Replies: 16
Views: 8272

Re: Passing Default Values to FormBuilder Text Area

Thanks to JoMorg's information, i've done some additional testing and discovered it works on the CMSMS Default Theme but not on the Theme i'm implemented on my working site. Can't figure out what is removing the line breaks in my theme as i can't see anything out of the ordinary in the inspect css c...
by webform
Fri Oct 06, 2023 12:52 pm
Forum: Modules/Add-Ons
Topic: Passing Default Values to FormBuilder Text Area
Replies: 16
Views: 8272

Re: Passing Default Values to FormBuilder Text Area

Thanks for the suggestion. Alas output is the same result with all text in one line. I've also tried to change my textarea in LISE and FormBuilder to wysiwyg, but then the textarea displays p and br tags as plain text and ignoring the multiline content. I'm trying to do a frontend edit form for my L...
by webform
Fri Oct 06, 2023 11:44 am
Forum: Modules/Add-Ons
Topic: Passing Default Values to FormBuilder Text Area
Replies: 16
Views: 8272

Re: Passing Default Values to FormBuilder Text Area

I have a LISE Detail Template where i test output: {$foo = $item->fielddefs.description.value} <form> <textarea name="description" id="description" cols="40" rows="5">{$foo}</textarea> </form> My first intial LISE Detail Template was: {$title = $item->title} {...
by webform
Fri Oct 06, 2023 11:15 am
Forum: Modules/Add-Ons
Topic: Passing Default Values to FormBuilder Text Area
Replies: 16
Views: 8272

Re: Passing Default Values to FormBuilder Text Area

Thanks for the suggestion. I have now tried that but it gave the same result. I also tried to test by hardcoding a form with a textarea and here too the newline was ignored. The question is how can the LISE module show line breaks in admin for a non-wysiwyg textarea, but I can't do it in the fronten...

Go to advanced search