I’d like to reutilise information from the template ‘bedrijfsparameters’ in another text template (I’d like to retrieve the address of a director on the basis of his name (that comes from a dropdown in the new text template).
How can I link to the table in the template ‘bedrijfsparameters’?
All that info is gathered in the drop period.people ; more info on that here as well.
If you only want the directors, you could go for a drop that comes from the person-drop, named period.directors (for shareholders that’s period.shareholders ).
The names of each object are in the link; hope this helps you forward? In our standard template “Bedrijfsparameters” you can always take a look for instance.
OK thanks, is this also the case for represented_by_name? In a given template, I provided a list with all the directors. If the director chosen is a company, the (physical) person representing the company has to be searched.
Now, represented_by_name is a custom variable in the template ‘bedrijfsparameters’, so I suppose I can’t look this up in de period.people drop?
´´´
{% for each person in period.directors %}
{{person.custom.represented_by_name}}
{% endfor %}
´´´
I know this will be a stupid question, but why doesn’t this work? error message is Liquid syntax error (line 47): Syntax Error in ‘for loop’ - Valid syntax: for [item] in [collection]