Thanks for your interest.
The assigning itselfs happens in the backend in the LISE instance "LISEWorkshops". Editors should be allowed to assign some items of a second instance (LISEMembers) into an item of instance LISEWorkshops. But the assigned items are displayed in the frontend like this:
------------------------------------------------------------
10.08.2019
Workshop 1
Members:
Jane Doe,
Karen Doe
------------------------------------------------------------
In the item editor of "workshops" it looks like this:
Title
---------------------
Workshop 1
---------------------
Alias
---------------------
workshop_1
----------------------
custum url, description, date etc. as known...
then comes the field for the second instance items:
Instance
----------------------
LISEMembers
----------------------
Members
[ ] John Doe
[x] Jane Doe
[ ] Jim Doe
[x] Karen Doe
[ ] ...
The instance "LISEMembers" is a lightbox-gallery of people that must be edited seperately. They are not static.
Here is the reduced html-free code of the summary template of the instance LISEWorkshops, where everything happens. I put some comments in.
Code: Select all
{if $items|@count > 0}
<!-- Here is he search filter form. For this I need an item title instead of alias -->
{LISEWorkshops action='search' filter='members'}
<!-- end search form -->
{foreach from=$items item=item}
<!-- Here I load the instance LISEMembers with 'alias' as identifier -->
{LISELoader item='item' force_array=1 value=$item->fielddefs.members.value assign='items'}
<!-- end loading instance 'members' -->
<!-- here is the output of the instance 'members' -->
{LISEMembers template_summary='team' include_items=$item->fielddefs.members}
<!-- end output -->
{/foreach}
{/if}
As you see: To display the assigned items of "LISEMembers" within a workshop I need the item aliases for the LISE parameter "include_items". Title won't work. If I do not use include_items, all members will be displayed.
But for the search filter I need a title. Otherwise I get this in the search form:
------------------
Options filter member:
john_doe
jane_doe
jim_doe
-------------------