New answers tagged

2

Access the link fields the same way you're accessing other fields, through the main activities field. <?php foreach ((array) $activities as $activity) : ?> <?php foreach ((array) $activity->links as $link) : ?> <?php echo $link->menulink; ?> <?php endforeach; ?> <?php endforeach; ?>


0

A common solution would be to: Add an input to your modal While typing (or after) trigger an ajax call that gets a list of articles based on your search term and list the results then (incl. article item id) in the modal. Selecting an article from this list triggers a modal close and sets the article id as value of a hidden field in your form (easily by js) ...


Top 50 recent answers are included