CMS MADE SIMPLE FORGE

ListIt2XLink

 

[#9788] No ListIt2XLink showing in field def dropdown

avatar
Created By: Richard (stuffedhippo)
Date Submitted: Tue Jan 21 08:07:38 -0500 2014

Assigned To:
Version: 1.01
CMSMS Version: 1.11.9
Severity: Major
Resolution: Invalid
State: Open
Summary:
No ListIt2XLink showing in field def dropdown
Detailed Description:
I feel I may be doing something wrong. Installed both modules but when I go to
add a ListIt2XLink field def this is not an option.

Any suggestions.

Thanks


History

Comments
avatar
Date: 2014-01-21 15:33
Posted By: Prue Rowland (psy)

Have you gone back into ListIt2 admin and scanned for new Field Definitions?


      
avatar
Date: 2014-01-22 07:03
Posted By: Richard (stuffedhippo)

Ah yes that would do it. 

Really struggling to get this to work, I have:

ListIt Instance: ListIt2MillingMachines
ListIt2XLink Field Def: manufacturer (getting data from the title)

This then links into my second ListIt Instance: ListIt2Manufacturers
ListIt2XLink Field Defs: description, logo (these are custom fields present in
ListIt2MillingMachines)

Then in the template I have:
{ListIt2XLink fielddef_id=$description->GetId()
mod=$ListIt2MillingMachines->GetName() item_id=$item->item_id }

This is error I am getting:

Fatal error: Call to a member function GetId() on a non-object in
/var/www/vhosts/ymtltd.co.uk/httpdocs/tmp/templates_c/ListIt2MillingMachines^c0de0c86a82f4348220c420f48c8bddd39e928d7.module_db_tpl.ListIt2MillingMachines;detail_olly.php
on line 75

Any help would be great thanks


      
avatar
Date: 2014-01-22 15:12
Posted By: Prue Rowland (psy)

Change mod=$ListIt2MillingMachines->GetName() to mod=$mod->GetName()

This needs to be the name of the current module, in the above case
ListIt2Manufacturers. $mod is a template var for the current module.

Also, is this correct fielddef_id=$description->GetId() ??

Unless you're in a loop, I think it should be
fielddef_id=$item->fielddefs.description->GetId()


      
Updates

Updated: 2014-01-30 05:21
resolution_id: 5 => 9

Updated: 2014-01-21 15:33
resolution_id: => 5