IPBGallery.com Posted June 15, 2017 Share Posted June 15, 2017 Hello! I have two databases: Movies Actors There is also a set of fields: Movies (database) Actors (database) Actor name (Template Key="actor_name") Actor Age (Template Key="actor_age") In addition, I created a field type "database relation" to specify what actors star in the movie. And now the question: As for the movie page to display the cards of the actors who starred in it? Do not understand. Help, please. Link to comment Share on other sites More sharing options...
Kirill Gromov Posted June 15, 2017 Share Posted June 15, 2017 Hello, Eugene. You can edit the template of this field in your theme templates cms > front > global > basicRelationship Link to comment Share on other sites More sharing options...
IPBGallery.com Posted June 15, 2017 Author Share Posted June 15, 2017 Hello Kirill! Thanks for answer. Not what you need. I will give an example layout. <div class='MovieRecord'> <h1>{$record->_title}</h1> <!--Movie Actor Grid in Database Relationship--> <ul class='ipsGrid'> <li class='ipsGrid_span4'> <h2>{$actor}</h2> <span>{$actorage}</span> </li> </ul> </div> This is a source code example. I want to know how can I substitute the variables {$actor} and {$actorage}. Thanks! Link to comment Share on other sites More sharing options...
DReffects2 Posted October 5, 2017 Share Posted October 5, 2017 Have you found a solution? I need this as well Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.