LISE and frontend users

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
iturbay
Forum Members
Forum Members
Posts: 86
Joined: Mon Sep 29, 2014 5:38 am

LISE and frontend users

Post by iturbay »

Is it possible to add content to the LISE module from the site, without using the admin panel?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1825
Joined: Wed Feb 25, 2009 4:25 am

Re: LISE and frontend users

Post by DIGI3 »

Not in the current version, but I've heard that's on the roadmap for the next major release.
Not getting the answer you need? CMSMS support options
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: LISE and frontend users

Post by Jo Morg »

iturbay wrote:Is it possible to add content to the LISE module from the site, without using the admin panel?
DIGI3 wrote:Not in the current version, but I've heard that's on the roadmap for the next major release.
Although DIGI3 is correct in that there will be a module which will easily allow frontend editing to LISE, and which is already being tested, so I hope the release will be ready soon(ish), there is a method via LISE API using either FormBuilder or CGBetterForms to build the frontend forms and process the data via an UDT. I believe there are still articles in the web about the process with FormBuilder and LI2, and the adaptation should be relatively simple for those who can find their way around PHP. Otherwise just wait for the release of the new module, it will be in sync with the new major release of LISE.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
iturbay
Forum Members
Forum Members
Posts: 86
Joined: Mon Sep 29, 2014 5:38 am

Re: LISE and frontend users

Post by iturbay »

there is a method via LISE API using either FormBuilder or CGBetterForms to build the frontend forms and process the data via an UDT. I believe there are still articles in the web about the process with FormBuilder and LI2
it's great!

I found on the forum UDT, but it does not work as it should.
A new LIS element is created, but the transmitted field is not displayed. The field displays [not specified].
Could you tell me where the error is?

Code: Select all

/**
 * Load wanted ListItExtended instance, where you wan't to save items.
 * If instance can't be loaded, it will silently return.
 */
$mod = cmsms()->GetModuleInstance('LISEProjects');
if(!is_object($mod))
    return;
 
/**
 * Intitate item with identifier 'alias', $params['title'] comes from FormBuilder.
 * Do duplication check with 'item_id', silently return, if item already in database.
 */    
$alias = munge_string_to_url($params['title'], true);
$obj = $mod->LoadItemByIdentifier('alias', $alias);
 
if($obj->item_id > 0)
    return;
 
/**
 * Fill previously initiated ListIt2Item object with values from form submission.
 * NOTICE: All params that are not known by ListIt2Item object are going to ignored.
 */        
$obj->title = $params['title'];
$obj->alias = $alias;
 
foreach($params as $key => $value) {
 
    if(isset($obj->fielddefs[$key]))
        $obj->$key = $value;
}
 
/**
 * Save this object to database by using ListItExtended API.
 */        
$mod->SaveItem($obj);
Attachments
3.JPG
2.JPG
1.JPG
1.JPG (12.37 KiB) Viewed 1832 times
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: LISE and frontend users

Post by Jo Morg »

iturbay wrote:I found on the forum UDT, but it does not work as it should.
A new LIS element is created, but the transmitted field is not displayed. The field displays [not specified].
Could you tell me where the error is?
The UDT works as is, the error must be in the FormBuilder template. [not specified] or [unspecified] means that FB is assuming the field is empty. So double check your form template, that is where the error seems to be.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
iturbay
Forum Members
Forum Members
Posts: 86
Joined: Mon Sep 29, 2014 5:38 am

Re: LISE and frontend users

Post by iturbay »

Everything worked out!

The problem was that in FormBuilder indicated -User Defined Tag Call, and I need to specify -Call A User Defined Tag With the Form Results
Locked

Return to “Modules/Add-Ons”