Reference fields show reference ID instead of linked value
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3584484. --> Reported by: [lostcarpark](https://www.drupal.org/user/346773) Related to !2 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Currently, if a reference field is mapped to a view field by this module, it shows the ID rather than the value of the referenced entity.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Install Views Row SDC</li> <li>Create a view and select "Single Directory Component", then choose a component</li> <li>Add a field such as "Authored by"</li> <li>Map to a prop of the component</li> <li>Observe user IDs are shown, rather than usernames.</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Currently the "render" method is used to produce the field output. The "advancedRender" method should render referenced entities correctly. However, just switching to this results in an error because additional steps are needed to use this method.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <ol> <li>Investigate how to call "advancedRender" correctly.</li> <li>Replace current "render" call.</li> <li>Ensure that a test case covers a reference field.</li> </ol> <h3 id="summary-ui-changes">User interface changes</h3> <p>None</p> <h3 id="summary-api-changes">API changes</h3> <p>None</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>None</p>
issue