Search found 1935 matches
- Wed Mar 20, 2024 11:24 pm
- Forum: Modules/Add-Ons
- Topic: Passing Default values to FormBuilder Multiselect
- Replies: 7
- Views: 43829
Re: Passing Default values to FormBuilder Multiselect
if you move away from the form samples (which are there more as generic all purpose templates to make sure the module can be used out of the box) you can do whatever you need, the mantra being to use pure HTML and the provided variables, so that a text input would be something like: <input type=&quo...
- Wed Jan 17, 2024 11:16 am
- Forum: Modules/Add-Ons
- Topic: LISE & UDT - Get previous item's id
- Replies: 7
- Views: 1030
Re: LISE & UDT - Get previous item's id
Absolutely, go with what works for you and your client. Babysit it for a while to see if there are any drawbacks, but if not, it's golden.
And you are welcome!
And you are welcome!
- Tue Jan 16, 2024 3:52 pm
- Forum: Modules/Add-Ons
- Topic: Cannot update FormBuilder to versio 1.2
- Replies: 2
- Views: 483
Re: Cannot update FormBuilder to versio 1.2
It's a bug in the XML generator used to create that installation file. I'll be solved in next release but for now, you can grab the archive from the forge and extract the files overwriting the already installed FormBuilder. The missing files should be there from that point on.
- Tue Jan 16, 2024 12:47 pm
- Forum: Modules/Add-Ons
- Topic: LISE & UDT - Get previous item's id
- Replies: 7
- Views: 1030
Re: LISE & UDT - Get previous item's id
Well, usually everything depends on the job requirements and the reliability of an algorithm. Databases don't usually recreate ids based on whether you delete a record or not for a number of reasons: 1 - the counter auto-increments in a way that reliably generates UNIQUE ids; 2 - it's totally agnost...
- Fri Jan 12, 2024 11:51 am
- Forum: Modules/Add-Ons
- Topic: LISE & UDT - Get previous item's id
- Replies: 7
- Views: 1030
Re: LISE & UDT - Get previous item's id
Code: Select all
# $db = \cms_utils::get_db(); // may or may not be needed...
$query = 'SELECT MAX(item_id) FROM '
. \cms_db_prefix()
. 'module_' . $mod->_GetModuleAlias() . '_item';
$last_id = (int)$db->GetOne($query);
- Wed Jan 10, 2024 1:40 pm
- Forum: Modules/Add-Ons
- Topic: UDT Display Child Pages
- Replies: 4
- Views: 619
Re: UDT Display Child Pages
Glad you figured it out. Thanks for posting it back to the community.
- Tue Jan 09, 2024 11:14 pm
- Forum: Modules/Add-Ons
- Topic: UDT Display Child Pages
- Replies: 4
- Views: 619
Re: UDT Display Child Pages
I think you have a mix of issues there: - it seems you are mixing PHP and Smarty syntax there; - there is some legacy code that CMSMS doesn't support anymore; - possibly some PHP typos or syntax errors; I didn't test it but just corrected it to what it seemed a bit more logical and valid PHP code. T...
- Wed Dec 13, 2023 2:00 pm
- Forum: Modules/Add-Ons
- Topic: LISE and custom field from smarty
- Replies: 6
- Views: 11624
Re: LISE and custom field from smarty
Ah! missed that one . fixed and thanks!
- Wed Dec 13, 2023 12:01 pm
- Forum: Modules/Add-Ons
- Topic: LISE and custom field from smarty
- Replies: 6
- Views: 11624
Re: LISE and custom field from smarty
Intialy it didn't work because of a" too many shorthand attributes" error. Having posted it by memory I suddenly realized there were a few syntax errors but it should have worked with: {* LISE Categories *} {$opts[''] = '- None -'} {foreach $categories as $category} {$opts[$category->cate...
- Tue Dec 12, 2023 2:29 pm
- Forum: Modules/Add-Ons
- Topic: LISE and custom field from smarty
- Replies: 6
- Views: 11624
Re: LISE and custom field from smarty
No, you are misunderstanding smarty... :) So what you are doing is a text representation of an array, which is not the same as an array. I would try this: {* LISE Categories *} {$opts [''] = '- None -'} {foreach $categories as $category} {$opts[{$category->category_id}] = {$category->name} {/foreach...
- Fri Nov 24, 2023 2:37 pm
- Forum: General Discussion
- Topic: TinyMCE
- Replies: 20
- Views: 14193
Re: TinyMCE
It is, and, honestly, there have been circumstances where the lack of proper testing of people aiming to help set us back months on what several times was an almost ready release, so it is, as everything, a double edge sword. I'm not going to go into any more details than what I just said. Additiona...
- Fri Nov 24, 2023 1:15 pm
- Forum: General Discussion
- Topic: TinyMCE
- Replies: 20
- Views: 14193
Re: TinyMCE
I know all of this and I hope that everything possible will be done to quickly enable full transition to PHP 8.1 and a recent version of Smarty. This goes for the core and say the 20 most used modules. But this must always be done while preserving backward compatibility with existing sites. And the...
- Tue Nov 21, 2023 10:08 am
- Forum: Help Wanted (commercial)
- Topic: Website off
- Replies: 1
- Views: 12833
Re: Website off
Hi, I sent you a PM.
- Wed Oct 18, 2023 12:04 pm
- Forum: CMSMS Core
- Topic: Smarty Updates
- Replies: 6
- Views: 4377
Re: Smarty Updates
Too much ado about nothing, in my opinion. We have been having discussions in the Dev Team about the policies we want to adopt, or keep from those we already have, and one is to prevent as much as possible the amount of breakage from one major version to another and, to some extent, what features we...
- Sat Oct 07, 2023 2:49 pm
- Forum: Modules/Add-Ons
- Topic: Passing Default Values to FormBuilder Text Area
- Replies: 16
- Views: 8085
Re: Passing Default Values to FormBuilder Text Area
You're welcome